From 1cb4cbc960179fbbf9907c1b82db68de5e6974de Mon Sep 17 00:00:00 2001 From: "a.tolmachev" Date: Sun, 12 Apr 2026 11:23:10 +0300 Subject: [PATCH] ui: add frontend diagnostics and stable test hooks --- TASKS.md | 10 +-- apps/ui/html/secrets.html | 24 ++--- apps/ui/html/wizard/index.html | 18 ++-- apps/ui/html/wizard/step1.html | 12 +-- apps/ui/html/wizard/step2.html | 14 +-- apps/ui/index.html | 10 +-- apps/ui/js/auth.js | 3 + apps/ui/js/diagnostics.js | 111 ++++++++++++++++++++++++ apps/ui/js/login.js | 14 ++- apps/ui/js/secrets.js | 17 +++- apps/ui/js/wizard.js | 12 ++- apps/ui/scripts/build.js | 3 + apps/ui/tests/e2e/observability.spec.js | 32 +++++++ 13 files changed, 229 insertions(+), 51 deletions(-) create mode 100644 apps/ui/js/diagnostics.js create mode 100644 apps/ui/tests/e2e/observability.spec.js diff --git a/TASKS.md b/TASKS.md index 51ddbec..33e1d09 100644 --- a/TASKS.md +++ b/TASKS.md @@ -2,18 +2,18 @@ ## Current -### `feat/frontend-observability-and-testability` +### `feat/id-display-support` Status: in_progress DoD: -- UI modules expose stable hooks for diagnostics and targeted testing where the current DOM is ambiguous -- console/runtime failures on critical pages are easier to attribute to a concrete page module -- existing UI e2e coverage stays green after the observability/testability pass +- `define_id!` implements `Display` +- formatting with typed ids no longer requires pervasive `.as_str()` +- the workspace builds cleanly after the macro change ## Next -- `feat/id-display-support` +- `feat/secret-crypto-hkdf` ## Backlog diff --git a/apps/ui/html/secrets.html b/apps/ui/html/secrets.html index b230329..6049694 100644 --- a/apps/ui/html/secrets.html +++ b/apps/ui/html/secrets.html @@ -52,7 +52,7 @@