Y'know how people sometimes post polls with a special option like "Not voting, I just want to see the results"?
That's not necessary, the poll data includes the vote count, even if you haven't voted. I'm experimenting with surfacing that info when you see the poll in your feed
One option would be a new toggle button that switches between hiding and showing the results. But they could also be shown inline in the poll.
Here's what that looks like.
First screenshot is the current UI. Second screenshot is the experiment. In both cases the user hasn't voted on the poll yet.
Thoughts?
@pachli I think that the option with the switch to see the poll would be the best one. Seeing the results in advance if I want to vote seems somewhat wrong...
@pachli I think the result should be hidden behind a content warning of some kind. Maybe I want to vote myself before seeing how others have voted.
@kallekn Yeah. Looks like this at the moment, which feels a bit clunky. And on narrower devices the "Hide votes" / "Show votes" button wraps to two lines. For some languages it's probably not wide enough at all.
Two buttons stacked on top of each other isn't very aesthetically pleasing either. Maybe the "sensitive" eye-with-a-slash icon could be placed on the poll somewhere?
@kallekn Here's an experiment with that icon.
First screenshot is how the poll appears without interaction, second is if you tap the icon on the far right.
@pachli I preferred the button. It's clearer. If you use the icon, I think it should be next to the button.
@kallekn I wasn't a fan of how it potentially obscures part of the first option either.
Here's the latest iteration. It's a checkbox so the state is extremely clear (no "does the icon indicate the current state, or the state it will switch to?" uncertainty).
Positioned below the options so you're less likely to miss-click, and far from the "Vote" button for the same reason. Hopefully with enough space that it'll still work when translated.
@pachli I think that's a good solution.
@pachli @kallekn, this looks like the best option so far, for me.
Thinking about the smaller screens and/or larger characters, could the Vote button be reduced a little?
I don't know how large the equivalent word can be in other languages, but it would help. In the two other languages I know the translations have 5 letters. Perhaps an adaptive button?
(Mentioning languages, would help A LOT if in the Weblate was the context of each item, like other software there - some show a screenshot.)
@pachli I like it but it should definitely be optional.
@pachli The stock Mastodon web UI already has unobtrusive functionality designed to do this which I quite like.
It just adds a small "see results" link - here is the before and after pressing:
@keefmarshall yeah. Doesn't let you vote after seeing the results though (without refreshing the page I think). New design incoming...
@pachli I'm actually OK with that.. either vote then see the results, or skip voting and go straight to what other people say.
Most polling systems don't let you see the result and *then* vote, in case it influences your choice.
@keefmarshall Yeah, but that feels like an implementation issue in the web UI than a deliberate decision (since you can just reload the page). If it was deliberate then I'd expect viewing the results to then prevent voting.
@pachli I guess it's hard to know if it's a conscious UI decision because it's hard to implement in the API, an unforeseen bug that refreshing resets it, or just an omission in the UI that there's no way to go back without refreshing.
Whichever, I actually quite like the web UI's implementation, it feels right to me. But I'm sure the alternatives you're proposing will be fine too - and of course there's no way to refresh easily in the app.
@pachli I personally would prefer the toggle option if this ends up being implemented. Seeing the results without an explicit action on my part feels wrong...