Skip to content

fix(platform): clear closed two-factor password prompts - #4349

Merged
yannickmonney merged 1 commit into
mainfrom
fix/backup-code-password-reset
Oct 5, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/backup-code-password-reset

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

  • Reset the shared two-factor password prompt when its controlled open prop becomes false, including parent-driven successful backup-code regeneration and Disable closure.
  • Preserve explicit Cancel behavior, open-dialog error/retry state, and all EN/DE/FR copy.
  • Add actual-component regressions for successful regeneration/reopen and explicit Cancel/reopen. Empty reopened prompts disable Confirm and cannot issue another regeneration until a fresh password is entered.

Verification

  • Before the fix: successful-regeneration regression fails on nonzero password length; Cancel control passes.
  • After the fix: 22 focused tests pass across the two-factor section and account-form name/password suites, one worker.
  • Scoped oxlint, oxfmt, TypeScript diagnostics for both changed files and their account-form importer/tests (five files), commitlint and diff whitespace check pass. No whole-workspace checks were run locally.
  • Real Chromium with the actual section, shared FormDialog/Input and synthetic mock seams verifies both successful regeneration and Cancel reopen empty with Confirm disabled, with only one regeneration call.
  • Visual-aspect-analyzer: settled account-section frame scores 100, six elements, zero defects. Separate open-modal pixel audit records two toolbar visibility flicker events during its occlusion probes; no layout or style changes are made by this fix. Reopened empty prompt screenshot retained in task artifacts.

Closes #3900

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — exact head cd78b2bf599f6aa19f129eaee1093ba13fdd9d6c (unchanged at review). Reviewer: Codex #11 7a7d20b9, run 14fc30d2-4af5-4f85-a37b-95d6efd2c600. Implementer: Codex #7 ecfaae72, run f45a185b-12e0-4ada-a505-ea663178db5b.

Reviewed the two-file diff against #3900/TALE-321 and current main, including the nearby merged #4336 passkey changes. The controlled-close reset clears the mounted password state on parent-driven success closure as well as Cancel, while preserving error/retry behavior; backup-code and two-factor actions remain password-gated. No new strings, locale, docs, accessibility, or secret-handling issue found. The test covers successful regeneration/reopen and Cancel/reopen and ensures no repeat call with the retained password.

Local verification (one worker): bunx --no-install vitest run --config vitest.ui.config.ts --maxWorkers=1 app/features/settings/account/components/two-factor-section.test.tsx app/features/settings/account/components/account-form.name.test.tsx app/features/settings/account/components/account-form.password.test.tsx — 3 files, 22 tests passed. Scoped oxfmt --check, oxlint --type-aware, and git diff --check passed. A direct file-list tsc diagnostic was attempted but cannot resolve this workspace's @/* aliases or test matchers without the project config; PR CI Type check is green. Unrun: full workspace suite, browser/E2E, backend integration, and visual/manual review. No CI rerun, push, merge, status change, or human native-review decision.

@yannickmonney
yannickmonney merged commit bd62f96 into main Oct 5, 2026
@yannickmonney
yannickmonney deleted the fix/backup-code-password-reset branch October 5, 2026 12:13
@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-827 merge receipt 4/4 — #4349

Accepted head cd78b2bf599f6aa19f129eaee1093ba13fdd9d6c; normal squash merge SHA / eligible main source bd62f9697bd6074b7e6700c336f0c85e1ca19b7a.
OPEN/not draft; UNKNOWN resolved to CLEAN/MERGEABLE on re-read. CI: 50 SUCCESS, 27 conditional SKIPPED, 1 advisory NEUTRAL, none failing/pending.
Independent ACCEPT C11 14fc30d2; implementation C7 differs from merger C12 cb4bdc7f-5fd3-4a6c-8eee-734081fc0908.
GitHub squash-message byte comparison passes: exact mandated title and one commit-subject bullet, no trailer/attribution.
TALE-321 fix. No admin bypass, push, update-branch, CI rerun, status change or native-review decision; human-captured review untouched. Merged-source eligibility is not candidate/release/deployment proof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platform): backup-code regeneration reopens with the previous password

1 participant