Repository navigation
feat(hub-ui): reorder tools in the group sidebar - #499
Merged
Merged
Conversation
Drag a tool up or down in the group sidebar, or press Alt+ArrowUp / Alt+ArrowDown on it, to change its place inside its sub-category. The order is saved to docksCustomOrder, the setting Settings > Docks edits. The patch logic moves to dock-settings so both surfaces share it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
👁️🗨️ Review this pull request with grouped, summarized diffs at: raw result💭 analyzed by {
"headSha": "b933a16e8ede2f82e4b3c1563cd1276155307272",
"result": {
"overallSummary": "Adds drag-and-drop and keyboard (Alt+ArrowUp/Down) reordering of tools in the group sidebar, reusing and extending the `docksCustomOrder` logic already used by the Docks settings page so both stay in sync.",
"groups": [
{
"key": "reorder-logic",
"label": "Reorder logic",
"summary": "Extracts the move-to-`docksCustomOrder` logic (`resolveCustomOrderPatch`, `applyCustomOrderPatch`) out of `SettingsDocks.vue` into shared helpers, and adds `resolveGroupMemberMove` which computes the patch for moving one group member next to another within its sub-category, keeping hidden members' saved positions stable.",
"category": "core",
"filePaths": [
"packages/hub-ui/src/client/state/dock-settings.ts"
],
"critical": true
},
{
"key": "sidebar-reorder-ui",
"label": "Sidebar drag/keyboard reorder",
"summary": "Adds pointer-capture based drag reordering (with a drop-line indicator) and Alt+ArrowUp/ArrowDown keyboard reordering to the group sidebar, using the new shared order-patch helpers; also updates the Docks settings page to use these same helpers instead of its own inline logic.",
"category": "ui",
"filePaths": [
"packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue",
"packages/hub-ui/src/client/components/views-builtin/SettingsDocks.vue"
],
"fileNotes": [
{
"path": "packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue",
"text": "Uses pointer capture so drags survive crossing the panel iframe, and a `suppressClick` flag so the click ending a drag doesn't open the tool."
}
]
},
{
"key": "tests",
"label": "Reorder tests",
"summary": "Adds unit tests for `resolveCustomOrderPatch` and `resolveGroupMemberMove`, covering moving up/down, restoring the default order, hidden members, and refusing cross-sub-category moves.",
"category": "tests",
"filePaths": [
"packages/hub-ui/src/client/state/dock-settings.test.ts"
]
},
{
"key": "docs",
"label": "Docs update",
"summary": "Documents the new drag/keyboard reordering behavior for users, alongside the existing pin/recent docs.",
"category": "docs",
"filePaths": [
"docs/content/1.guide/16.hub.md"
]
}
],
"schemaVersion": 1,
"source": "llm",
"generatedAt": "2026-11-19T01:22:20.035Z",
"model": "vercel-ai-gateway/anthropic/claude-sonnet-5",
"locale": "en"
}
} |
This branch was successfully deployed
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.
Summary
The order of tools in the group sidebar was fixed. Users could only change it on the Settings > Docks page.
Now users can reorder tools directly in the group sidebar:
A tool moves only inside its own sub-category, the same rule as the settings page. The order is saved to the existing
docksCustomOrderuser setting, so the sidebar, the dock bar and the settings page stay in sync. No new setting.The logic that turns a new order into
docksCustomOrderwrites moves fromSettingsDocks.vuetostate/dock-settings.ts(resolveCustomOrderPatch,applyCustomOrderPatch), and the sidebar usesresolveGroupMemberMoveon top of it. Hidden members count in the move, so their saved place stays stable.The drag uses pointer capture, so it keeps working when the pointer crosses the panel iframe. The click that ends a drag does not open the tool.
Visual changes
Captured from the
packages/hub-uiplayground, 1280x577, with a temporary third member ("Pong") added to the seed so two members share a sub-category. That seed change is not part of this PR. Icons show as placeholders because the browser was offline.User prompts
claude-opus-5-5, harness:Claude Code(in Paseo)Verification
pnpm vitest run packages/hub-ui- 17 files, 172 tests passed (new tests forresolveCustomOrderPatchandresolveGroupMemberMoveindock-settings.test.ts).pnpm lint,pnpm typecheck,pnpm knip,pnpm build- pass.agent-browser:This PR was written by an agent. The human gave the task and has not reviewed the diff yet.