fix(web): route anonymous "Start a Project" CTA to login#128
Merged
Conversation
`specops hook install` (project scope) writes a SessionStart hook to .claude/settings.json that runs the bundled specops dashboard at the start of every session in this repo — so an agent sees what's ready / in-progress / blocked from turn 1. Resolves via the .claude/skills/specops symlink, so it tracks whatever version skills-lock.json pins. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Logged-out "Start a Project" CTA on the home page lands on a dead GitBook
page ("Content owner not found") — reported by leadership team with mobile
screenshots. Spec-first fix: home.md prescribed the GitBook URL for anon.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The home page get-involved card branched on auth state: signed-in users got the in-app /projects/create form, but anonymous users were sent to codeforphilly.gitbook.io/.../first-steps — which now returns "Content owner not found". The reported "works on laptop, not phone" symptom was actually logged-in vs logged-out, not responsive. Spec led: specs/screens/home.md prescribed the GitBook URL for the anon case, so the spec was wrong and is fixed first. Anonymous now routes through /login?return=/projects/create, matching the Volunteer screen's existing convention. Both branches are in-app routes now, so the external-link target/rel props drop away. Added a Home test asserting the anon card's href — the regression had no coverage before. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Why
Leadership-team feedback (#0-leadership-team, June 2026, with mobile screenshots from Kat & Travis): the home page's "Start a Project" card lands on a dead page —
codeforphilly.gitbook.io/.../first-stepsnow returns "Content owner not found."The reported "works on laptop, not phone" symptom was a red herring — it's logged-in vs logged-out, not responsive. The get-involved card branched on
person: signed-in users got the in-app/projects/createform, but anonymous users were sent to the legacy GitBook URL.What
Spec-first fix (per specops — the spec was wrong, so it leads):
specs/screens/home.md— the Get-involved card and Authorization tables prescribed the GitBook URL for the anonymous case. Now: anonymous →/login?return=/projects/create, matching the Volunteer screen's existing convention (volunteer.md:52).apps/web/src/screens/Home.tsx— anonymous branch →/login?return=/projects/create. Both branches are in-app routes now, so the external-linktarget="_blank"/relprops drop away.apps/web/tests/Home.test.tsx— new test asserts the anonymous card'shref. The original regression had no coverage.Validation
npm run type-check && npm run lint && npm testclean (web 74/74, shared 75/75)./login?return=/projects/createrenders the real sign-in page, and the GitHub link carriesreturn=%2Fprojects%2Fcreate(returns to the create form after auth). No GitBook URL remains.Plan:
plans/home-start-project-cta.md.🤖 Generated with Claude Code