Decommission Next.js UI #185

Closed
opened 2026-06-20 15:44:42 +00:00 by james · 0 comments
Owner

Once every screen is ported (port-screens ticket) and the Expo Web bundle is wired into the deployment (single-container ticket), delete the Next.js UI: app/(app)/, app/login/, app/register/, app/page.tsx, app/offline/, app/layout.tsx, app/providers.tsx, app/manifest.ts, app/sw.ts, app/sw-register.tsx, app/components/.

Everything that remains under app/ is either app/api/ or supporting server config.

Scope

  • Delete the UI files listed above.
  • Remove now-unused deps from apps/api/package.json (next-intl, @serwist/next, etc. — actual list depends on what survives elsewhere).
  • Remove app/themes/{light,dark}.css from the API workspace (the source of truth now lives in apps/client).
  • Update lib/auth/public-routes.ts — only API routes need allowlisting now.
  • Update CLAUDE.md to remove references to the old UI layout.
  • Verify CI still passes after the deletion.

Acceptance criteria

  • Only app/api/ and root-level config remain under apps/api/app/.
  • No build warnings about unused deps.
  • CLAUDE.md no longer references deleted paths.
  • The API container still serves the Expo Web bundle (per deployment ticket) — no regression.

Out of scope

  • Backporting any UI-only fixes to the deleted code.

Composes with

Port existing screens, Single-container deployment.

Part of

#176

Once every screen is ported (port-screens ticket) and the Expo Web bundle is wired into the deployment (single-container ticket), **delete the Next.js UI**: `app/(app)/`, `app/login/`, `app/register/`, `app/page.tsx`, `app/offline/`, `app/layout.tsx`, `app/providers.tsx`, `app/manifest.ts`, `app/sw.ts`, `app/sw-register.tsx`, `app/components/`. Everything that remains under `app/` is either `app/api/` or supporting server config. ## Scope - Delete the UI files listed above. - Remove now-unused deps from `apps/api/package.json` (`next-intl`, `@serwist/next`, etc. — actual list depends on what survives elsewhere). - Remove `app/themes/{light,dark}.css` from the API workspace (the source of truth now lives in `apps/client`). - Update `lib/auth/public-routes.ts` — only API routes need allowlisting now. - Update CLAUDE.md to remove references to the old UI layout. - Verify CI still passes after the deletion. ## Acceptance criteria - [ ] Only `app/api/` and root-level config remain under `apps/api/app/`. - [ ] No build warnings about unused deps. - [ ] CLAUDE.md no longer references deleted paths. - [ ] The API container still serves the Expo Web bundle (per deployment ticket) — no regression. ## Out of scope - Backporting any UI-only fixes to the deleted code. ## Composes with Port existing screens, Single-container deployment. ## Part of #176
james closed this issue 2026-06-21 15:57:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
james/carol#185
No description provided.