Skip to content

feat(web)!: trim app to landing + auth + OAuth consent — CLI/MCP direction lock - #146

Merged
ArkashJ merged 2 commits into
mainfrom
feat/web-landing-only
Jun 10, 2026
Merged

feat(web)!: trim app to landing + auth + OAuth consent — CLI/MCP direction lock#146
ArkashJ merged 2 commits into
mainfrom
feat/web-landing-only

Conversation

@ArkashJ

@ArkashJ ArkashJ commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Why

The direction lock (root CLAUDE.md): MCP + CLI are the product; the web UI is retired. This PR trims the Next.js app to the only surfaces that still earn their keep, so the Vercel deployment (stratabank.vercel.app) keeps working with a fraction of the code.

The full app is preserved untouched on the frontend-archive branch and the frontend-archive-2026-06-10 tag — nothing is lost.

What survives

  • Landing: / always renders <NightCanvas><PublicLanding/></NightCanvas> (pixel-identical to the deployed signed-out page; HomeGate + signed-in app home removed)
  • Auth: /sign-in, /sign-up, AuthCanvas, Clerk middleware + lib/clerk* — the landing's Sign in / Create account CTAs work exactly as today
  • OAuth consent: /oauth/authorize (ConsentView) — backend/src/strata/config.py points hosted-MCP OAuth here; its full import closure kept (ui/Button, lib/env → zod)
  • Plus layout/globals.css/robots/not-found, a sitemap rewritten to list only / (no backend fetch), and config (next.config.ts minus the /embed CSP block)

What was deleted

  • All app routes: agents, bank, browse, build, c, connectors, contribute, dashboard, embed, explore, f, feedback, graph, guides, integrations, p, portfolio, signals, tam
  • All components/lib/stores outside the survivor closure, Storybook, Playwright (e2e + config + reports), vitest, knip, buildtest, stray screenshots
  • Deps removed: @tanstack/react-query, reactflow, recharts, simple-icons, vis-data, vis-network, zustand, clsx, tailwind-merge (verified against survivor imports — no survivor uses react-query, so the Providers wrapper is gone from layout); all test/storybook devDeps; lockfile regenerated with bun
  • 288 files changed, −34,388 lines

Behavior notes

  • Signed-in users hitting a retired route get the Next 404 (not-found.tsx, copy updated) — intentional, no redirects
  • Middleware allowlist: /, /sign-in*, /sign-up*, /oauth*, robots/sitemap/opengraph
  • scripts/deploy-smoke.sh web probes trimmed to / + /sign-in
  • Backend untouched (MCP /tam permalink repointing is a separate task)

Proof

bun run build green — routes: / /_not-found /oauth/authorize /robots.txt /sign-in /sign-up /sitemap.xml. tsc --noEmit, biome, and eslint all clean.

🤖 Generated with Claude Code

ArkashJ and others added 2 commits June 10, 2026 09:55
…ction lock

The web app is retired; CLI + MCP are the product. The Next.js app now serves
only the public landing (/), Clerk sign-in/sign-up, and the hosted-MCP OAuth
consent page (/oauth/authorize, pointed at by backend/src/strata/config.py).

- / always renders the public landing (HomeGate + app home removed)
- layout drops AppShell and the react-query Providers (no survivor needs query)
- middleware allowlist: / sign-in sign-up oauth robots sitemap opengraph;
  retired routes 404 via Next not-found, no redirects
- sitemap lists only /, no backend fetch; /embed CSP block dropped
- deps pruned to @clerk/nextjs, motion, next, react, react-dom, zod
  (zod via lib/env.ts in the oauth closure); test/storybook/playwright
  tooling removed; lockfile regenerated with bun
- deploy-smoke web probes trimmed to / and /sign-in

Full app preserved on branch frontend-archive + tag frontend-archive-2026-06-10.
next build green: / /_not-found /oauth/authorize /robots.txt /sign-in /sign-up
/sitemap.xml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant