From a92f15efaa64df900aacda34f72225c8a1f21455 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 30 Jun 2026 10:14:47 -0700 Subject: [PATCH] FN-7284: remove Quick Add Plan icon Remove the extra Quick Add Plan icon while preserving the text button planning flow. - Drop the Lightbulb icon from the QuickEntryBox Plan action and document the text-only affordance requirement. - Extend QuickEntryBox coverage to assert the Plan action remains text-only and still trims the draft for planning handoff. - Add a patch changeset for the published CLI package. Files changed: .changeset/remove-quick-add-plan-icon.md | 7 +++++++ packages/dashboard/app/components/QuickEntryBox.tsx | 2 +- .../dashboard/app/components/__tests__/QuickEntryBox.test.tsx | 8 ++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) Fusion-Task-Id: FN-7284 Fusion-Task-Lineage: 331eaf54-d51e-4f37-8434-1a0590edf7a1 Co-authored-by: Fusion (runfusion.ai) --- .changeset/remove-quick-add-plan-icon.md | 7 +++++++ packages/dashboard/app/components/QuickEntryBox.tsx | 2 +- .../app/components/__tests__/QuickEntryBox.test.tsx | 8 ++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .changeset/remove-quick-add-plan-icon.md diff --git a/.changeset/remove-quick-add-plan-icon.md b/.changeset/remove-quick-add-plan-icon.md new file mode 100644 index 0000000000..9fa7a523bb --- /dev/null +++ b/.changeset/remove-quick-add-plan-icon.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Remove the icon from the Quick Add Plan action while preserving the text button behavior. +category: fix +dev: Updates QuickEntryBox and regression coverage for the text-only Plan action. diff --git a/packages/dashboard/app/components/QuickEntryBox.tsx b/packages/dashboard/app/components/QuickEntryBox.tsx index bd3c58757f..7b1e77deab 100644 --- a/packages/dashboard/app/components/QuickEntryBox.tsx +++ b/packages/dashboard/app/components/QuickEntryBox.tsx @@ -1857,6 +1857,7 @@ export function QuickEntryBox({ onCreate, addToast, tasks = [], availableModels, triggerTestId="quick-entry-optional-steps-trigger" /> + {/* FNXC:QuickEntry 2026-06-30-00:00: Quick Add Plan stays a normal text action without a Lightbulb icon so the action row preserves behavior while removing the extra visual affordance and icon spacing shell. */} {/* FNXC:QuickAddSubtaskFlag 2026-06-21-00:00: Render no Subtask button or click target unless App wires the default-off `subtaskBreakdown` experiment callback. */} diff --git a/packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx b/packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx index 4839601afc..1a0689af0f 100644 --- a/packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx +++ b/packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx @@ -2795,14 +2795,18 @@ describe("QuickEntryBox", () => { }); }); - it("calls onPlanningMode and preserves input draft when Plan clicked", async () => { + it("renders Plan as text-only and preserves planning handoff", async () => { const onPlanningMode = vi.fn(); renderQuickEntryBox({ onPlanningMode }); expandQuickEntry(); const textarea = screen.getByTestId("quick-entry-input") as HTMLTextAreaElement; + const planButton = screen.getByTestId("plan-button"); + + expect(planButton).toHaveTextContent("Plan"); + expect(planButton.querySelector("svg")).toBeNull(); fireEvent.change(textarea, { target: { value: " Plan this task " } }); - fireEvent.click(screen.getByTestId("plan-button")); + fireEvent.click(planButton); await waitFor(() => { expect(onPlanningMode).toHaveBeenCalledWith("Plan this task");