Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(ui): align parameter panel colors with the design system
trohitg84eb7334e2ae
diff --git a/client/src/ParameterPanel.tsx b/client/src/ParameterPanel.tsxindex e56cc8a3..a1d8f3a1 100644--- a/client/src/ParameterPanel.tsx+++ b/client/src/ParameterPanel.tsx@@ -190,6 +190,10 @@ const ParameterPanel: React.FC = () => {isOpen={!!selectedNode}onClose={handleModalClose}title="Node Configuration"+ // Structural hook so themes can scope decorations to THIS modal+ // (e.g. atomic keeps its accent header off the parameter panel so+ // the tinted Run / Save / Cancel header actions stay legible).+ className="param-panel-modal"maxWidth="95vw"maxHeight="95vh"headerActions={headerActions}diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex 50e4a4ec..6610b4da 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -515,9 +515,12 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =}return (- <div className="flex h-full w-full flex-col overflow-hidden bg-card">+ // Transparent column shell — sits on the modal's bg-bg-app body per the+ // design system's PanelModal recipe (column heads on bg-bg-panel, only+ // data cards elevated).+ <div className="flex h-full w-full flex-col overflow-hidden">{/* Header */}- <div className="flex shrink-0 items-center gap-2 border-b border-border bg-background px-4 py-3">+ <div className="flex shrink-0 items-center gap-2 border-b border-border-default bg-bg-panel px-4 py-3"><Database className="h-4 w-4 text-muted-foreground" /><span className="font-display text-sm font-semibold tracking-[var(--type-tracking-display)] text-fg-default [text-transform:var(--type-uppercase)]">Input Data & Variables</span><Badge variant="info">{connectedNodes.length}</Badge>diff --git a/client/src/components/parameterPanel/OutputSection.tsx b/client/src/components/parameterPanel/OutputSection.tsxindex 6c7331b5..9432ee94 100644--- a/client/src/components/parameterPanel/OutputSection.tsx+++ b/client/src/components/parameterPanel/OutputSection.tsx@@ -77,7 +77,9 @@ const OutputSection: React.FC<OutputSectionProps> = ({}, [executionResults, nodeStatuses, selectedNode.id, selectedNode.type]);return (- <div className="relative flex h-full w-full flex-col overflow-hidden bg-card">+ // Transparent column shell — sits on the modal's bg-bg-app body per the+ // design system's PanelModal recipe.+ <div className="relative flex h-full w-full flex-col overflow-hidden"><OutputPanelresults={combinedResults}onClear={onClearResults}diff --git a/client/src/components/parameterPanel/ParameterPanelLayout.tsx b/client/src/components/parameterPanel/ParameterPanelLayout.tsxindex 4f50183b..5fc71556 100644--- a/client/src/components/parameterPanel/ParameterPanelLayout.tsx+++ b/client/src/components/parameterPanel/ParameterPanelLayout.tsx@@ -42,9 +42,10 @@ const ParameterPanelLayout: React.FC<ParameterPanelLayoutProps> = ({}) => {return (<div className="flex h-full min-h-0">- {/* Left: Input Nodes JSON Data */}+ {/* Left: Input Nodes JSON Data (border-r = the design system's+ column split on --border-default) */}{showInputSection && (- <div className="h-full flex-[0.7] overflow-hidden">+ <div className="h-full flex-[0.7] overflow-hidden border-r border-border-default"><InputSectionnodeId={selectedNode.id}visible={showInputSection}@@ -64,9 +65,10 @@ const ParameterPanelLayout: React.FC<ParameterPanelLayoutProps> = ({/></div>- {/* Right: Current Node Output */}+ {/* Right: Current Node Output (border-l = the design system's+ column split on --border-default) */}{showOutputSection && (- <div className="h-full flex-[0.7] overflow-hidden">+ <div className="h-full flex-[0.7] overflow-hidden border-l border-border-default"><OutputSectionselectedNode={selectedNode}executionResults={executionResults}diff --git a/client/src/themes/atomic.css b/client/src/themes/atomic.cssindex e504c09d..549bbedd 100644--- a/client/src/themes/atomic.css+++ b/client/src/themes/atomic.css@@ -257,6 +257,19 @@}:root[data-theme="atomic"] .modal-head { border-bottom: 3px solid var(--slate); background: var(--accent); color: var(--bg-elevated); }:root[data-theme="atomic"] .modal-title { font-family: var(--font-display); color: var(--bg-elevated); letter-spacing: 0.10em; }+/* Parameter panel — follow the design system's PanelModal surface+ * hierarchy ("MachinaOS Design System": components/panels/PanelModal.jsx+ * + ui_kits/machinaos/PanelsModals.jsx NodeConfigModal): card body on+ * --bg-app, header on --bg-panel one step above it with --fg-default+ * text, column heads on --bg-panel, splits on --border-default. The+ * generic atomic modal overrides (white .modal card + solid teal+ * .modal-head) diverge from that recipe here AND melt the tinted+ * Run / Save / Cancel ActionButtons into the teal (worse under+ * disabled:opacity-50 — IMPLEMENTATION.md §5 accent-surface contrast+ * rule). Scoped to this panel; other modals keep the teal look. */+:root[data-theme="atomic"] .param-panel-modal { background: var(--bg-app); }+:root[data-theme="atomic"] .param-panel-modal .modal-head { background: var(--bg-panel); color: var(--fg-default); }+:root[data-theme="atomic"] .param-panel-modal .modal-title { color: var(--fg-default); }/* CMDK */:root[data-theme="atomic"] .cmdk { background: var(--bg-elevated); border: 4px solid var(--slate); border-radius: 24px 4px 24px 4px; box-shadow: 8px 8px 0 var(--slate); }