Repository navigation
Conversation
The signed-in surveys and the signed-out preview share one first-visit wave, so signing in on this page does not play it again. The title stays still.
The survey grid and the signed-out preview share the same once-per-visit key and the shared wrappers, so signing in does not replay the wave.
|
🚀 Deployed on https://pr-488--iuga.netlify.app |
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.
Rationale
Student Voice renders a sign-in gate before authentication and survey cards once signed in, so a remount after sign-in should not replay the arrival wave. I wrapped the page in
PageRoot(onceKey="student-voice"), marked the sign-in card withEntranceHero, and wrapped the survey cards inEntranceGridso the entrance runs only on the first visit per session.Desktop Before (1440px):
student-voice-before-1440.mp4
Desktop After (1440px):
student-voice-after-1440.mp4
Mobile Before (390px):
student-voice-before-390.mp4
Mobile After (390px):
student-voice-after-390.mp4
Observable Behavior
/student-voice, the sign-in preview gate (when logged out) or the survey cards (when signed in) rise into place smoothly once./student-voicein the same session does not replay the entrance wave.Verification
/student-voiceat1440pxand390pxand confirm the entrance runs once on first visit.StudentVoice.test.jsxplus the full stack (fe10fc7) infrontend/:npm test -- --run(68 files, 923 tests passed),npx stylelint "src/**/*.scss"(0 errors), andVITE_API_URL=http://localhost:7777 npm run build(passed).Stack Context
Stacked on PR #487 (
feat/get-involved-page-entrance). Next in stack: PR #489 (feat/resources-page-entrance).Co-authored with Grok Bot.