Skip to content

Generic resizable panels - #498

Open
Bohreromir wants to merge 4 commits into
refactor-370-popover-layeringfrom
fix-490-generic-resizable-panels
Open

Bohreromir wants to merge 4 commits into
refactor-370-popover-layeringfrom
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

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

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 68.36% 9405 / 13758
🔵 Statements 67.31% 12625 / 18756
🔵 Functions 69.31% 3032 / 4374
🔵 Branches 58.45% 5312 / 9087
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 92.85% 80% 100% 100% 31, 40, 81, 86
src/lib/components/ui/__tests__/ResizablePanelWrapper.svelte 100% 50% 100% 100%
src/routes/(app)/trino/+page.svelte 0% 0% 0% 0% 403-808
Generated in workflow #1346 for commit 21a4b12 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
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.

Generic resizable panels

1 participant