From db444c83e02aa8769b43de45afa3f53b2d447223 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Wed, 25 Feb 2026 00:04:04 -0500 Subject: [PATCH] feat: add ForkInfo type and fork fields to Tree/TreeListItem Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/types/tree.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/types/tree.ts b/frontend/src/types/tree.ts index c4595b1a..2d55fff3 100644 --- a/frontend/src/types/tree.ts +++ b/frontend/src/types/tree.ts @@ -139,6 +139,14 @@ export interface ProceduralTreeStructure { steps: ProceduralStep[] } +export interface ForkInfo { + parent_tree_id: string + parent_tree_name: string | null + fork_depth: number + fork_reason: string | null + has_parent_updates: boolean +} + // API response types export type TreeStatus = 'draft' | 'published' @@ -164,6 +172,9 @@ export interface Tree { created_at: string updated_at: string usage_count: number + fork_info?: ForkInfo | null + parent_tree_id?: string | null + fork_depth?: number } export interface TreeListItem { @@ -187,6 +198,8 @@ export interface TreeListItem { created_at: string updated_at: string visibility: 'private' | 'team' | 'link' | 'public' + fork_depth?: number + parent_tree_id?: string | null } export interface TreeCreate {