Repository navigation
Reveal quiz answers separately from the results - #269
Open
junkerderprovinz wants to merge 2 commits into
Open
junkerderprovinz wants to merge 2 commits into
junkerderprovinz wants to merge 2 commits into
Conversation
junkerderprovinz
force-pushed
the
feature/quiz-reveal-answer
branch
from
October 15, 2026 10:51
b0db68d to
ca2d4db
Compare
junkerderprovinz
force-pushed
the
feature/quiz-reveal-answer
branch
from
October 28, 2026 22:55
ca2d4db to
69c8216
Compare
added 2 commits
November 18, 2026 16:50
Showing results put the quiz on the projector, showed the distribution and coloured the correct option in one step, so the distribution could not be shown without giving the answer away. A second toggle (X) reveals the answers; the green and red feedback and the scores follow it on the projector and on attendee phones. Quizzes that show their results are migrated to reveal their answers too. The presenter now keeps the question index itself. Next from the quiz summary starts at the first question, the projector keeps its percentages when a toggle changes, and it falls back to the summary when another quiz takes over or the question on screen is removed.
junkerderprovinz
force-pushed
the
feature/quiz-reveal-answer
branch
from
November 18, 2026 19:20
69c8216 to
a5bc60d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #250, following the split you described there.
show_resultskeeps its name and now only means "results on the projector": the overlay and the percentage and count per option, on neutral grey bars. A newreveal_answersflag with its own toggle (shortcut X, below the results toggle) colours the correct option green on the projector and turns on the green and red feedback and the score on attendee phones. Previous, Next and Review questions work whenever either flag is on, so the distribution can be walked through question by question without giving the answer away.Revealing without the results still puts the quiz on the projector, so pressing X always changes something the room can see. It also covers showing the answer without the vote counts.
The migration adds
reveal_answersand sets it to true wherevershow_resultsis true, so a quiz that shows its results today keeps showing the answer after the upgrade. New quizzes start with both on, which matches the current behaviour.Presenter
Walking through the questions with the distribution up surfaced two existing problems, so this also moves the question index into the presenter LiveView:
ManageableQuizComponentstarted on the summary at -1, so Next from the summary skipped the first question.:quiz_updatedfrom the manage view carries a quiz without percentages, so every toggle blanked the numbers on the projector. The presenter runsQuizzes.set_percentages/1on it.The projector falls back to the summary when a different quiz becomes current or is updated, and when the question on screen is removed. Without that, editing or moving another quiz during a walkthrough would have crashed the presenter.
For you to decide
:quiz_updatedstill replaces the quiz on the projector, including one for a quiz on another slide. That is unchanged here; limiting it to the current quiz would be a separate fix.The two new strings are translated in every locale. The rest of the catalogue diff is
#:references refreshed bymix gettext.extract.383 tests pass apart from the three existing ones that need ImageMagick and Unix paths and fail on my Windows machine. I also went through it in the browser with the manage page, the presenter and two attendees.