feat(client): make Chat the default landing screen (was Notes) #373

Merged
james merged 1 commit from default-screen-chat into main 2026-06-29 14:59:34 +00:00
Owner

The app landed on Notes on open and after sign-in. Make Chat the default — it's the primary surface now.

Updates the index redirect and every post-auth landing target, all /notes/chat:

  • app/index.tsx<Redirect href> (+ its comment).
  • app/login.tsx — post-login router.replace, the OAuth web next param, the OAuth native post-signin router.replace, and a stale comment.
  • app/register.tsx — post-register router.replace.

The Notes screen and /notes route stay (still routable — it's intentionally out of the sidebar; only the default landing changes). A full rg "/notes" over the routing code comes back clean afterward (only /api/notes API-URL hits remain, which are unrelated).

Verification (local)

  • typecheck ✓ · lint ✓ · test ✓ 172 (the two /notes test hits are an API URL and the "notes is not in the sidebar" nav assertion — both correctly unchanged) · semgrep ✓ 0 findings
  • Only the 3 routing files changed.

Direct request (no ticket).

🤖 Generated with Claude Code

The app landed on **Notes** on open and after sign-in. Make **Chat** the default — it's the primary surface now. Updates the index redirect and every post-auth landing target, all `/notes` → `/chat`: - `app/index.tsx` — `<Redirect href>` (+ its comment). - `app/login.tsx` — post-login `router.replace`, the OAuth web `next` param, the OAuth native post-signin `router.replace`, and a stale comment. - `app/register.tsx` — post-register `router.replace`. The Notes screen and `/notes` route stay (still routable — it's intentionally out of the sidebar; only the default landing changes). A full `rg "/notes"` over the routing code comes back clean afterward (only `/api/notes` API-URL hits remain, which are unrelated). ## Verification (local) - `typecheck` ✓ · `lint` ✓ · `test` ✓ 172 (the two `/notes` test hits are an API URL and the "notes is not in the sidebar" nav assertion — both correctly unchanged) · semgrep ✓ 0 findings - Only the 3 routing files changed. Direct request (no ticket). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(client): make Chat the default landing screen (was Notes)
Some checks failed
Commits / Conventional Commits (pull_request) Successful in 32s
PR / OpenAPI (pull_request) Successful in 1m55s
PR / Lint (pull_request) Successful in 2m15s
PR / Typecheck (pull_request) Successful in 2m19s
PR / Static analysis (pull_request) Successful in 2m37s
PR / Client (web export smoke) (pull_request) Successful in 4m11s
PR / OSV-Scanner (pull_request) Successful in 2m20s
PR / Build (pull_request) Successful in 4m18s
PR / Package age policy (soft) (pull_request) Successful in 1m3s
PR / pnpm audit (pull_request) Successful in 2m49s
PR / Test (postgres) (pull_request) Successful in 3m30s
Secrets / gitleaks (pull_request) Successful in 29s
PR / E2E (Playwright) (pull_request) Failing after 4m17s
PR / Trivy (image) (pull_request) Failing after 3m22s
PR / Test (sqlite) (pull_request) Successful in 3m58s
PR / Coverage (soft) (pull_request) Successful in 3m6s
11e2972015
The app landed on Notes on open and after sign-in. Make Chat the default,
since it's the primary surface now. Updates the index redirect and every
post-auth landing target — post-login + post-register router.replace, the
OAuth web `next` param, and the OAuth native post-signin replace — from
/notes to /chat (plus a stale comment). The Notes screen + route stay
(routable, just no longer the default).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

📊 Test coverage

Patch coverage: no testable lines changed.

Overall (app/, lib/, db/, excluding UI per ADR-0019):

Metric Value Soft target
Lines 79.4% ≥ 50%
Branches 71.2% ⚠️ ≥ 75%
Functions 80.5% informational

Soft thresholds per ADR-0019. Coverage is informational and does not block merge.

<!-- coverage-comment --> ## 📊 Test coverage **Patch coverage:** no testable lines changed. **Overall** (`app/`, `lib/`, `db/`, excluding UI per ADR-0019): | Metric | Value | Soft target | |---|---|---| | Lines | 79.4% ✅ | ≥ 50% | | Branches | 71.2% ⚠️ | ≥ 75% | | Functions | 80.5% | informational | Soft thresholds per [ADR-0019](docs/adr/0019-coverage-soft-targets.md). Coverage is informational and does not block merge.
james merged commit c77be030f8 into main 2026-06-29 14:59:34 +00:00
james deleted branch default-screen-chat 2026-06-29 14:59:35 +00:00
Sign in to join this conversation.
No description provided.