Repository navigation
feat: daily drawings UI (#2865) - #2877
Merged
Merged
Conversation
Add event 7003 (2026-08-01, CLAIMED) so the newest-first sort is exercised with two eligible events; assert 7003 before 7001.
This was referenced Oct 21, 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.
Closes #2865.
A standalone, projector-facing UI for running daily prize drawings at events. An operator picks an event, hits Draw, and one random winner is revealed (name + email) with the Kasimir mascot.
What's included
DrawingService(srv/drawing-service.cds+.js) at/drawings,@requires:'Admin'— three OData functions:listEvents()— events with ≥1 scanned prize claim, newest-first.pool(eventId)—{eventId, eligibleCount}, no PII.draw(eventId)— one random winner{winner:{displayName,email}|null, eligibleCount}; random selection + PII resolution are server-side, the browser never receives the full roster.app/display-app-drawings/served at/drawings-ui/(sibling todisplay-app)./drawings-ui/(static) and/drawings/(srv-api), MTA builder block.testing-endpoints.mdupdated.Eligibility & privacy
PrizeRecords.status='CLAIMED'for the event, excluding anonymized users (displayName='ANONYMIZED').Adminscope (notDisplayApp) in all three places: CAP@requires, the UI route, and the backend route.Tests
test/drawing-service.test.js— 9/9 passing: Admin-gating (403), newest-first ordering, distinct+anonymized-excluded pool count, empty pool, 404 for unknown event on both pool and draw, null-email winner.Known follow-up
app/display-app-drawings/public/kasimir-tuxedo.pngis a placeholder — the real tuxedo-Kasimir image needs to be dropped in (it was pasted into the authoring session; the bytes weren't reachable to commit from here).Built via spec → plan → subagent-driven implementation; design at
docs/superpowers/specs/2026-10-21-daily-drawings-ui-design.md, plan atdocs/superpowers/plans/2026-10-21-daily-drawings-ui.md.