Open
Conversation
✅ Deploy Preview for apworldwebsite ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an animated "slot machine" effect to the geography quiz feature. When users click the "Quiz!" button, countries flash randomly on the map before revealing the two selected countries for comparison. The animation provides visual feedback during country selection.
Key changes:
- Added
quizSelectedCountriesstate to track countries highlighted during quiz animations and quiz mode - Converted
pickCountriesfunction to async to support animation sequences with timed delays - Implemented two animation phases: first country selection (8 random flashes) and second country selection (8 more random flashes)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| src/geographic-selection-provider.tsx | Adds quizSelectedCountries state and setter to context provider for tracking animated/selected countries during quiz |
| src/geographic-selection.tsx | Implements quiz animation logic with async/await, updates country styling to highlight quiz selections with blue/red colors, and modifies button handlers to trigger animations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
No description provided.