From 4626f8e7fed84ecd120725f53e8a812c43636ffe Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Mon, 22 Jun 2026 09:56:16 -0700 Subject: [PATCH] feat(dashboard): list-view count/border cleanup, overview buttons match Stop AI Engine, center graph on load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - List view: remove the 'X of Y tasks' count from the desktop sidebar toolbar and the border between the controls row and the quick-add box (mobile count kept). Count-display tests now verify the filter via rendered rows. - Command Center Overview: View Board / View Agents are btn btn-secondary (taller, centered) matching the Stop AI Engine button. - Dependency graph: fit/center on load — the initial fit ran before the viewport was measured + before nodes were positioned (async), and never re-fit. Now fits only when fittable (nodes + measured viewport) and re-fits when the node set changes (covers async load + re-entering the view). Co-Authored-By: Claude Opus 4.8 (1M context) --- .../dashboard/app/components/ListView.css | 2 +- .../dashboard/app/components/ListView.tsx | 9 +---- .../components/__tests__/ListView.test.tsx | 19 +++++----- .../src/DependencyGraph.tsx | 37 +++++++++++++++++-- .../src/__tests__/DependencyGraph.test.tsx | 7 +++- 5 files changed, 51 insertions(+), 23 deletions(-) diff --git a/packages/dashboard/app/components/ListView.css b/packages/dashboard/app/components/ListView.css index 5628699b74..327375c272 100644 --- a/packages/dashboard/app/components/ListView.css +++ b/packages/dashboard/app/components/ListView.css @@ -17,12 +17,12 @@ background: var(--surface); } +/* FNXC:ListView 2026-06-23-00:00: No border below the controls — the toolbar (Bulk Edit / View options / New Task) flows straight into the quick-add box with no divider between them. */ .list-sidebar-controls { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md) var(--space-xl); - border-bottom: 1px solid var(--border); background: var(--surface); } diff --git a/packages/dashboard/app/components/ListView.tsx b/packages/dashboard/app/components/ListView.tsx index 9d9dabc036..071e0b2b03 100644 --- a/packages/dashboard/app/components/ListView.tsx +++ b/packages/dashboard/app/components/ListView.tsx @@ -1985,15 +1985,8 @@ export function ListView({ */}
{renderWorkflowSelector()} + {/* FNXC:ListView 2026-06-23-00:00: The "X of Y tasks" count is removed from the sidebar toolbar per user request — the Bulk Edit / View options / New Task actions are the sole content of this row. */}
-

- {selectedColumn - ? t("listView.statsInColumn", "{{count}} of {{total}} tasks in {{column}}", { count: filteredCount, total: tasks.length, column: getListColumnLabel(selectedColumn) }) - : t("listView.stats", "{{count}} of {{total}} tasks", { count: filteredCount, total: tasks.length })} - {hiddenCompletedCount > 0 && !selectedColumn && ( - ({t("listView.hidden", "{{count}} hidden", { count: hiddenCompletedCount })}) - )} -