10000 Display last cast votes in ballot · Issue #40 · apache/steve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Display last cast votes in ballot #40

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

Open
vy opened this issue Feb 28, 2025 · 6 comments
8000 Open

Display last cast votes in ballot #40

vy opened this issue Feb 28, 2025 · 6 comments

Comments

@vy
Copy link
Member
vy commented Feb 28, 2025

I cast votes for ASF Board of Directors and go back to the same page to confirm that my votes are registered. While expecting to see my last cast votes, I am shown a fresh voting page with no hints to the votes I cast earlier. Could STeVe display the last cast votes, please?

@Humbedooh
Copy link
Member

Do you mean display which issues you have voted on, or are you looking for the actual vote (yes/no/whatever) that you cast?
You should see a marker for issues that you have voted on - they should have a darker color and a tooltip saying you have already cast a vote on the issue. As for seeing what you voted last, we are not going to allow that. Same reason as why you can't ask a polling place to see what you just wrote on your ballot that you threw in the ballot box.

@assignUser
Copy link
Member

It makes sense but maybe a note that this is the case. Something like "Your previous vote is recorded but will not be displayed. To change your vote you have to recast it entirely." Or something?

@tisonkun
Copy link
Member
tisonkun commented Feb 28, 2025

I found that we have some code like:

if (issue.hasVoted) {
outer.setAttribute("style", "background: linear-gradient(to bottom, #d8d8d8 0%,#aaaaaa 100%); opacity: 0.55;")
outer.setAttribute("title", "Notice: You have already voted once on this issue. You may recast your vote if you like.")
} else {
outer.setAttribute("title", "You have not yet voted on this issue");
}

And I can see it when inspecting the webpage. But I don't see a virtual text element directly. The style difference can be seen if you know what it means.

@vy
Copy link
Member Author
vy commented Feb 28, 2025

As for seeing what you voted last, we are not going to allow that. Same reason as why you can't ask a polling place to see what you just wrote on your ballot that you threw in the ballot box.

AFAICT, there is a big difference: in a polling place with a physical ballot box, you can't vote multiple times for a duration of days, in the case of STeVe and ASF, you can. Hence, I think it makes sense to show users what they last voted for.

@vy
Copy link
Member Author
vy commented Feb 28, 2025

If the security is an issue, the state can be locally stored; in a cookie, etc.

@assignUser
Copy link
Member

If the security is an issue, the state can be locally stored; in a cookie, etc.

I am not deep into browser security but I assume that could be a viable solution, as it doesn't require all the cool crypto we have to be discarded ^^. If the local browser is compromised all bets are off anyway :D

< 4D33 /div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0