fix(FN-4190): align deferred tracking UX copy with title-or-description gating
Fusion-Task-Id: FN-4190 Fusion-Task-Lineage: 5d94a4ad-32fb-4d20-8d04-5d757619f104
This commit is contained in:
@@ -2047,9 +2047,9 @@ export function SettingsModal({
|
||||
Controls whether newly created tasks have GitHub issue tracking enabled by default. Individual tasks can still override this from the task detail modal.
|
||||
</small>
|
||||
<small>
|
||||
Tracking issues use this task's title. If a task has no title yet, Fusion can summarize its description using the title summarization model configured above.
|
||||
Tracking issues use this task's title. If a task has no title yet, Fusion can summarize its description using the title summarization model in Project Models.
|
||||
{!form.autoSummarizeTitles && !form.useAiMergeCommitSummary && !form.githubTrackingEnabledByDefault
|
||||
? " Enable summarization above to configure that model."
|
||||
? " Enable summarization in Project Models to configure that model."
|
||||
: ""}
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@@ -2522,7 +2522,7 @@ export function TaskDetailContent({
|
||||
Create tracking issue
|
||||
</button>
|
||||
{!canCreateTrackingIssue && (
|
||||
<small className="detail-source-empty">Tracking issue will be created once this task has a title.</small>
|
||||
<small className="detail-source-empty">Tracking issue will be created once this task has a title or description to summarize.</small>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -822,7 +822,7 @@ describe("SettingsModal", () => {
|
||||
await waitForSettingsModalReady();
|
||||
|
||||
expect(
|
||||
screen.getByText(/Tracking issues use this task's title\. If a task has no title yet, Fusion can summarize its description using the title summarization model configured above\./),
|
||||
screen.getByText(/Tracking issues use this task's title\. If a task has no title yet, Fusion can summarize its description using the title summarization model in Project Models\./),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -37,7 +37,7 @@ describe("TaskDetailModal GitHub tracking CTA", () => {
|
||||
const button = screen.getByRole("button", { name: "Create tracking issue" });
|
||||
expect(button).toBeDisabled();
|
||||
expect(button).toHaveAttribute("title", "Add a title or description so a tracking issue can be created.");
|
||||
expect(screen.getByText("Tracking issue will be created once this task has a title.")).toBeInTheDocument();
|
||||
expect(screen.getByText("Tracking issue will be created once this task has a title or description to summarize.")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("enables create tracking issue when task title is present", async () => {
|
||||
@@ -60,7 +60,7 @@ describe("TaskDetailModal GitHub tracking CTA", () => {
|
||||
|
||||
await user.click(screen.getByRole("button", { name: "Expand GitHub tracking details" }));
|
||||
expect(screen.getByRole("button", { name: "Create tracking issue" })).toBeEnabled();
|
||||
expect(screen.queryByText("Tracking issue will be created once this task has a title.")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Tracking issue will be created once this task has a title or description to summarize.")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("enables create tracking issue when task description has a non-empty first line", async () => {
|
||||
@@ -83,6 +83,6 @@ describe("TaskDetailModal GitHub tracking CTA", () => {
|
||||
|
||||
await user.click(screen.getByRole("button", { name: "Expand GitHub tracking details" }));
|
||||
expect(screen.getByRole("button", { name: "Create tracking issue" })).toBeEnabled();
|
||||
expect(screen.queryByText("Tracking issue will be created once this task has a title.")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Tracking issue will be created once this task has a title or description to summarize.")).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user