feat(swap): page chrome polish (title, NEW badge, export, seats copy)#262
Draft
jerryzhou196 wants to merge 3 commits into
Draft
feat(swap): page chrome polish (title, NEW badge, export, seats copy)#262jerryzhou196 wants to merge 3 commits into
jerryzhou196 wants to merge 3 commits into
Conversation
- Retitle the page "Swap classes" with a NEW accent badge - Add an Export menu (Google Calendar / .ics) reusing the profile page's secret_id export flow; hidden for ephemeral schedules - Show open seats as "N of M open" per the approved mockup - Drop stray console.logs from SectionFinderPanel Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jun 10, 2026
# Conflicts: # src/pages/swapPage/SectionFinderPanel.tsx # src/pages/swapPage/SwapCalendar.tsx
# Conflicts: # src/pages/swapPage/SwapCalendar.tsx # src/pages/swapPage/SwapPage.tsx
jerryzhou196
added a commit
that referenced
this pull request
Jun 10, 2026
Stacked on #262 (merge that first). Second of three PRs matching the swap page to the approved mockups. - **Logged out** → the calendar renders a hardcoded, non-interactive sample week (MATH 239, CS 240, STAT 231, CS 241, FINE 100 — negative section ids, dated today so it always lands in the current term tab) behind the existing frosted overlay, now containing a lock card: grey lock circle, "**Upload your schedule to swap**", "Log in and paste your courses from Quest to start swapping sections.", and a yellow **Log in to continue** button that opens `AUTH_MODAL` via `useModal`. - **Logged in without a schedule** → unchanged Quest-paste upload card. - `SwapCalendar` gains a `demoMode` prop that disables block clicks; the course-select trigger and section finder are already inert with no selection, and Export stays hidden (no `secretId`). - The logged-out "ephemeral parse" flow (`GET_SECTIONS_BY_CLASS_NUMBERS`) lost its only entry point under this design and has now been removed entirely (the linter flagged it as dead code). Verified with eslint (clean for `src/pages/swapPage`) and `tsc --noEmit` (only the pre-existing `json-stable-stringify` config error). No live-browser verification — please check `/swap` logged-out locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.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.
Stacked on #224. First of three PRs closing the gaps between the swap page and the approved mockups.
NEWpill (was "Your schedule")secret_idexport flow; hidden when there is nosecretId(ephemeral/logged-out schedules)console.logs inSectionFinderPanelVerified with
eslint(clean forsrc/pages/swapPage) andtsc --noEmit(only the pre-existingjson-stable-stringifyconfig error, present on the base branch). No live-browser verification — please eyeball/swaplocally.🤖 Generated with Claude Code