From 8843bbb0c4dc4e6b52ca5d0a6592ce80be56a19c Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 26 Jul 2026 02:45:44 +0300 Subject: fix: improve sidebar worktree hierarchy and reordering (#1873) * fix: clarify sidebar worktree hierarchy refs #1694 * feat: reorder worktree groups as a unit refs #1694 --- docs/next/api/herdr-api.schema.json | 114 ++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) (limited to 'docs/next/api/herdr-api.schema.json') diff --git a/docs/next/api/herdr-api.schema.json b/docs/next/api/herdr-api.schema.json index dc6dce83..59a0c6a3 100644 --- a/docs/next/api/herdr-api.schema.json +++ b/docs/next/api/herdr-api.schema.json @@ -204,6 +204,38 @@ ], "type": "object" }, + { + "properties": { + "before_workspace_id": { + "type": [ + "string", + "null" + ] + }, + "type": { + "const": "workspace_reordered", + "type": "string" + }, + "workspace_ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "workspaces": { + "items": { + "$ref": "#/schemas/event/$defs/WorkspaceInfo" + }, + "type": "array" + } + }, + "required": [ + "type", + "workspace_ids", + "workspaces" + ], + "type": "object" + }, { "properties": { "type": { @@ -702,6 +734,7 @@ "workspace_closed", "workspace_renamed", "workspace_moved", + "workspace_reordered", "workspace_focused", "worktree_created", "worktree_opened", @@ -3662,6 +3695,18 @@ ], "type": "object" }, + { + "properties": { + "type": { + "const": "workspace.reordered", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, { "properties": { "type": { @@ -4081,6 +4126,26 @@ }, "type": "object" }, + "WorkspaceMoveBlockParams": { + "properties": { + "before_workspace_id": { + "type": [ + "string", + "null" + ] + }, + "workspace_ids": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "workspace_ids" + ], + "type": "object" + }, "WorkspaceMoveParams": { "properties": { "insert_index": { @@ -4572,6 +4637,22 @@ ], "type": "object" }, + { + "properties": { + "method": { + "const": "workspace.move_block", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/WorkspaceMoveBlockParams" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, { "properties": { "method": { @@ -6335,6 +6416,38 @@ ], "type": "object" }, + { + "properties": { + "before_workspace_id": { + "type": [ + "string", + "null" + ] + }, + "type": { + "const": "workspace_reordered", + "type": "string" + }, + "workspace_ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "workspaces": { + "items": { + "$ref": "#/schemas/success_response/$defs/WorkspaceInfo" + }, + "type": "array" + } + }, + "required": [ + "type", + "workspace_ids", + "workspaces" + ], + "type": "object" + }, { "properties": { "type": { @@ -6848,6 +6961,7 @@ "workspace_closed", "workspace_renamed", "workspace_moved", + "workspace_reordered", "workspace_focused", "worktree_created", "worktree_opened", -- cgit v1.2.3