feat(app): wire set_group/delete_group bridge commands

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-09 21:41:34 +07:00
parent 0328797bce
commit c9c3ba1fcd
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -130,6 +130,14 @@ export async function createGroup(name: string, color: string): Promise<string>
return data.group_id;
}
export async function setGroup(groupId: string, meta: { name?: string; color?: string; order?: number }): Promise<void> {
await invoke("set_group", { groupId, name: meta.name ?? null, color: meta.color ?? null, order: meta.order ?? null });
}
export async function deleteGroup(groupId: string): Promise<void> {
await invoke("delete_group", { groupId });
}
export async function closeSurfaceCmd(surfaceId: string): Promise<void> {
await invoke("close_surface", { surfaceId });
}