feat(sidebar): reorder folder groups by drag and persist sort order
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user