Replace native confirm() dialogs with Cairn modals (revoke share, delete) #196
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?
Dogfood (Nikola): destructive confirmations use the browser's built-in
confirm()dropdown, which looks foreign to the app:confirm(tf("revokeShareConfirm", …))inopenSharesView(index.html).confirm(…)in the delete handler.These should use Cairn's own styled modal, consistent with the rest of the UI (the app already has a
<dialog>+showModal()pattern — e.g. the Share dialog — to model after).Scope: sweep every
confirm()(and anyprompt(), e.g. rename) inweb/static/index.htmland route them through a small reusable Cairn confirm/prompt modal (title, message, Cancel / destructive-action buttons; Enter/Escape handling; focus trap). Keep the i18n strings; just change the presentation.Frontend polish — batched for a UI pass (not urgent, but visible on every destructive action).