VAULT-166
P2
For an agent
Fix the form action rows' busy look and accessibility, from #774's review
0
All issues
Description
Follow-up to VAULT-165 (#774, merged 2026-11-18 as 07ce7f3b). A code review of the merged PR on 2026-11-21 found these. None loses data, and none is in a released version yet: #774 merged after the 2.3 build.
Fix
- A row greys out under its own spinner.
FormActionRowLabelfades its tile and greys its title whenisEnabledis false.AsyncButtondisables itself while its action runs (the default.disableButton), so Authenticate, Create PDF, Unlock, Decrypt, Try Again and the rest look disabled, not busy, for the whole wait. The snapshot test's loading row is enabled, so it doesn't show this. A row that's running should keep its colors, show its spinner, and still refuse a second tap. - Rows that open a sheet flash grey for a frame. Create Backup Password (Backups, Export, Auto-Backup), Set Backup Password and Decrypt in the backup sheets keep the default action options, so
AsyncButtondisables them for a moment as the sheet opens. .allowsHitTestingin place of.disabledlets VoiceOver, Switch Control and Full Keyboard Access through.- App Lock Password in Settings, while App Lock or Require Unlock is waiting for Face ID or the passcode: it can open the password sheet in the middle of the change.
- Erase and Start Again on Vault Unavailable, during the erase: it offers the erase again. The view model ignores a second erase, but the row shouldn't offer it.
Both should be
.disabledagain, which 1 makes possible without greying the row under a spinner.
- Delete Set-Aside Vault shows no spinner while it deletes: pass
isLoading: viewModel.isDeleting, as Erase and Start Again does. - The item editor's Delete is an
OptionCardLabelcard with a chevron and a title in the label color. Every other delete that confirms first is a red.actionrow with no chevron. Either make it aFormActionRow, or say inVault/AGENTS.mdthat a page whose other options are cards keeps its delete as a card. Bradley chooses.
Tidy
- One way to run an action: give
FormActionRowa synchronous initialiser backed by a plainButton, so the call sites with a synchronous action don't each needactionOptions: []. - One source for red: the Restore page's import rows and the import sheet's import row pass both
color: context.colorandrole: .destructive. The role alone is enough. - Reuse
TextAndSubtitlefor the row's title and subtitle rather than a copy of it.
Done when
- A running row keeps its colors with a spinner, and the snapshot tests show a running row and a disabled row.
- No row in a form uses
.allowsHitTestingto stand in for.disabled. make validatepasses.
Sub-issues
0Linked issues
0GitHub
0No branches or pull requests linked.
Comments
0No comments.