Repository navigation
feat(devtools): drag to reorder the visible sidebar tabs - #8833
Merged
wmertens merged 5 commits intoJul 14, 2026
Merged
Conversation
…s list Add an ordered visibleTabIds list to devtools state (defaulting to every tab in registry order) and render the sidebar from it via a getVisibleTabs helper that resolves ids and applies the extension vite-only filter. Behavior-preserving foundation for the upcoming customizable sidebar tabs; the default keeps the sidebar identical to today.
Add a sidebar entry (Vite overlay only) that opens a Customize Tabs overlay: a Visible in Sidebar list and an Available in More Panel list with checkboxes to choose which tools show. Edits stay pending until Apply, which persists the visible-tabs list to localStorage; Cancel or closing discards them.
Add a More button to the sidebar bottom actions that opens a popover listing the hidden tabs; selecting one activates it, so hiding a tab no longer makes it unreachable. The button shows only when tabs are hidden and highlights when a hidden tab is active. Extract a shared SidebarIconButton and a getAvailableTabs helper reused by the Customize overlay.
Make the Visible in Sidebar rows draggable (grip handle, native HTML5 DnD) to reorder them live in the Customize overlay; Apply commits the new order to the sidebar and persists it. Adds a pure reorderVisibleTabs helper and switches the overlay card to the shared glass-panel surface.
🦋 Changeset detectedLatest commit: 567c8ae The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@qwik.dev/core
@qwik.dev/router
eslint-plugin-qwik
create-qwik
@qwik.dev/optimizer
@qwik.dev/devtools
commit: |
Contributor
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
wmertens
approved these changes
Jul 14, 2026
Comment on lines
+98
to
+101
| preventdefault:dragover | ||
| preventdefault:drop | ||
| onDragOver$={sync$((event: DragEvent) => event.preventDefault())} | ||
| onDrop$={sync$((event: DragEvent) => event.preventDefault())} |
Member
There was a problem hiding this comment.
with the sync$, the attributes aren't needed any more. But you can fix this another time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context
PR 4 (final) of the Customizable Sidebar Tabs feature, stacked on #8832 (More panel) → #8831 (Customize overlay) → #8826 (model). As a fork branch it also carries the parent commits; review/merge the chain in order and GitHub reduces this diff to the drag-reorder commit. Review the top commit
feat(devtools): drag to reorder the visible sidebar tabs.Change
reorderVisibleTabs(ids, draggedId, targetId)helper (unit tested).glass-panelutility (fixing the earlier no-opglass-bg).Verification
tscon the devtools UI passes (0 errors); noascasts.sidebar-tabs.unit.tscoversreorderVisibleTabs(both directions, same-tab and target-not-in-list no-ops) alongside the existing model/persistence tests (13 total).eslint-plugin-qwik) passes on the touched files.This completes the Customize Sidebar Tabs feature (model → overlay → More panel → drag reorder).
References
QwikDev project board, feature "Support Customizable Sidebar Tabs".