fix(sidebar): align group selection with visible tree

This commit is contained in:
dadong authored and GitHub committed 2026-08-19 15:42:44 +08:00
1 parent c09dfbc813
commit a40dc02825
6 files changed
+297 -40

No files matched your search

@@ -51,6 +51,7 @@ import {
deleteGroups as deleteGroupsOp,
connectionIdsInGroups as connectionIdsInGroupsOp,
toggleGroupCollapsed as toggleGroupCollapsedOp,
expandGroups as expandGroupsOp,
collapseAllGroups as collapseAllGroupsOp,
moveConnectionToGroup as moveConnectionToGroupOp,
remapSidebarLayoutConnectionIds,
@@ -8280,6 +8281,9 @@ export const useConnectionStore = defineStore("connection", () => {
toggleConnectionGroupCollapsed(groupId: string) {
updateLayoutAndRebuild(toggleGroupCollapsedOp(sidebarLayout.value, groupId));
},
expandConnectionGroups(groupIds: Iterable<string>) {
updateLayoutAndRebuild(expandGroupsOp(sidebarLayout.value, groupIds));
},
moveConnectionToGroup(connectionId: string, groupId: string | null) {
updateLayoutAndRebuild(moveConnectionToGroupOp(sidebarLayout.value, connectionId, groupId));
},