[Bug] Блокировать auth Link во время pending submit #56

Closed
opened 2026-10-11 21:48:56 +03:00 by codex-bot · 0 comments
Owner

Problem

Fieldset disabled блокирует controls, но Button component=Link остаётся anchor. Во время submit можно перейти login/register, потеряв draft/error context. Identity leak этим не доказана.

Expected Behavior

Pointer/keyboard не переключают auth route пока submit pending; после failure ввод и обычная ссылка доступны.

Evidence

Audit date 2026-10-11; 05, FE-005. Revision c8821200ce699dab1ce65360d1968d5877a2e78b; Confidence High; Verification status static.
Affected: AuthForm.tsx:26–84; LoginForm/RegisterForm:6–9; auth.vm.ts:121–133.

Scope

In scope

Existing AuthForm interaction guard и accessible disabled semantics/tab behavior.

Out of scope

Global navigation/back lock, session queue redesign, div navigation, raw password changes.

Proposed Approach

Pending guard click/activation у owner, aria/data disabled и tab exclusion; сохранить true Link в обычном состоянии.

Acceptance Criteria

  • Deferred submit: pointer click/Enter не меняют auth route.
  • Pending link не focusable обычным Tab; недоступность обозначена семантически.
  • Failed submit сохраняет ввод, link восстановлена; auth generation/cookie ordering прежние.

Verification

Existing AuthForm RTL/MemoryRouter с deferred rejection и narrow browser keyboard check; frontend final verify по behavior diff.

Dependencies

Нет.

Traceability

Campaign WealthLedger/main#23 . Finding FE-005. WealthLedger/frontend; T24.

<!-- wealthledger-audit:2026-10-11:auth-pending-navigation --> ## Problem Fieldset disabled блокирует controls, но Button component=Link остаётся anchor. Во время submit можно перейти login/register, потеряв draft/error context. Identity leak этим не доказана. ## Expected Behavior Pointer/keyboard не переключают auth route пока submit pending; после failure ввод и обычная ссылка доступны. ## Evidence Audit date `2026-10-11`; [05](https://git.personal.ksv741.ru/WealthLedger/main/src/commit/d07fbfabb1295780952a554185989d2d5b5c8349/audits/2026-10-11/reports/05-frontend-architecture-report.md), FE-005. Revision `c8821200ce699dab1ce65360d1968d5877a2e78b`; Confidence High; Verification status static. Affected: [AuthForm.tsx:26–84](https://git.personal.ksv741.ru/WealthLedger/frontend/src/commit/c8821200ce699dab1ce65360d1968d5877a2e78b/src/features/auth/ui/AuthForm/AuthForm.tsx#L26-L84); LoginForm/RegisterForm:6–9; auth.vm.ts:121–133. ## Scope ### In scope Existing AuthForm interaction guard и accessible disabled semantics/tab behavior. ### Out of scope Global navigation/back lock, session queue redesign, div navigation, raw password changes. ## Proposed Approach Pending guard click/activation у owner, aria/data disabled и tab exclusion; сохранить true Link в обычном состоянии. ## Acceptance Criteria - [ ] Deferred submit: pointer click/Enter не меняют auth route. - [ ] Pending link не focusable обычным Tab; недоступность обозначена семантически. - [ ] Failed submit сохраняет ввод, link восстановлена; auth generation/cookie ordering прежние. ## Verification Existing AuthForm RTL/MemoryRouter с deferred rejection и narrow browser keyboard check; frontend final verify по behavior diff. ## Dependencies Нет. ## Traceability Campaign https://git.personal.ksv741.ru/WealthLedger/main/issues/23 . Finding FE-005. WealthLedger/frontend; T24.
codex-bot added this to the Technical Audit Remediation — 2026-10-11 milestone 2026-10-11 21:48:56 +03:00
codex-bot added the Kind/Bug
Priority
Medium
3
audit/2026-10-11
labels 2026-10-11 21:48:56 +03:00
codex-bot was assigned by hermes-agent 2026-10-12 00:04:19 +03:00
hermes-agent added this to the WealthLedger — Delivery Board project 2026-10-12 00:04:19 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/frontend#56