feat(quiz): hasQuiz event feature flag (frontend 2/4) - #185
Open
GerardPaligot wants to merge 12 commits into
Open
feat(quiz): hasQuiz event feature flag (frontend 2/4)#185GerardPaligot wants to merge 12 commits into
GerardPaligot wants to merge 12 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ent) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This was referenced Jun 2, 2026
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.
Summary
Part 2 of 4 of the Quiz frontend feature. Adds a
hasQuizevent feature flag end-to-end so the upcoming Quiz tab can be shown only when relevant.FeatureKey.Quiz;QuizQuestionEntity.findByEvent(eventId); everyFeaturesActivatedbuilder now setshasQuiz = (FeatureKey.Quiz enabled) || (event has ≥ 1 quiz question). The flag short-circuits the DB check when the manual flag is on.FeaturesActivated.hasQuiz(@SerialName("has_quiz"), defaultfalsefor backward compat).has_quizcolumn on the SQLDelightFeaturesActivatedtable +4.sqmmigration for existing installs; threaded through both the mobile (EventDaoSQLDelight) and wasmJs (EventDaoSettings) read/write paths.FeatureFlags.hasQuiz.Scope
Part 2 of 4. The flag is delivered to the client's
FeatureFlagshere; the actual tab gating lands in Plans 3 (Android UI) and 4 (iOS UI) alongside the tab it gates. No UI changes in this PR.Stacking
Stacked on #184 (shared quiz core) — base branch
feat/quiz-frontend. It will auto-retarget tomainonce #184 merges.Test Plan
./gradlew :backend:test— newEventFeaturesQuizTest(3 truth-table cases viagetV4) +QuizQuestionEntityTestpassbackend,shared:core,shared:models🤖 Generated with Claude Code