Skip to content

refactor(ui): dropdown menus #488 - #496

Closed
Bohreromir wants to merge 5 commits into
mainfrom
refactor-488-dropdown-menus
Closed

Bohreromir wants to merge 5 commits into
mainfrom
refactor-488-dropdown-menus

Conversation

@Bohreromir

@Bohreromir Bohreromir commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

New ui/DropdownMenu.

Reworks button triggered menus to be drop downs instead of context menus (which are triggered by a right click) and solves a positioning issue.

Changes the single item unpin menu to be a direct unpin button.

closes #488
closes #495

Warning

Merge together with #499

Docs

Release note

Checklist

Author

  • AI review done, findings addressed
  • Tests added or updated
  • Changelog updated (if the repo keeps one)

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 68.39% 9438 / 13799
🔵 Statements 67.34% 12662 / 18803
🔵 Functions 69.13% 3037 / 4393
🔵 Branches 58.65% 5356 / 9131
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/DateTimePicker.svelte 92.13% 68.51% 97.95% 90% 76, 93, 95-96, 98, 100, 102-103, 137, 150-151, 153-154, 225
src/lib/components/storage/BucketSelect.svelte 80.59% 55.88% 84.21% 72.6% 26, 39-43, 52-74, 156-158, 170, 131
src/lib/components/storage/sidebar/BucketList.svelte 83.15% 66% 84.84% 77.77% 35-36, 64-73, 80-97, 110, 126, 136, 138, 205, 221, 222, 224
src/lib/components/storage/sidebar/StorageConnectionSidebar.svelte 61.73% 22% 57.81% 56.55% 53-68, 86-88, 97-102, 106-117, 122-134, 143, 148-155, 147, 161-160, 180-182, 269-281, 295, 305, 306, 326
src/lib/components/ui/ContextMenu.svelte 97.82% 93.1% 100% 98.57% 82, 151
src/lib/components/ui/DropdownMenu.svelte 100% 100% 100% 100%
src/lib/components/ui/MenuItems.svelte 98.24% 87.5% 92.3% 96.96% 77
src/routes/(app)/settings/connections/+page.svelte 0% 0% 0% 0% 17-173
Generated in workflow #1351 for commit 8df3dab by the Vitest Coverage Report Action

@Bohreromir
Bohreromir changed the base branch from main to refactor-370-popover-layering November 24, 2026 08:44
@Bohreromir
Bohreromir added this pull request to stack #497 November 24, 2026 08:44
@Bohreromir Bohreromir changed the title Refactor dropdown menus #488 refactor(ui): dropdown menus #488 Nov 24, 2026
Base automatically changed from refactor-370-popover-layering to main November 25, 2026 12:19
ui/ components may only import from ui/, and the upcoming DropdownMenu needs the anchor positioning fallback.
A menu button whose menu opens as a popover anchored below it, for menus opened by a button rather than a right-click. It follows the menu button keyboard pattern and flips where there is no room.
The pinned location's "⋯" opened a context menu with a single Unpin action. A direct button saves the extra step and names the location. Focus moves on to the next unpin button, as the clicked one disappears with its row.

Part of #488
The "⋯" buttons in the saved connections sidebar and on the connections settings page opened a context menu at the pointer, which put it in the top-left corner when the button was activated with the keyboard. They now open a DropdownMenu anchored to the button. Right-click on a connection still opens the context menu. The sidebar buttons are now named after their connection, as on the settings page.

Fixes #488
@Bohreromir
Bohreromir force-pushed the refactor-488-dropdown-menus branch from d9da705 to 914c817 Compare November 25, 2026 12:19
Both menus rendered the same item list. MenuItems now holds it together with the menu keyboard pattern, so right-click menus also move with the arrow keys and Home/End and close on Tab.
@Bohreromir
Bohreromir force-pushed the refactor-488-dropdown-menus branch from 914c817 to 8df3dab Compare November 25, 2026 14:17
Bohreromir added a commit that referenced this pull request Nov 25, 2026
#496 replaces these buttons with a DropdownMenu and #499 makes them visible without hover, so changing them here only causes merge conflicts.
Bohreromir added a commit that referenced this pull request Nov 25, 2026
#496 replaces these buttons with a DropdownMenu and #499 makes them visible without hover, so changing them here only causes merge conflicts.
@Bohreromir Bohreromir closed this Nov 26, 2026
@Bohreromir
Bohreromir deleted the refactor-488-dropdown-menus branch November 26, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Row level menus open in top left when opened by keyboard Button-triggered menus should be dropdowns instead of contextmenus

1 participant