Skip to content

Add dev mode (optional SSO + test accounts + tools) and the Freshman Guide page - #15

Merged
Hef50 merged 1 commit into
mainfrom
claude/project-state-oml8d3
Aug 12, 2026
Merged

Add dev mode (optional SSO + test accounts + tools) and the Freshman Guide page#15
Hef50 merged 1 commit into
mainfrom
claude/project-state-oml8d3

Conversation

@Hef50

@Hef50 Hef50 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Dev mode (/dev, password-gated)

Makes CMU SSO optional for testing: three local test personas (cold-start freshman, power user with category interests, club organizer) can sign in without Google. Their dev- prefixed ids are checked at every data-layer write — RSVPs, scheduling, event creation all stay in local state, so test accounts can exercise the entire app without ever touching Supabase.

Panel tools behind the gate:

  • Test-account switcher (also surfaced as quick sign-in buttons on the login screen once dev mode is unlocked)
  • Seed 10 realistic events pinned to the current week (the bundled mock data has fixed dates that drift into the past) with one-tap cleanup
  • Reset local app state (settings, schedules, caches)
  • Theme playground: light/dark/system, font size, high contrast, reduced motion in one place
  • Test browser notification, navigation shortcuts, diagnostics (platform, Supabase status, event counts, current user)

Honest caveat, also noted in code comments: the password ships in the client bundle by necessity, so the gate is a convenience latch for testers, not security. Everything behind it is client-local by construction, so there is nothing sensitive for it to protect.

The Freshman Guide (/resources, public)

A one-stop link tree of everything a new CMU student needs: accounts (Andrew, SIO, Canvas, Stellic, Duo), academics (SOC, HUB, tutoring, FCEs, cmucourses), IT (WiFi, printing, software, VPN), dining (incl. CMUEats), housing, health (UHS, CaPS, TimelyCare, pantry), safety (CMU Police, Safewalk, CMU Alert), money (SFS, Handshake, CPDC, emergency funding), transit (free PRT, shuttles, campus map), involvement (TartanConnect, SLICE, athletics, CSDI), and a "when you don't know who to ask" section (Dean of Students, advisors, The Word, OIE). ~50 curated links with plain-language descriptions and client-side search. Linked from the landing page top bar and footer.

Verified with a scripted end-to-end browser flow: unlock gate → seed events → sign in as persona → browse Home/Calendar/Find. tsc 0 errors, lint clean, 21/21 unit tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_011nrgpkJbvZ9JCf2VA2kKvJ


Generated by Claude Code

Dev mode — password-gated testing tools (/dev):
- Makes CMU SSO optional for testing: three local test personas (cold
  start, power user, organizer) whose 'dev-' ids are guarded at every
  data-layer write, so they can exercise the full app — tabs, calendar,
  RSVPs, create, recommendations — without ever touching Supabase
- Panel tools: account switcher, seed 10 realistic events pinned to the
  current week (bundled mock data has fixed dates) with one-tap cleanup,
  reset local app state, theme/font/contrast/motion playground, test
  browser notification, navigation shortcuts, diagnostics readout
- Gate note: the password ships in the client bundle by necessity — it is
  a convenience latch for testers, not security, and everything behind it
  is client-local by construction

Freshman Guide (/resources):
- Public one-stop link tree for new CMU students: accounts, academics,
  IT, dining, housing, health, safety, money, transit, clubs, and
  who-to-ask-when-stuck — ~50 curated links with plain-language
  descriptions and client-side search
- Linked from the landing page top bar and footer

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011nrgpkJbvZ9JCf2VA2kKvJ
@Hef50
Hef50 merged commit 5fef26c into main Aug 12, 2026
2 checks 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