Add participant assignment confetti celebration on details open#57
Open
dsanchezcr with Copilot wants to merge 4 commits into
Open
Add participant assignment confetti celebration on details open#57dsanchezcr with Copilot wants to merge 4 commits into
dsanchezcr with Copilot wants to merge 4 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add confeti visual effect for gift exchange assignment
Add participant assignment confetti celebration on details open
Jun 10, 2026
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-rock-0a7c3890f-57.eastus2.7.azurestaticapps.net |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a lightweight, deterministic confetti celebration to the participant assignment details experience in AssignmentView, triggered when a receiver becomes available and auto-dismissed after the animation window.
Changes:
- Introduces deterministic confetti piece definitions and a computed display duration constant.
- Triggers a confetti overlay via
useEffectwhencurrentReceiverchanges (guarded by receiver id). - Renders a fixed, pointer-events-none Framer Motion overlay while
showConfettiis true.
Show a summary per file
| File | Description |
|---|---|
| src/components/AssignmentView.tsx | Adds confetti configuration, trigger effect, and overlay rendering in the participant assignment view. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Low
Comment on lines
+162
to
+169
| useEffect(() => { | ||
| if (!currentReceiver || lastConfettiReceiverId.current === currentReceiver.id) return | ||
|
|
||
| lastConfettiReceiverId.current = currentReceiver.id | ||
| setShowConfetti(true) | ||
| const timer = setTimeout(() => setShowConfetti(false), CONFETTI_DISPLAY_DURATION_MS) | ||
| return () => clearTimeout(timer) | ||
| }, [currentReceiver]) |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-rock-0a7c3890f-57.eastus2.7.azurestaticapps.net |
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.
Participants now get a short celebratory confetti effect when their assignment details page is shown, on both mobile and desktop layouts. The change is scoped to the participant assignment view and does not alter API or game logic.
Assignment reveal celebration
AssignmentViewrendered only when assignment details are available (currentReceiverpresent).Trigger semantics
Deterministic animation config