Skip to content

Polls follow-up: View votes window and vote percentages - #472

Merged
gabrielhhaber merged 5 commits into
mainfrom
claude/polls-followup
Oct 12, 2026
Merged

gabrielhhaber merged 5 commits into
mainfrom
claude/polls-followup

Conversation

@gabrielhhaber

Copy link
Copy Markdown
Owner

Before: opening a poll showed each option's vote count but not who voted, and the check-box lists showed counts only (the progress bars are not always read by NVDA). In Romanian, "20 voturi" was grammatically wrong.

After: the poll window has a View votes button (Alt+V) that opens a list of "person: option" lines, first row focused and selected; the people come from WhatsApp Web and are shown by name. Option lists (poll window and inline Tab list) now read "name, N votes (P%)". Romanian uses "voturi: N". The Vote button's mnemonic moved off V to free Alt+V.

How: new readPollVoters in pollRuntime.ts and /poll-voters route (on demand, only sender ids and option ids leave the page), fetch_poll_voters in poll_sending.py, pure voter_rows and a percent-aware option_label in core/polls.py, PollVotersDialog, strings in all 7 locales and changelogs.

Needs a live check: the vote's sender property name in WhatsApp Web (sender, senderUserJid or from are tried).

🤖 Generated with Claude Code

https://claude.ai/code/session_01PHFmZNcEwFvxPVKgfFYLgg


Generated by Claude Code

claude and others added 5 commits October 12, 2026 02:27
The poll window gets a View votes button (Alt+V) that lists "person: option"
for every vote, and the option lists show their percentage of the votes in the
item text. Romanian votes no longer need the 20+ "de" agreement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PHFmZNcEwFvxPVKgfFYLgg
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PHFmZNcEwFvxPVKgfFYLgg
…nnot

Measured on a group poll: the vote's sender is the voter's @lid Wid, and
ContactCollection has a name or pushname for each, including non-contacts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gabrielhhaber
gabrielhhaber marked this pull request as ready for review October 12, 2026 03:13
@gabrielhhaber
gabrielhhaber merged commit 1dfc3fc into main Oct 12, 2026
4 checks passed
@github-actions
github-actions Bot deleted the claude/polls-followup branch October 12, 2026 03:13
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

Successfully merging this pull request may close these issues.

2 participants