Make Q&A upvote budget a share of the questions
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped

The fixed number of votes per person does not fit varying question
counts. The budget is now `upvote_share` percent of the questions
(rounded up, at least one), so it grows with the number of questions.
A migration converts existing Q&A slides (no voting stays off, others
get 25 %).

On the stage the voting step no longer lists the questions but points
participants to their devices.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-11 23:53:32 +01:00
1 parent 3762b880cb
commit 575fb8649d
14 files changed
+171 -76

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ use InvalidArgumentException;
* Stages (Slide::qaStage()):
* - collect: participants submit questions (voting open)
* - vote: participants upvote questions of others (own ones with `allow_self_upvote`),
* at most `max_upvotes` each and `max_upvotes_per_question` per question (voting open).
* Skipped with `max_upvotes` = 0 (Slide::qaStages()).
* a budget of `upvote_share` percent of the questions each and `max_upvotes_per_question` per question (voting open).
* Skipped with `upvote_share` = 0 (Slide::qaStages()).
* - discuss: voting closed; the presenter steps through the questions, most upvoted
* first (`slides.focus_response_id` = question on screen)
*