Repository navigation
feat(moderator): render aggregated results for warm-up and other question prompts - #241
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jencompgeek
force-pushed
the
jh/pregame-mod
branch
from
November 6, 2026 20:13
698a719 to
b893fea
Compare
cbj0hns0n
approved these changes
Nov 9, 2026
cbj0hns0n
left a comment
Contributor
There was a problem hiding this comment.
Works great! Might wanna look into the failing CI check?
…icate The same three-clause filter (channel plus insights/metrics/ questionResults shape) was duplicated verbatim between the initial fetch and the gap-reconnect refetch, so a future change to which message shapes this view displays could be made in one and missed in the other.
jencompgeek
force-pushed
the
jh/pregame-mod
branch
from
November 10, 2026 17:10
e8f2578 to
ca26415
Compare
This branch was successfully 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.
What is in this PR?
Gives moderators a readable summary when participants answer a private prompt question — today,
that's always the pregame warm-up question, but the shape is generic enough to cover any future
poll-style prompt too. Instead of moderators having to piece together individual replies, they see
one card per question with each answer option's count, share of responses, and (for non-warm-up
questions only) a few example quotes illustrating that option.
Changes in the codebase
body.type === 'questionResults', carrying questionType, question, format ('text' |
'singleChoice'), and a results array of { label, count, examples? }. questionType is read straight
from whatever body.type the original prompt message used, so a new question kind never needs a
parallel naming scheme kept in sync.
(previously only insights/metrics).
=== 'warmUpQuestion', generic Question Results in indigo otherwise), the question text, and
each result as a label/count/percentage bar.
private prompt replies participants didn't agree to have quoted verbatim to a moderator.
Non-warm-up question types still show example snippets per result when present.
Documentation and automated testing
Did you:
content/whatsNew.tsfor new features?Testing this PR
format: 'text', including an examples array on one result — confirm the card shows the green
"Warm-up Results" badge, the question, each result's count/percentage bar, and no example quotes.
indigo "Question Results" badge and the example quotes.
cleanly with just labels/counts/bars.
Additional information