Repository navigation
Board: wrong-school link to the other hub - #103
Merged
Merged
Conversation
A line on the sign-in screen and the top of Home on both hubs: "Why am I on this chuz school's page?" with a small button to the other chapter's hub (UCLA → /board, Berkeley → /board/ucla). The text, button label and path are in chapters.ts per chapter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QzNDQSmhjgKE63rwUnwcMq
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.
What this does
People who open the wrong chapter's hub get stuck at sign-in, since their password won't work there. Both hubs now show one plain line with a small outlined button, on the sign-in screen and at the top of the Home tab:
/board/ucla: "Why am I on this chuz school's page?" Take me to Berkeley's hub →/board/board: "Why am I on this chuz school's page?" Take me to UCLA's hub →/board/uclaThe text, button label and path are set per chapter in
lib/board/chapters.ts(otherHub), not in the component. The button is a plain link, so the other hub loads its own sign-in. It's styled like the hub's other outlined buttons, only smaller; it isn't a banner.Tested (local production build)
Generated by Claude Code