Skip to content

Board: wrong-school link to the other hub - #103

Merged
getvindicated2day merged 1 commit into
mainfrom
board-wrong-school
Oct 13, 2026
Merged

getvindicated2day merged 1 commit into
mainfrom
board-wrong-school

Conversation

@getvindicated2day

@getvindicated2day getvindicated2day commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

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/ucla

The 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)

  • On both hubs, at desktop and phone width, signed out and signed in: the line shows, and the button opens the other hub (UCLA → /board, Berkeley → /board/ucla).
  • No sideways scrolling at 390px.
  • Typecheck, lint and build pass.

Generated by Claude Code

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
@getvindicated2day
getvindicated2day merged commit 5121515 into main Oct 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants