chore(web-ui): delete legacy standalone HTML pages; SPA is the only entry #27

Merged
zgaetano merged 1 commit from chore/cleanup-legacy-html into main 2026-05-23 16:49:39 -04:00
Owner

Summary

public/ had two parallel UIs: the React SPA (index.html + screens-*.jsx) and a stack of pre-SPA standalone pages (home.html, recorders.html, jobs.html, etc.). The SPA replaces every standalone page — no .jsx references them — and the only outside links were login.html redirecting to home.html and the nginx fallback. Sign-in was landing operators on the 2025-era home page instead of the actual React app.

Deleted (16 files, ~9.2k lines, ~430 KB)

_primitives-smoke.html api-tokens.html capture.html cluster.html
containers.html edit.html editor.html home.html
jobs.html player.html projects.html recorders.html
settings.html tokens.html upload.html users.html

Kept

  • index.html — React SPA shell
  • login.html — sign-in + first-admin setup

Redirects rewired to the SPA

  • login.html post sign-in: location.href='home.html'location.href='/'
  • nginx.conf SPA fallback: try_files $uri $uri/ /home.htmltry_files $uri $uri/ /index.html

The Editor screen continues to embed the separate editor service via the /editor/ nginx proxy — unaffected. The YouTube ingest page, recorders, schedule, library, etc. are all already SPA screens (screens-*.jsx).

Test plan

  • Sign in via /login.html — lands on / showing the React SPA, not the old home page
  • Visit any non-existent path (e.g. /foo) — nginx serves the SPA shell, React routing decides what to render
  • curl -sI .../home.html returns 404 (file no longer exists)
  • Bottom-left sidebar still shows the real signed-in user

🤖 Generated with Claude Code

## Summary `public/` had two parallel UIs: the React SPA (`index.html` + `screens-*.jsx`) and a stack of pre-SPA standalone pages (`home.html`, `recorders.html`, `jobs.html`, etc.). The SPA replaces every standalone page — no `.jsx` references them — and the only outside links were `login.html` redirecting to `home.html` and the nginx fallback. Sign-in was landing operators on the 2025-era home page instead of the actual React app. ## Deleted (16 files, ~9.2k lines, ~430 KB) | | | | | |---|---|---|---| | `_primitives-smoke.html` | `api-tokens.html` | `capture.html` | `cluster.html` | | `containers.html` | `edit.html` | `editor.html` | `home.html` | | `jobs.html` | `player.html` | `projects.html` | `recorders.html` | | `settings.html` | `tokens.html` | `upload.html` | `users.html` | ## Kept - **`index.html`** — React SPA shell - **`login.html`** — sign-in + first-admin setup ## Redirects rewired to the SPA - **`login.html`** post sign-in: `location.href='home.html'` → `location.href='/'` - **`nginx.conf`** SPA fallback: `try_files $uri $uri/ /home.html` → `try_files $uri $uri/ /index.html` The Editor screen continues to embed the separate editor service via the `/editor/` nginx proxy — unaffected. The YouTube ingest page, recorders, schedule, library, etc. are all already SPA screens (`screens-*.jsx`). ## Test plan - [ ] Sign in via `/login.html` — lands on `/` showing the React SPA, not the old home page - [ ] Visit any non-existent path (e.g. `/foo`) — nginx serves the SPA shell, React routing decides what to render - [ ] `curl -sI .../home.html` returns 404 (file no longer exists) - [ ] Bottom-left sidebar still shows the real signed-in user 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zgaetano added 1 commit 2026-05-23 16:49:29 -04:00
Before this commit /public had two parallel UIs: the React SPA (index.html
+ screens-*.jsx) and a stack of pre-SPA standalone pages (home.html,
recorders.html, jobs.html, ...). The SPA replaces every standalone page,
nothing in the .jsx tree links to them, and the only outside references
were login.html redirecting to home.html and the nginx fallback pointing
at home.html.

Delete 16 standalone pages (~9.2k lines of dead markup, ~430KB on disk):
  _primitives-smoke.html  api-tokens.html  capture.html  cluster.html
  containers.html         edit.html        editor.html   home.html
  jobs.html               player.html      projects.html recorders.html
  settings.html           tokens.html      upload.html   users.html

Keep:
  index.html  — the React SPA shell
  login.html  — the sign-in / setup screen

Wire the redirects to the SPA:
- login.html post-signin: home.html -> /
- nginx try_files fallback: /home.html -> /index.html

After this, sign-in lands the operator on the real React app instead of
the stale 2025-era home page. The Editor screen continues to embed the
separate editor service via the /editor/ nginx proxy (unaffected).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
zgaetano merged commit 6322b61a04 into main 2026-05-23 16:49:39 -04:00
zgaetano deleted branch chore/cleanup-legacy-html 2026-05-23 16:49:39 -04:00
Sign in to join this conversation.
No reviewers
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: WildDragonLLC/dragonflight#27
No description provided.