Dialog canon drift: destructive confirms use the askConfirm prose blob with "OK"; name dialog primary is "OK"; several dialogs lack .dlgactions / h2; licdlg order + "License"/"licence" #693
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the #656 QA pass, §3 UI consistency audit (v0.6.247, files). I statically inventoried all 30
<dialog>elements in the live DOM and opened the common ones.Style guide, Dialogs (canon): "destructive confirms use fact rows (icon + sentence with bold pluralised counts and mono paths …), never an
askConfirmprose blob"; the footer has "Cancel before the primary or danger verb, the verb naming its object"; "askConfirmstays only for trivial yes/no questions with no facts to state".1. Destructive actions through
#confirmdlg(askConfirm), primary "OK":#confirmdlghas no h2/h3), no fact rows (no size, no "goes to Deleted files, recoverable for N days"), and the verb is OK instead of "Delete file".spacedeldlg,ownrevdlgandludeldlgfollow the canon.2.
#namedlg(New folder / New file / Rename) primary is "OK" where it should say "Create folder" / "Create file" / "Rename". Its input focus ring is the UA default (outline: rgb(16,16,16) auto) rather than an accent ring. The same dialog titled "New folder" is also what the Spaces view uses to create a space.3. Structure outliers (not in the documented exceptions, which are
#spselfdlganddialog.ocmdlg):#pickdlg(Move/Copy picker): no.dlgactionsband, and "+ New folder here" sits among the actions.#peeraddlg(Add a peer): no.dlgactions, and three buttons with Close last.#peerdetaildlg: no.dlgactionsand no h2/h3 title.#spcdetaildlg: no.dlgactions.4.
#licdlg: the title is "License" (US spelling) while its own primary is "Refresh licence" and the admin page is "Licensing/licence". Close comes after the primary, where the canon puts Cancel/Close first.5. Possibly dead legacy dialogs still in the DOM:
#settingsdlg("Settings" with Audit log / Legal holds / Save),#auditdlg,#holdsdlgand#peerdlg("Instance peering", Save with no Cancel) duplicate the admin pages. If they are unreachable, they are dead weight. If they are reachable, they are a second, older idiom ("New surfaces choose one idiom, never a mix").Screenshots:
693-askconfirm-delete.jpg,693-namedlg-ok.jpgTwo more askConfirm copy bugs, seen during #656 cleanup: