feat(sidebar): reorder folder groups by drag and persist sort order

This commit is contained in:
xintaofei
2026-04-23 00:42:58 +08:00
parent 2dbdaa9c74
commit f1ce7179ea
25 changed files with 519 additions and 182 deletions

View File

@@ -640,6 +640,10 @@ export async function removeFolderFromWorkspace(
return getTransport().call("remove_folder_from_workspace", { folderId })
}
export async function reorderFolders(ids: number[]): Promise<void> {
return getTransport().call("reorder_folders", { ids })
}
export async function importLocalConversations(
folderId: number
): Promise<ImportResult> {

View File

@@ -508,6 +508,10 @@ export async function removeFolderFromWorkspace(
return invoke("remove_folder_from_workspace", { folderId })
}
export async function reorderFolders(ids: number[]): Promise<void> {
return invoke("reorder_folders", { ids })
}
export async function importLocalConversations(
folderId: number
): Promise<ImportResult> {

View File

@@ -163,6 +163,7 @@ export interface FolderDetail {
parent_branch: string | null
default_agent_type: AgentType | null
last_opened_at: string
sort_order: number
}
export interface OpenedTab {