Skip to content

Add "I'm done voting" and mvote status - #20

Merged
vqsierra merged 1 commit into
mainfrom
feat/participant-done
Nov 14, 2026
Merged

vqsierra merged 1 commit into
mainfrom
feat/participant-done

Conversation

@vqsierra

Copy link
Copy Markdown
Contributor

Lets participants tell the facilitator they've finished, and lets the facilitator see it.

  • Participant: an I'm done voting button in the header. Tapping it shows "Thanks, your votes are in." and locks voting on that device. A Keep voting link undoes it. The button is hidden once the session is closed.
  • Facilitator: mvote status --board-id <id> prints, for example, Board 'b1' is open: 9 of 13 participants done, 142 dots placed.
  • Rules: a participant may change only their own done flag, to true or false. Spending dots and extra dots are refused while done is true.
  • Wording: the closed notice now reads "This session is closed. Voting has ended. The counts below are final."

Tests: web app 19 and CLI 33 pass locally, along with the UI check. The rules emulator tests, now 17, run in the Firestore rules workflow. I also checked the done, Keep voting and lock behavior by hand at phone size in the local demo.

Deploy order: the new rules still accept every write the current live app makes, so deploy the rules first (firebase deploy --only firestore:rules), then merge. Merging deploys the web app through Workers Builds.

- Web app: an "I'm done voting" button locks that participant's voting
  with a thank-you and a "Keep voting" link to undo it. The closed
  notice now reads "Voting has ended. The counts below are final."
- firestore.rules: a participant may change only their own done flag
  (true or false); votes and extra dots are refused while done.
- CLI: mvote status prints how many participants joined, how many are
  done, and how many dots are placed.
- Tests: web app, CLI and emulator tests for the done flag.
@vqsierra
vqsierra merged commit 1511ab6 into main Nov 14, 2026
12 checks passed
@vqsierra
vqsierra deleted the feat/participant-done branch November 14, 2026 06:11
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.

1 participant