🎛️ feat: Better Preset Menu Accessibility (#10734)

* feat: allow keyboard nav in presetItems

(previously edit / pin / delete buttons would only render on hover, so when the element was focused with keybaord navigation, those buttons wouldn't render and couldn't be focused or actuated)

* feat: add aria-labels and TooltipAnchors to buttons in PresetItems

* fix: stop keypresses from triggering parent menuitem instead of buttons

* feat: better focus management on modal close with trigger refs

* feat: use OGDialog modal for preset deletion

* feat: add toast for successful preset deletion

* chore: address copilot comments

* chore: address comments

* chore: import order
This commit is contained in:
Dustin Healy 2025-12-01 10:08:00 -08:00 committed by Danny Avila
parent 69200623c2
commit 5fac4ffd1c
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
6 changed files with 174 additions and 43 deletions

View file

@ -315,6 +315,7 @@
"com_endpoint_preset_default_removed": "is no longer the default preset.",
"com_endpoint_preset_delete_confirm": "Are you sure you want to delete this preset?",
"com_endpoint_preset_delete_error": "There was an error deleting your preset. Please try again.",
"com_endpoint_preset_delete_success": "Preset deleted successfully",
"com_endpoint_preset_import": "Preset Imported!",
"com_endpoint_preset_import_error": "There was an error importing your preset. Please try again.",
"com_endpoint_preset_name": "Preset Name",
@ -865,6 +866,7 @@
"com_ui_delete_mcp_success": "MCP server deleted successfully",
"com_ui_delete_memory": "Delete Memory",
"com_ui_delete_not_allowed": "Delete operation is not allowed",
"com_ui_delete_preset": "Delete Preset?",
"com_ui_delete_prompt": "Delete Prompt?",
"com_ui_delete_shared_link": "Delete Shared Link - {{title}}",
"com_ui_delete_prompt_name": "Delete Prompt - {{name}}",
@ -1119,6 +1121,7 @@
"com_ui_permissions_failed_load": "Failed to load permissions. Please try again.",
"com_ui_permissions_failed_update": "Failed to update permissions. Please try again.",
"com_ui_permissions_updated_success": "Permissions updated successfully",
"com_ui_pin": "Pin",
"com_ui_preferences_updated": "Preferences updated successfully",
"com_ui_prev": "Prev",
"com_ui_preview": "Preview",
@ -1299,6 +1302,7 @@
"com_ui_unavailable": "Unavailable",
"com_ui_unknown": "Unknown",
"com_ui_unset": "Unset",
"com_ui_unpin": "Unpin",
"com_ui_untitled": "Untitled",
"com_ui_update": "Update",
"com_ui_update_mcp_error": "There was an error creating or updating the MCP.",