mirror of
https://github.com/penpot/penpot.git
synced 2026-11-16 23:20:37 +00:00
* ♻️ Split the share link dialog into smaller components Move the dialog state into a content component and extract the permissions section, the page selection, the select rows, the collapsible panel and the destroy confirmation. The confirmation now keeps the link to destroy instead of matching it by flags, so deleting a link no longer depends on the options snapshot. AI-assisted-by: deepseek-v4.1-flash (cherry picked from commit 3ce7f9d09765e4f6afc033db544aabca379c0ca4) * ♻️ Use the design system controls in the share link dialog Replace the deprecated select, the raw text input and the hand-written page checkboxes with the design system select, input field and checkbox components, and drop the deprecated icons and the unused uuid parsing. AI-assisted-by: deepseek-v4.1-flash (cherry picked from commit 3ce7f9d09765e4f6afc033db544aabca379c0ca4) * ✨ Add dialog semantics to the share link dialog Give the dialog and the destroy confirmation proper dialog and alertdialog roles and labels, cancel the confirmation with Escape, and connect the disclosure button with its panel through aria-controls. AI-assisted-by: deepseek-v4.1-flash (cherry picked from commit 3ce7f9d09765e4f6afc033db544aabca379c0ca4) * ✨ Toggle the share dialog from the viewer header Let the share button close the dialog when it is already open, report the dialog state with aria-expanded and aria-pressed, and mark the button with data-allow-click-modal so the closing click does not count as an outside click. Drop the click-outside guard on close; it is not needed once the button can reopen the dialog. AI-assisted-by: deepseek-v4.1-flash (cherry picked from commit 3ce7f9d09765e4f6afc033db544aabca379c0ca4) * 🐛 Move focus into the share dialog and restore it on close Move focus into the dialog when it opens and into the Cancel button when the delete confirmation opens, so Escape reaches the confirmation handler instead of closing the whole dialog. Restore focus to Destroy link when the confirmation closes and to the Share button when the dialog closes. AI-assisted-by: deepseek-v4.1-flash * ♻️ Apply review follow-ups to the share link dialog Use aria-haspopup instead of aria-pressed on the Share toggle, drop the raw z-index, and express the small spacing values with px2rem. Restore the collapsible pointer cursor and merge its two classes. Memoize the permission options, expose aria-controls only while the panel is open, and label the read-only URL field. AI-assisted-by: deepseek-v4.1-flash