From 89171e0f161a9ff46e43f674a7e0fc81e7a4cdda Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 17 Jun 2026 03:36:14 -0700 Subject: [PATCH] FN-6531: polish Compound Engineering dashboard UI Align the bundled Compound Engineering plugin with Fusion dashboard spacing, radius, and control conventions. - Apply shared dashboard card, button, icon button, and input classes to CE panels and controls. - Replace ad-hoc CE layout spacing and radius values with dashboard design tokens across desktop and mobile surfaces. - Document the plugin's theme consistency expectations and add tests that guard representative spacing, radius, and textarea token usage. - Add a patch changeset for the published Fusion package. Files changed: .changeset/fn-6531-compound-engineering-ui.md | 5 + docs/plugins/compound-engineering.md | 5 + .../src/dashboard/CeFlow.tsx | 10 +- .../src/dashboard/CompoundEngineeringView.css | 203 ++++++++++++++------- .../src/dashboard/CompoundEngineeringView.tsx | 11 +- .../src/dashboard/__tests__/theme-tokens.test.ts | 46 +++++ 6 files changed, 215 insertions(+), 65 deletions(-) Fusion-Task-Id: FN-6531 Fusion-Task-Lineage: be99bbaa-0842-4598-b0a1-4f41816b032b --- .changeset/fn-6531-compound-engineering-ui.md | 5 + docs/plugins/compound-engineering.md | 5 + .../src/dashboard/CeFlow.tsx | 10 +- .../src/dashboard/CompoundEngineeringView.css | 203 ++++++++++++------ .../src/dashboard/CompoundEngineeringView.tsx | 11 +- .../dashboard/__tests__/theme-tokens.test.ts | 46 ++++ 6 files changed, 215 insertions(+), 65 deletions(-) create mode 100644 .changeset/fn-6531-compound-engineering-ui.md diff --git a/.changeset/fn-6531-compound-engineering-ui.md b/.changeset/fn-6531-compound-engineering-ui.md new file mode 100644 index 0000000000..397cddbced --- /dev/null +++ b/.changeset/fn-6531-compound-engineering-ui.md @@ -0,0 +1,5 @@ +--- +"@runfusion/fusion": patch +--- + +Polish the bundled Compound Engineering dashboard view so its spacing, radii, and controls align with Fusion dashboard design tokens and shared component classes. diff --git a/docs/plugins/compound-engineering.md b/docs/plugins/compound-engineering.md index 4d7194a06b..cf507c8bab 100644 --- a/docs/plugins/compound-engineering.md +++ b/docs/plugins/compound-engineering.md @@ -25,6 +25,11 @@ needed. If the plugin is uninstalled, the workflow is hidden again. The Compound Engineering view is registered as a primary plugin destination (`viewId: "compound-engineering"`). +It follows dashboard UI conventions: the view's panels, controls, responsive +layout, spacing, and radii use the shared `--space-*` / `--radius-*` design +tokens and shared button/card/input classes so the plugin remains visually +consistent across light, dark, desktop, and mobile surfaces. + It provides: - An **artifact hub** that discovers CE artifacts from conventional locations (`STRATEGY.md`, `docs/ideation/`, `docs/brainstorms/`, plan docs, `docs/work/`, diff --git a/plugins/fusion-plugin-compound-engineering/src/dashboard/CeFlow.tsx b/plugins/fusion-plugin-compound-engineering/src/dashboard/CeFlow.tsx index 22ee17f45e..0cd7b76b28 100644 --- a/plugins/fusion-plugin-compound-engineering/src/dashboard/CeFlow.tsx +++ b/plugins/fusion-plugin-compound-engineering/src/dashboard/CeFlow.tsx @@ -42,6 +42,10 @@ export interface CeFlowProps { // ── Transcript parsing ─────────────────────────────────────────────────────── +/** + * FNXC:CompoundEngineeringUI 2026-06-17-00:52: + * CE flow markup keeps its rendered text and test ids stable while adding shared .input/.btn/.btn-icon hooks so dashboard theme spacing and focus conventions style interactive controls consistently. + */ const BOTTOM_FOLLOW_THRESHOLD_PX = 50; type DisplayItem = @@ -284,6 +288,7 @@ function RichQuestion({ }} >