Skip to content

feat: Generic resizable panels - #498

Open
Bohreromir wants to merge 12 commits into
fix-379-blocked-localstoragefrom
fix-490-generic-resizable-panels
Open

Bohreromir wants to merge 12 commits into
fix-379-blocked-localstoragefrom
fix-490-generic-resizable-panels

Conversation

@Bohreromir

@Bohreromir Bohreromir commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

Extracts the resizable panels into a shared one, fixing some bugs in the process

  • Fixes:
    • Theme and widths are still applied when localStorage is blocked.
    • The resize cursor is reset when a panel unmounts mid-drag.
    • The Trino catalog browser is rendered open on the server, so it doesn't jump in after page load. Users who closed it see it disappear once after the page loads. Not ideal, but for now this is likely the smaller group of users

closes #490

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

Move Modal, Tooltip, TooltipTrigger and TabBar into src/lib/components/ui/, enforce with ESLint that ui/ components do not import app code, and document the component layers in AGENTS.md.

Part of #366 and #370
ui/ContextMenu uses popover="auto", so the browser puts it in the top layer and handles outside clicks, Escape and closing other menus. A menu opened by a right-click waits for the pointer release, which would otherwise light-dismiss it straight away. The explorer, tab and breadcrumb menus use it instead of the old explorer ContextMenu and its click-catcher.

Part of #366 and #370
…ntextMenu

The bucket grid, treemap, bucket sidebar, saved-connections sidebar and settings connections page use ui/ContextMenu, which removes FloatingMenu and the remaining click-catchers. The delete-connection modal keeps its own target, so it opens again after being dismissed with Escape.

Part of #366 and #370
Both are used by storage and Trino. Replace the $app/environment import and make the handle label required so they follow the ui/ import rules. Part of #490.
…hs before first paint (#490)

Each panel stores its width under panel_width:<id> and in its own CSS variable --panel-width-<id>, clamped to its limits in CSS. Previously every panel set --storage-sidebar-width, which resized the storage bucket list, and the bucket list did not follow the pointer while dragging. The inline script in app.html now restores all saved panel widths generically instead of only the bucket list. Saved widths under the old keys are not migrated.

Also tolerate blocked localStorage in the inline script, which previously stopped it before the theme was set, and reset the page cursor when a panel unmounts mid-drag.
…jump after hydration

The server rendered the catalog browser closed and it animated open after hydration. Render it open, the desktop default, and only enable the width transition after hydration, so a closed browser disappears once without animation. The mobile toggle icon no longer depends on the desktop state.
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 68.54% 9402 / 13716
🔵 Statements 67.48% 12619 / 18699
🔵 Functions 69.35% 3039 / 4382
🔵 Branches 58.69% 5321 / 9065
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/storage/sidebar/BucketList.svelte 83.75% 69.23% 85.91% 78.76% 36-37, 65-74, 85-102, 125, 141, 151, 153, 217, 233, 234, 236
src/lib/components/storage/sidebar/StorageConnectionSidebar.svelte 65% 22.91% 61.9% 60.65% 58-67, 84-86, 95-100, 104-115, 120-132, 146-153, 145, 159-158, 178-180, 267-279, 293, 303, 304
src/lib/components/ui/resizable-panel.svelte.ts 94% 82.6% 100% 100% 33, 73, 78
src/lib/components/ui/__tests__/ResizablePanelWrapper.svelte 100% 50% 100% 100%
src/routes/(app)/trino/+page.svelte 0% 0% 0% 0% 396-801
Generated in workflow #1358 for commit a44fba1 by the Vitest Coverage Report Action

@Bohreromir
Bohreromir marked this pull request as ready for review November 24, 2026 14:42
@Bohreromir Bohreromir self-assigned this Nov 24, 2026
@Bohreromir Bohreromir linked an issue Nov 24, 2026 that may be closed by this pull request
3 tasks
Base automatically changed from refactor-370-popover-layering to main November 25, 2026 12:19
…able-panels

# Conflicts:
#	src/lib/components/storage/sidebar/StorageConnectionSidebar.svelte
#	src/routes/(app)/trino/+page.svelte
@Bohreromir
Bohreromir marked this pull request as draft November 25, 2026 15:19
…to fix-490-generic-resizable-panels

# Conflicts:
#	src/app.html
#	src/lib/components/storage/sidebar/resizable-panel.svelte.ts
#	src/routes/(app)/trino/+page.svelte
@Bohreromir
Bohreromir changed the base branch from main to fix-379-blocked-localstorage November 26, 2026 09:24
@Bohreromir
Bohreromir added this pull request to stack #501 November 26, 2026 09:24
@Bohreromir
Bohreromir marked this pull request as ready for review November 26, 2026 09:41
@Bohreromir Bohreromir moved this to Development: Waiting for Review in Stackable Engineering Nov 26, 2026
@Bohreromir Bohreromir changed the title Generic resizable panels feat: Generic resizable panels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Waiting for Review

Development

Successfully merging this pull request may close these issues.

Generic resizable panels

1 participant