Uh oh!
There was an error while loading. Please reload this page.
[codex] Preserve cast vote budget after ballot reload - #77
Conversation
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughVoting now tracks encrypted ballot loading and decryption errors. Unreadable ballots retain their declared vote count, remain read-only, and disable editing and publishing. Successful publishing preserves submitted allocations and updates the ballot state. ChangesBallot readability and voting controls
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Uh oh!
There was an error while loading. Please reload this page.
Summary
Preserves a voter’s declared spent total when their existing encrypted ballot cannot be decrypted after a reload.
Root cause
The ballot editor treated a failed self-decryption as an empty allocation map, so a voter who had already cast all 10 votes was shown
10/10votes still available.Changes
Validation
ai-agentsand declares 10 votes.git diff --checkpassed.pnpm exec tsc --noEmitstill reports unrelated pre-existing errors in generated.nextroute types and cache-life typing.Summary by CodeRabbit