docs: CHANGELOG v0.97.0 + REPORT (TASK-D1) + CONTEXT + README page-IA section

This commit is contained in:
2026-07-02 19:26:07 +02:00
parent 622d9328f8
commit c427b40b2f
4 changed files with 203 additions and 112 deletions
+54
View File
@@ -1,5 +1,59 @@
## Changelog
### v0.97.0 — TASK-D1: settings split + Tárhely page (unified drive view) (2026-07-02)
The 1451-line settings monolith becomes four pages; storage is promoted to a first-class main-nav
page with a unified (registry + agent) drive view; native browser dialogs migrate to the overlay
pattern. **IA/appearance only** — no `/api/storage/*` payload, storage semantics, or agent-client
change. Four commits (d50a919, f8e18a9, cb6f04c, 622d932).
- **Routing (server.go):** new `GET /storage` (Tárhely), `GET /settings/notifications` (GET→page /
POST→save split on the same path), `GET /settings/security`; the enrollment wizards move to
`/storage/init` + `/storage/attach`, with **301** permanent redirects from the old
`/settings/storage/{init,attach}`.
- **Data builders (handlers.go):** `settingsData()` decomposed into `settingsBaseData` +
`systemPageData` / `storagePageData` / `notificationsPageData` / `securityPageData`; each GET
handler and each error-re-rendering POST handler uses exactly its page's builder + template. All
five storage action redirects now land on `/storage?storage_msg=…`.
- **Template split:** `settings.html` deleted; sections moved verbatim into `settings_system.html`
(Rendszer konfiguráció, Verzió és frissítés, Vezérlő/Kiszolgáló újraindítása),
`settings_notifications.html` (Értesítések, Alkalmazás-email), `settings_security.html` (Jelszó
módosítás, Földrajzi korlátozás, Vészhelyzeti információk — misspelled heading + section copy
accents fixed), and `storage.html`. The NAS + migrate sections (previously nested inside
`{{if .StoragePaths}}` and invisible with zero drives) are now unconditional on `/storage`.
- **Sidebar (layout.html):** Tárhely main-nav item (hard-drive icon) + a "Beállítások" group with
Rendszer / Értesítések / Biztonság és hozzáférés sub-links (active state per page); orphaned
`.sidebar-settings-link` CSS deleted, `.nav-group-label` / `.nav-links-sub` added.
- **Unified drive view (storage.html):** registry cards render server-side as before; the agent
`/api/disks` list ENRICHES each connected user-data card in place (role tag via `i-lock`, drive
class, durable-id mono line, agent-only register/eject/wipe actions) joined on mount path — one
card per drive. Two extra groups: **Rendszermeghajtók** (system/backup, read-only, lock tag, no
actions) and **Nem regisztrált meghajtók** (register action only). Agent-down → one warn note
(`Az ügynök nem elérhető…`), all registry cards still render (graceful degradation). Agent-view
helpers emit design-system `.tag` markup (no `.badge`); the 🔒 emoji is gone.
- **Overlay migration:** every native `confirm()`/`prompt()` on the four pages routes through a
light `.confirm-overlay` dialog (`openDialog`; texts verbatim) — storage remove forms,
netStorageRemove, storageMigrateAll, storageDisconnect, storageDecommission (migrate + the
type-to-confirm anyway branch preserved like-for-like), storageReEnroll, triggerUpdate,
controller/server restart, and the two geo Hungary-removal confirms. One froze a browser tab
during D0 validation; none remain.
- **D0 leftovers:** the D0 grep gate false-negatived multibyte emoji on Windows — a Python
codepoint gate (`scripts/emoji_gate.py`) found and removed **8** survivors (📁🔄🔒📦 across
backups/debug/deploy/storage; the ★ default-marker → „(alapértelmezett)"). Orphaned
`.badge-lock`/`.lock-ico` CSS deleted (grep-zero first).
- **Gates & tests (+8):** `scripts/template_id_gate.py` (JS element-ID integrity — every
`getElementById`/`querySelector('#…')` resolves in its own template; red-proven by a misplaced
function), `scripts/emoji_gate.py` (0), Go tests for the four-page render + cross-leak, the h3
section inventory (all 11 old headings accounted for), 301s, storage redirect + flash, password
inline re-render, no-native-confirm scan, agent-down warn-note, and codepoint emoji scan.
Redirect + inventory tests red-proven against pre-split code. `go build/vet/test ./...` green.
- Live-validated on 9201 via claude-in-chrome: all four pages + the 301 redirect, the unified view
(3 enriched cards with role tags + durable-ids, Rendszermeghajtók group read-only with 0 action
buttons), the Leválasztás overlay opened + cancelled (drive untouched), and a full label-rename
round-trip through the real UI (flash on /storage, renamed back). NOT live-validated: agent-down
degradation (static/unit only — the agent must not be stopped on the live host); destructive
storage ops (endpoints unchanged; the moved UI paths await a supervised session).
### v0.96.0 — TASK-D0: design system v2 re-skin (appearance only) (2026-07-02)
Full customer-UI re-skin to the approved Felhom design system v2 — navy token palette, exception-based