New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements for polls feature #4888
Comments
Got a screenshot? :) |
As always partial solutions to the above points are accepted. We're also open to suggestions to improve the design of the results view and voting area. |
I've just noticed that each poll option is assigned a number, starting at 1 for option 1 of the first poll created on the pod. So, if someone creates a poll (the first on the pod) with three options, those are assigned numbers 1, 2 and 3; when a second poll is created with four options, those are assigned numbers 4, 5, 6 and 7. Given that different pods will be assigning these numbers to different polls, will this definitely federate properly between pods? I hope so, but I just raise it as I've noticed it. |
@goobertron, it should work, because a PollParticipation ships with the guid of the PollAnswer...so the id of a PollAnswer is not really used in the federation part. But maybe we should discuss this in orig. pull request? |
OK, that's good. At least now it's merged in develop, it'll be out there in the wild on pods pulling that branch, so it can be tested. Interestingly, in the three browsers I've been testing the polls in (Firefox, Opera and Safari), the radio buttons are a lot more out of alignment than in your screenshot. @Flaburgan @taratatach we're also going to need a mobile version of the polls in stream and SPV. I'd love to help with this, just tried to start work on it but had no idea how to do it, sorry. |
I'd like to add the "clic on label to check the radio button" option, which should be present by default if the |
I've just pulled the latest develop with the poll updates from @hpetru into my local environment. It looks really good. There's just one small thing I've noticed: that is that in the bars, the radius of the dark grey ('votes cast') part of the bar is larger than the light grey ('empty') part. This means that at the left-hand end of bars which have a % votes of greater than 0, the end is more curved than bars in which the % is zero (and at the right-hand end of bars in which the % is less than 100%). |
Looks like the click on label is now fixed by the new design. |
Hey I just merged the polls in and they're awesome! <3 But one huge missing thing - polls are not shown for a reshared post. This is very confusing since a person viewing the reshare (stream or spv) can't even tell it has a poll (viewing on the same pod). I'll add this to the list in this issue if ok, no need to open a separate tracking issue imho. |
One further suggestion:
Re the reminder of which option the user has voted for: This could be done either by adding a line underneath the poll reading something like 'You voted: Pasta', or by doing something on the poll graph itself, like highlighting the bar of the option I voted for in a colour (I'd suggest a pale blue to match the background on hover over the items in the left menu of the stream), or by placing an icon such as a tick next to the relevant bar. I think I'd favour colouring the bar for the voted option. There could also be a tooltip on hover: 'You voted for this!' |
I added lack mobile view rendering of poll here. I think the poll ending is a good idea but should be raised as a separate issue, since it's more of an enhancement than lack of current functionality. To release polls imho we really need to render them in reshared and mobile view. Participating from mobile imho could be done later. |
@JannikStreek would you be happy to edit the title of this issue to something like 'Enhancements for polls feature' so it can be a collection point for all live issues relating to the feature? With something around which a lot of development is going on, it can be useful to have an issue to track progress of them all, so if this could be broadened from UI tweaks to any polishing work (so, for instance, the idea of having an end time for polls could be included) that would be great. |
@goobertron done |
It looks like we have an order problem, I don't know why but in diaspora-fr.org the order is not the same than on iliketoast for example: https://diaspora-fr.org/posts/335933 |
Looks like the answer last voted is displayed last. |
@Flaburgan I think it might be a federation issue: Maybe the other servers save the answers in a different order, therefore the order is different. I just checked on a local server, voting does not seem to have an effect on the order. |
@JannikStreek I don't think federation is related, I just created a poll locally on diaspora-fr.org, with 3 options, test1, test2, test3. When I posted the poll, the order became test2, test1, test3. Then I replied to the poll, voting test2. The order became test1, test3, test2. Maybe it's something specific to my pod (you can test it with testaccount / testaccount) but I don't get why it would be like that. |
Yes, in the example Fla links to above, my post (with the poll) was made on diaspora-fr.org, and it was on that same pod on which the options were displayed in the wrong order - viewed from another pod, they were in the correct order. So it seems not to be a federation thing. I wonder whether this could be prevented from happening in future (even if it is only affecting one pod at the moment) by specifying that options should be displayed in order of their ID numbers. That could force a pod to display them in the correct order, even if it wanted to display them in a different order. |
Could we have a count of votes when hovering over the percentage - or something like that? Now when I view results, I have to use maths to actually know how many voted Yes for example :D And my maths skills suck :( |
Would be nice to have a possibility to shut the poll by the author. Make it finished, so people can't vote anymore. |
Hi! @Rete2 and me would like to work on this issue as a part of RGSoC 2017 :). Specifically we want to add this feature: Introduce a reminder for the user inside the posted poll with the option he/she voted for. Is anyone working on this already? In any case, we will keep you posted how it goes! |
Not that we are aware of! And now that you have posted this comment, it should be clear that you are working on this. Thanks for tackling this. |
I'm unassigning this task from the 0.7.0.0 milestone, since we started to plan some things. That does not mean you have to wait long to get your pull request merged, since we can easily put this into a minor release, but I am removing the milestone so we can, in theory, release 0.7.0.0 without this. :) |
@denschub, no problem :) It takes us some time. |
I would have used a color or bold on the option to show the one picked up. |
I also thought about a different color or a check mark at the picked answer. Because a poll can have many answers, and then it's cooler to directly see which one was your answer and how many others selected it (instead of looking at the bottom and then searching your answer in the list). |
That sounds like a good solution. I suggest using the diaspora blue for the option the user has voted for. |
I was talking about changing the color of the label, so "John" for example. But you can also do that for the drawing, that should simply be a new color variable which will have to be redefined by themes. |
Cool, we will just change the label, thanks! |
So I did the test on discourse. And here is the way it displays it: So yeah, I guess the chart color but taking care of color themes is the best move here. Just add a variable $selected-poll-options in variables.scss. |
In the color themes Original gray, Original white background and Dark the progress bars are gray. What do you think about making the progress bars gray in the other themes as well by removing the override? Then we could use the “main color“ ( |
Yes, I think we should make the selected bar with color, and make the other bars gray again for the blue, green and pink color-themes, so all color-themes work the same with polls (default and dark are already gray). As an alternative we could use different brightness on the blue, green and pink color-themes. And I wouldn't change the text-color. The blue you used is never used on the default color theme, so it looks strange. If you use the same blue as for links, it looks like a link (which it isn't). So making the bar with color looks like the best way for me. We could also add a text next to the answer-text, but it shouldn't look like it's part of the question (what your "(you)" does). But something looking like a badge/label (like the |
Hi, thanks for all the answers. I am a bit confused, so let me just see that I got it right: |
Yes
By removing this line. |
The progress bar color override here:
There is another override here
for the dark theme but that shouldn't bother you since it only sets the color of the progress bar to a different gray. |
Thanks! |
That gets my vote too (for what it's worth). |
You can chat with us on IRC (#diaspora-dev) whenever there is someone to talk to. |
Poll design is currently broken with long labels, see #7573 |
In the poll creation area:
In the voting area (of a posted poll):
On the stream and SPV (rendering of post with poll):
Mobile
appversion:General:
The text was updated successfully, but these errors were encountered: