Str 110 update bingo cell structure to have full question and short version#87
Merged
lnqminh3003 merged 6 commits intobackendfrom Mar 24, 2026
Conversation
c9681ef to
a4e8d44
Compare
… each bingo question
…format
- Update Bingo model to store { question, shortQuestion } objects instead of
plain strings, matching the mobile BingoTile interface
- Update grid validation in createBingo and updateBingo to accept the new format
- Add null guard for Gemini response.text in both AI generation functions
- Add bounds checking in combine2DArrays to fallback to full question when
short version is missing
- Fix typos in bingo_short_questions.txt prompt
- Remove unused Console import
a4e8d44 to
e89c83a
Compare
- Update createBingo, getBingo, updateBingo docs with { question, shortQuestion } grid format
- Update error messages to match new validation
- Fix auth status on generate endpoint (is Protected, not Public)
- Update DATABASE_SCHEMA.md grid type from [[String]] to BingoTile objects
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
string[][]toBingoTile[][]({ question, shortQuestion }) across the full stack:{ question, shortQuestion }objectscreateBingoandupdateBingovalidation updated to accept the new formatConsoleimportTest plan
POST /api/bingo/generateBingoreturns{ question, shortQuestion }pairsPOST /api/bingo/generateBingorejects unauthenticated requests (401)POST /api/bingo/createBingoaccepts BingoTile grid format (201)POST /api/bingo/createBingorejects oldstring[][]format (400)GET /api/bingo/getBingo/:eventIdreturns BingoTile objects from DBPUT /api/bingo/updateBingoaccepts BingoTile format (200)PUT /api/bingo/updateBingorejects old format (400)