It'd be swell if there were a widget on a User's Hub that would allow someone to give them a "++" by clicking a button, as if they were in IRC. It would fire off the same fedmsg as the one used in IRC to award cookies.
Perhaps it would also show the current karma for that user for the current release cycle?
That would be cool.
Currently, we keep the karma data in a python 'shelve' file on the zodbot machine. As written, it isn't suitable to be shared between zodbot and another process, so this would involve a (total) rewrite of the way the zodbot karma stuff works too.
Note that this ticket requires a total rework of the zodbot plugin. (pingou, today's #fedora-hubs meeting.)
Here are some thoughts on the widget that I am working on. I brainstormed and sketched before the final mockup (which is posted here). I analyzed the pros and cons of each use-case that I had explored.
Moving on, I do have some improvements that I can think of in this design
Any feedback and suggestions are welcome.
I'm not sure if this is discoverable - I would run these mockups past a few people in IRC. Don't be afraid to make the control stand out more.
I tried to cover all the use-cases possible for this widget, as you suggested will ask for feedback from people in IRC. Then based on the feedback will iterate accordingly.
@abompard is onboard for making the service that will be used by zodbot and hubs to store the data and send the fedmsg messages for karma.
We'll be teaming up to adjust zodbot and working on the widget.
Hi PIngou, do you have any suggestions for the improving the widget ?
In the meeting today pingou pointed out that the widget isn't noticeable and should stand out.
Also a note that abompard has been working on plus-plus-service to make this widget function. (came up in today's hubs status meeting.) It's a Flask-based REST service that the widget and Zodbot will talk to, which will send the bus message to add karma and get statistics.
Yup sure, I got your point :) I will start working on it.
atelic is going to pick up on abompard's work while abompard is on PTO.
Some changes that I have incorporated in my design is making the plus sign more prominent ,
Further, I believe it would be great to have some kind of animation to the plus sign like changing colors , mostly fedora colors while fading into grey.
Some improvements to design from the user feedback
Backend integration is completed https://pagure.io/fedora-hubs/pull-request/250
We had a discussion during triage at our meeting today about this one:
In the interest of releasing a high-priority feature that is essentially done, I suggest we create a user metadata box that doesn't include the info we need FAS3 for and just have the ++ widget data in it for now.
to comment on this ticket.
Copyright © 2014-2017 Red Hat
2.90.1 — Documentation