From 914842fb4f92369743455042863496403642bacb Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 17 Jun 2026 01:45:36 -0700 Subject: [PATCH] FN-6532: make Chat the default task detail tab Chat now opens first in task detail while explicit tab entrypoints continue to work. - Default task detail modal state and open-detail calls to the Chat tab. - Reorder the task detail tab strip so Chat appears before Definition. - Extend modal and tab tests to cover Chat-first defaults and explicit tab preservation. - Add a patch changeset for the published Fusion package. Files changed: .changeset/fn-6532-chat-first-task-detail.md | 5 ++ .../dashboard/app/components/TaskDetailModal.tsx | 24 ++++--- .../app/components/__tests__/AppModals.test.tsx | 2 +- .../TaskDetailModal.attachments-and-tabs.test.tsx | 81 +++++++++++++++++----- .../TaskDetailModal.definition-actions.test.tsx | 77 ++++++++++++++++---- .../app/hooks/__tests__/useModalManager.test.ts | 4 +- packages/dashboard/app/hooks/useModalManager.ts | 13 +++- 7 files changed, 162 insertions(+), 44 deletions(-) Fusion-Task-Id: FN-6532 Fusion-Task-Lineage: 7824f253-2a54-4e2d-af64-ed082ce8fbf9 --- .changeset/fn-6532-chat-first-task-detail.md | 5 ++ .../app/components/TaskDetailModal.tsx | 24 ++++-- .../components/__tests__/AppModals.test.tsx | 2 +- ...kDetailModal.attachments-and-tabs.test.tsx | 81 +++++++++++++++---- ...askDetailModal.definition-actions.test.tsx | 77 ++++++++++++++---- .../hooks/__tests__/useModalManager.test.ts | 4 +- .../dashboard/app/hooks/useModalManager.ts | 13 ++- 7 files changed, 162 insertions(+), 44 deletions(-) create mode 100644 .changeset/fn-6532-chat-first-task-detail.md diff --git a/.changeset/fn-6532-chat-first-task-detail.md b/.changeset/fn-6532-chat-first-task-detail.md new file mode 100644 index 0000000000..b74868f798 --- /dev/null +++ b/.changeset/fn-6532-chat-first-task-detail.md @@ -0,0 +1,5 @@ +--- +"@runfusion/fusion": patch +--- + +Make Chat the first tab and default active view in the task detail modal while preserving explicit initial tab requests. diff --git a/packages/dashboard/app/components/TaskDetailModal.tsx b/packages/dashboard/app/components/TaskDetailModal.tsx index 9198613c74..a3a402372b 100644 --- a/packages/dashboard/app/components/TaskDetailModal.tsx +++ b/packages/dashboard/app/components/TaskDetailModal.tsx @@ -375,7 +375,7 @@ export interface TaskDetailModalProps { prAuthAvailable?: boolean; autoMergeEnabled?: boolean; onOpenWorkflowEditor?: () => void; - /** Open the modal with this tab active instead of "definition" */ + /** Open the modal with this tab active instead of the default Chat view. */ initialTab?: TabId; /** Mobile-only header affordance mode. */ mobileHeaderMode?: "close" | "back"; @@ -555,7 +555,11 @@ export function TaskDetailContent({ prAuthAvailable, autoMergeEnabled: autoMergeEnabledProp, onOpenWorkflowEditor, - initialTab = "definition", + /** + * FNXC:TaskDetailTabs 2026-06-17-00:00: + * FN-6532 makes Chat the default task-detail view when no caller supplies an explicit initial tab. + */ + initialTab = "chat", mobileHeaderMode = "close", embedded = false, onRequestClose, @@ -3063,18 +3067,22 @@ export function TaskDetailContent({ {!isEditing && ( <>
- + {/* + FNXC:TaskDetailTabs 2026-06-17-00:00: + FN-6532 requires Chat to be the first task-detail tab while preserving every explicit tab entrypoint. + */} +