diff --git a/CHANGELOG.md b/CHANGELOG.md index 381cbc2..efe97a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## Changelog +### v0.127.2 — wizard code hide is MANUAL-only (2026-07-13, Viktor's live finding on v0.127.1) + +The v0.127.1 blur-on-verify auto-blurred the code the moment a verification input got focus — +which made typing the two words HARDER, since the customer types them from the screen. Reversed: +the code stays visible; the "Elrejtés"/"Megjelenítés" toggle appears with the reveal and is +manual-only (still useful for a screen share). Render test asserts no `onfocus` auto-blur remains. + ### v0.127.1 — escrow wizard polish: CTA visibility + Hungarian preflight + typed-back highlight + blur-on-verify (2026-07-13) Four findings from Viktor's first supervised wizard passes (drill + demo). Presentation-only — diff --git a/controller/internal/web/escrow_wizard_test.go b/controller/internal/web/escrow_wizard_test.go index 3323b58..8fe9419 100644 --- a/controller/internal/web/escrow_wizard_test.go +++ b/controller/internal/web/escrow_wizard_test.go @@ -325,15 +325,22 @@ func TestEscrowTemplates_Render(t *testing.T) { "Ez a kód többé nem jeleníthető meg.", "nem ezen a szerveren", "biztonsági okból újra nem kérhető le", - // v0.127.1 polish: the Hungarian preflight detail map + the blur-on-verify toggle. + // v0.127.1 polish: the Hungarian preflight detail map + the hide/show toggle + // (v0.127.2: manual-only — initial label "Elrejtés", code visible by default). "nincs előkészített jelszó — a varázsló indításkor automatikusan előkészíti", "a rendszerjogosultság hiányzik", "Megjelenítés", + ">Elrejtés", } { if !strings.Contains(html, want) { t.Errorf("wizard missing %q", want) } } + // v0.127.2 (Viktor's live finding): the code must NOT auto-blur when a verification input + // gets focus — the customer types from the screen. The hide toggle is manual-only. + if strings.Contains(html, "armCodeBlur") || strings.Contains(html, "onfocus=") { + t.Error("auto-blur-on-focus must be gone (manual toggle only)") + } if strings.Contains(html, "érvényét veszti") { t.Error("fresh wizard must not show the re-ceremony supersede warning") } diff --git a/controller/internal/web/templates/backups_escrow.html b/controller/internal/web/templates/backups_escrow.html index 2e7bbad..907d18c 100644 --- a/controller/internal/web/templates/backups_escrow.html +++ b/controller/internal/web/templates/backups_escrow.html @@ -71,13 +71,13 @@