From a89048f6c59ae3f37c7d0d2a4ac896abf7f0799e Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Thu, 21 May 2026 23:17:51 +0200 Subject: [PATCH] docs(ui): finalize MVP plan structure and de-archaeologize topic docs MVP web client (Phases 1-30) is complete; reorganize planning + living docs around that. - PLAN.md kept as the staged MVP record (1-30) with a status block + pointers; removed the 31-36 stages, regression scenarios, and deferred-TODO section (moved out); fixed a stale cross-machine plan path. - ui/PLAN-finalize.md (new): active web-finalization plan in 8 stages (visual system, a11y, i18n, error UX, PWA, build hygiene, docs, owner manual-QA loop); absorbs former Phases 33 and 35. - ui/ROADMAP.md (new): post-MVP (Wails, Capacitor, realistic projection, acceptance + regression scenarios) and triaged deferred follow-ups. - ui/docs/README.md (new): grouped topic-doc index. - De-archaeologized all 20 ui/docs topic docs + ui/README.md + ui/core/README.md: stripped Phase-N build history, rewritten as current-state; deferred work now points at ROADMAP.md / PLAN-finalize.md. Docs-only; no code change. Co-Authored-By: Claude Opus 4.7 (1M context) --- ui/PLAN-finalize.md | 130 +++++++++++ ui/PLAN.md | 396 ++------------------------------- ui/README.md | 94 ++++---- ui/ROADMAP.md | 156 +++++++++++++ ui/core/README.md | 47 ++-- ui/docs/README.md | 60 +++++ ui/docs/auth-flow.md | 33 ++- ui/docs/battle-viewer-ux.md | 14 +- ui/docs/calc-bridge.md | 132 +++++------ ui/docs/calculator-ux.md | 8 +- ui/docs/cargo-routes-ux.md | 31 ++- ui/docs/diplomail-ui.md | 16 +- ui/docs/events.md | 14 +- ui/docs/game-state.md | 108 +++++---- ui/docs/i18n.md | 24 +- ui/docs/lobby.md | 34 ++- ui/docs/navigation.md | 121 +++++----- ui/docs/order-composer.md | 144 ++++++------ ui/docs/renderer.md | 45 ++-- ui/docs/report-view.md | 12 +- ui/docs/science-designer-ux.md | 18 +- ui/docs/ship-group-actions.md | 30 ++- ui/docs/storage.md | 57 ++--- ui/docs/sync-protocol.md | 14 +- ui/docs/testing.md | 19 +- ui/docs/wasm-toolchain.md | 8 +- 26 files changed, 836 insertions(+), 929 deletions(-) create mode 100644 ui/PLAN-finalize.md create mode 100644 ui/ROADMAP.md create mode 100644 ui/docs/README.md diff --git a/ui/PLAN-finalize.md b/ui/PLAN-finalize.md new file mode 100644 index 0000000..c40f2bc --- /dev/null +++ b/ui/PLAN-finalize.md @@ -0,0 +1,130 @@ +# UI Client — Finalization Plan + +The MVP web client (Phases 1–30, [PLAN.md](PLAN.md)) is functionally +complete. This plan finalizes the **web** experience — visual +consistency, accessibility, localisation, error UX, installability, and +documentation — before the native platform wrappers in +[ROADMAP.md](ROADMAP.md). It absorbs the original Phases 33 (PWA) and 35 +(Polish), which were pulled forward to here. + +**This is a finalization pass, not the final word.** After it ships, the +owner exercises the whole UI by hand and brings small-nuance fixes; the +last stage (F8) is an explicit, open-ended owner-driven refinement loop. +The earlier stages are "done" when their acceptance holds; the feature +set is "final" only when the owner signs off. + +Each stage ends with a runnable, reviewable artifact and is gated on the +per-stage CI rule (push, watch `go-unit` / `ui-test` to green) before +being marked done. + +--- + +## F1 — Visual design system + +Goal: replace the ad-hoc per-component styling (inline hex colors like +`#0a0e1a`, one-off spacing) with a shared design language so every view +looks like one product. + +- `ui/frontend/src/lib/theme/` (or `app.css` `:root`) design tokens: + color palette (surface / border / text / accent / danger), spacing + scale, radii, typography, focus-ring style — as CSS custom properties. +- Migrate components to the tokens (calculator, inspectors, sidebar, + tables, lobby, auth) — replace literal hex/px with `var(--…)`. +- Topic doc `ui/docs/design-system.md` documenting the tokens and usage. + +Acceptance: no literal theme colors left in component `