Repository navigation
fix(ui): a signed-in visitor gets one navigation on public pages (#1190) - #1196
Conversation
/pricing, /security and /how-it-works rendered the public header (logo, Sign in, Start free) inside the app shell's sidebar and sheet tabs. The layout's signed-in branch now marks the shell with AppShellProvider and PublicNav renders nothing inside it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Third-party review (review chain)I'll verify the key claims against the actual codebase before giving findings.I attempted to load a review skill and inspect the repo directly, but neither is available in this environment, so this is a static review of the diff itself. Here are my findings. How the fix behaves (verifying the review checklist)SSR/hydration: Sound. Pages rendering PublicNav outside the provider while signed in: None exist by construction. The provider wraps Server-component boundaries: The conversion is safe in principle — server pages importing a now-client E2E failure modes: The new spec's assertions are logically right, but two things to confirm (neither shown in the diff):
Anonymous path: Unchanged — default context value FindingsCRITICAL: None. MAJOR: None confirmed in the diff. MINOR:
VerdictThe fix is architecturally correct: the provider/children pattern avoids DOM and hydration issues, the suppression is centralized and total (no signed-in page can leak the public header), the anonymous path is untouched, CLAUDE.md and unit/e2e guards are updated. Remaining risks are verifiable at build/test time rather than design flaws. APPROVE |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Review: one navigation for signed-in visitors on public pages (#1190)The approach is sound. Bugs / risks
Style / conventions
Tests
Security / performanceNo concerns. The change is presentational, and middleware and auth are untouched. Overall this is a clean, small fix. The points above are non-blocking. |
Third Party Review — Kimi✅ Third Party Review: no defects found. Verified against the checked-out code, not just the diff:
Model: k3[1m] |
Reviewer failover
|
|
Review of #1196 The approach is small and clean: a context flag set in the signed-in branch of the layout, with Bugs / risks
Code quality
Tests
Security / performance
Docs
|
Third Party Review — Kimi✅ Third Party Review: no defects found. Verified against the checked-out code, not just the diff:
Model: k3[1m] |
Reviewer failover
|
Closes #1190.
What changed
components/AppShell.tsx:AppShellProvidermarks the signed-in shell.app/layout.tsxwrapschildrenwith it in the signed-in branch only.components/PublicNav.tsxis now a client component that renders nothing inside the shell. A signed-in visitor on/pricing,/securityor/how-it-worksgets the app's sidebar and sheet tabs, not a second logo with "Sign in / Start free". Anonymous visitors see the same public header as before.Verification
PublicNavinsideAppShellProviderrenders no Public navigation and no Sign in link. The existing public-page tests (rendered outside the shell) are unchanged and pass.public-trust-pages.spec.ts,@smoke): signed in, each of the three pages shows exactly one logo, no Public nav and no Sign in link. With the fix stashed it fails (Received: 2logos). With it, the full chromium smoke passes 48/48.crap.shpasses (all new bodies cc 1).Review
Review chain: APPROVE. MINOR 1 (write
if (…) return nullinstead of the lookup): declined. The repo's CRAP rule keeps branches out of JSX-returning components, because Jest never records theirreturn (line (root CLAUDE.md, "JSX"). MINOR 2 (e2e brittleness): the spec was run red and green against the real page.🤖 Generated with Claude Code