From 827b7d934d6af88244d95820ffd5ac1b20d6dc22 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 9 Jun 2026 23:21:46 -0700 Subject: [PATCH] FN-6171: move GitHub tracking below prompt details Move the task detail modal's GitHub tracking section to render after the prompt/spec content. - relocate the GitHub tracking section in TaskDetailModal so it appears beneath prompt details in read mode - preserve the existing GitHub tracking controls, status, and expand/collapse behavior while changing only section order - add a regression test that asserts the prompt content appears before the GitHub tracking section Files changed: .../dashboard/app/components/TaskDetailModal.tsx | 274 ++++++++++----------- ...lModal.inline-editing-and-integrations.test.tsx | 28 +++ 2 files changed, 165 insertions(+), 137 deletions(-) Fusion-Task-Id: FN-6171 Fusion-Task-Lineage: dac8ac54-655d-4403-9e7d-6aad446da793 --- .../app/components/TaskDetailModal.tsx | 274 +++++++++--------- ...l.inline-editing-and-integrations.test.tsx | 28 ++ 2 files changed, 165 insertions(+), 137 deletions(-) diff --git a/packages/dashboard/app/components/TaskDetailModal.tsx b/packages/dashboard/app/components/TaskDetailModal.tsx index 017ce0072a..afa3271e08 100644 --- a/packages/dashboard/app/components/TaskDetailModal.tsx +++ b/packages/dashboard/app/components/TaskDetailModal.tsx @@ -3507,143 +3507,6 @@ export function TaskDetailContent({ )} )} - {showGithubTrackingSection && ( -
-
-
- {t("taskDetail.githubTracking.label", "GitHub tracking")} - - - {!githubTrackedIssue && ( - - {githubTrackingDetailPending - ? t("taskDetail.githubTracking.checking", "Checking tracking status") - : githubTrackingEnabled - ? t("taskDetail.githubTracking.notYetCreated", "Issue not yet created") - : t("taskDetail.githubTracking.disabled", "Tracking is currently disabled")} - - )} -
- {showInlineGithubTrackingEnableButton && ( - - )} - {showGithubTrackingSpinner && ( - - - )} - -
- {githubTrackingExpanded && ( -
- {githubTrackedIssue && ( -
-
-
{t("taskDetail.githubTracking.issue", "Issue")}
-
- {githubTrackedIssue.url ? ( - - {`${githubTrackedIssue.owner}/${githubTrackedIssue.repo}#${githubTrackedIssue.number}`} - - ) : ( - {`${githubTrackedIssue.owner}/${githubTrackedIssue.repo}#${githubTrackedIssue.number}`} - )} -
-
-
-
{t("taskDetail.githubTracking.state", "State")}
-
- - {task.issueInfo?.state ?? "open"} - -
-
-
- )} -
- {!githubTrackedIssue && githubTrackingEnabled && ( - <> - - {!canCreateTrackingIssue && ( - {t("taskDetail.githubTracking.createIssueHelper", "Tracking issue will be created once this task has a title or description to summarize.")} - )} - - )} - {canEditGithubTracking && ( - <> - -
- { - setGithubRepoOverrideDraft(event.target.value); - setGithubRepoOverrideError(null); - }} - placeholder={effectiveGithubRepoDefault || "owner/repo"} - /> - -
- {githubRepoOverrideError && {githubRepoOverrideError}} - {githubTrackedIssue && ( - - )} - - )} -
-
- )} -
- )}
@@ -3809,6 +3672,143 @@ export function TaskDetailContent({
{t("taskDetail.spec.noPrompt", "(no prompt)")}
)}
+ {showGithubTrackingSection && ( +
+
+
+ {t("taskDetail.githubTracking.label", "GitHub tracking")} + + + {!githubTrackedIssue && ( + + {githubTrackingDetailPending + ? t("taskDetail.githubTracking.checking", "Checking tracking status") + : githubTrackingEnabled + ? t("taskDetail.githubTracking.notYetCreated", "Issue not yet created") + : t("taskDetail.githubTracking.disabled", "Tracking is currently disabled")} + + )} +
+ {showInlineGithubTrackingEnableButton && ( + + )} + {showGithubTrackingSpinner && ( + + + )} + +
+ {githubTrackingExpanded && ( +
+ {githubTrackedIssue && ( +
+
+
{t("taskDetail.githubTracking.issue", "Issue")}
+
+ {githubTrackedIssue.url ? ( + + {`${githubTrackedIssue.owner}/${githubTrackedIssue.repo}#${githubTrackedIssue.number}`} + + ) : ( + {`${githubTrackedIssue.owner}/${githubTrackedIssue.repo}#${githubTrackedIssue.number}`} + )} +
+
+
+
{t("taskDetail.githubTracking.state", "State")}
+
+ + {task.issueInfo?.state ?? "open"} + +
+
+
+ )} +
+ {!githubTrackedIssue && githubTrackingEnabled && ( + <> + + {!canCreateTrackingIssue && ( + {t("taskDetail.githubTracking.createIssueHelper", "Tracking issue will be created once this task has a title or description to summarize.")} + )} + + )} + {canEditGithubTracking && ( + <> + +
+ { + setGithubRepoOverrideDraft(event.target.value); + setGithubRepoOverrideError(null); + }} + placeholder={effectiveGithubRepoDefault || "owner/repo"} + /> + +
+ {githubRepoOverrideError && {githubRepoOverrideError}} + {githubTrackedIssue && ( + + )} + + )} +
+
+ )} +
+ )}