Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(theme): parameter panel theme migration + per-theme scrollbars (Wave 31)
trohitg9b99a0e3f909
diff --git a/client/src/ParameterPanel.tsx b/client/src/ParameterPanel.tsxindex db63f14b..e56cc8a3 100644--- a/client/src/ParameterPanel.tsx+++ b/client/src/ParameterPanel.tsx@@ -5,12 +5,10 @@ import { useParameterPanel } from './hooks/useParameterPanel';import { useAppStore } from './store/useAppStore';import { useWebSocket } from './contexts/WebSocketContext';import { ExecutionService, ExecutionResult } from './services/executionService';-import { useAppTheme } from './hooks/useAppTheme';import { ActionButton } from './components/ui/action-button';import { NodeIcon } from './assets/icons';const ParameterPanel: React.FC = () => {- const theme = useAppTheme();const {selectedNode,nodeDefinition,@@ -142,7 +140,7 @@ const ParameterPanel: React.FC = () => {className="h-5 w-5 text-xl"/><span>{nodeDefinition.displayName}</span>- {hasUnsavedChanges && <span style={{ color: theme.accent.orange }}>*</span>}+ {hasUnsavedChanges && <span className="text-warning">*</span>}</div><div className="flex items-center gap-2">{canExecute && !hideRunButton && (diff --git a/client/src/components/OutputPanel.tsx b/client/src/components/OutputPanel.tsxindex 5f80cd36..dcdd796f 100644--- a/client/src/components/OutputPanel.tsx+++ b/client/src/components/OutputPanel.tsx@@ -1,5 +1,4 @@import React, { useState } from 'react';-import { useAppTheme } from '../hooks/useAppTheme';import { useAppStore } from '../store/useAppStore';import { INodeOutputDefinition, NodeConnectionType } from '../types/INodeProperties';import { useDragVariable } from '../hooks/useDragVariable';@@ -121,7 +120,6 @@ const ANDROID_NODE_TYPES = [];const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {- const theme = useAppTheme();const currentWorkflow = useAppStore((s) => s.currentWorkflow);const [expandedNode, setExpandedNode] = useState<string | null>(null);const [isDragging, setIsDragging] = useState(false);@@ -289,24 +287,11 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {if (connectedNodes.length === 0) {return (- <div style={{- width: '300px',- height: '100%',- padding: theme.spacing.md,- backgroundColor: theme.colors.backgroundAlt,- borderRight: `1px solid ${theme.colors.border}`,- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- justifyContent: 'center'- }}>- <p style={{- margin: 0,- fontSize: theme.fontSize.sm,- color: theme.colors.textSecondary,- fontStyle: 'italic',- textAlign: 'center'- }}>+ <div+ className="flex h-full flex-col items-center justify-center border-r border-border-default bg-bg-panel p-3"+ style={{ width: '300px' }}+ >+ <p className="m-0 text-center text-sm italic text-fg-muted">No connected nodes.<br />Connect nodes to see their outputs here.@@ -316,140 +301,78 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {}return (- <div style={{- width: '300px',- height: '100%',- backgroundColor: theme.colors.backgroundAlt,- borderRight: `1px solid ${theme.colors.border}`,- display: 'flex',- flexDirection: 'column'- }}>+ <div+ className="flex h-full flex-col border-r border-border-default bg-bg-panel"+ style={{ width: '300px' }}+ >{/* Header */}- <div style={{- padding: theme.spacing.md,- backgroundColor: theme.colors.backgroundPanel,- borderBottom: `1px solid ${theme.colors.border}`,- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.semibold,- color: theme.colors.textSecondary,- textTransform: 'uppercase',- letterSpacing: '0.1em'- }}>- π Connected Outputs+ <div className="border-b border-border-default bg-bg-panel p-3 font-display text-sm font-semibold tracking-[var(--type-tracking-display)] text-fg-default [text-transform:var(--type-uppercase)]">+ Connected Outputs</div>{/* Scrollable content */}- <div style={{- flex: 1,- overflowY: 'auto',- padding: theme.spacing.sm- }}>+ <div className="flex-1 overflow-y-auto p-2">{connectedNodes.map((node) => (- <div key={node.nodeId} style={{- marginBottom: theme.spacing.xs,- border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.sm,- backgroundColor: theme.colors.background,- overflow: 'hidden'- }}>+ <div+ key={node.nodeId}+ className="mb-1 overflow-hidden rounded-sm border border-border-default bg-bg-elevated"+ ><divonClick={() => setExpandedNode(expandedNode === node.nodeId ? null : node.nodeId)}- style={{- padding: theme.spacing.sm,- cursor: 'pointer',- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between',- backgroundColor: theme.colors.backgroundAlt,- transition: theme.transitions.fast- }}+ className="flex cursor-pointer items-center justify-between bg-bg-panel p-2 transition-colors">- <span style={{- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.medium,- color: theme.colors.text- }}>+ <span className="text-sm font-medium text-fg-default">{node.nodeName}</span>- <span style={{- fontSize: theme.fontSize.xs,- color: theme.colors.textSecondary,- transform: expandedNode === node.nodeId ? 'rotate(180deg)' : 'rotate(0deg)',- transition: 'transform 0.2s ease'- }}>+ <span+ className="text-xs text-fg-muted"+ style={{+ transform: expandedNode === node.nodeId ? 'rotate(180deg)' : 'rotate(0deg)',+ transition: 'transform 0.2s ease'+ }}+ >βΌ</span></div>{expandedNode === node.nodeId && (- <div style={{- padding: theme.spacing.sm,- borderTop: `1px solid ${theme.colors.border}`- }}>+ <div className="border-t border-border-default p-2">{node.outputs.length === 0 ? (- <p style={{- margin: 0,- fontSize: theme.fontSize.xs,- color: theme.colors.textSecondary,- fontStyle: 'italic',- padding: theme.spacing.xs- }}>+ <p className="m-0 p-1 text-xs italic text-fg-muted">No output parameters available</p>) : (- node.outputs.map((output) => (- <div- key={output.name}- draggable- onDragStart={(e) => handleDragStart(e, node.nodeId, output.name)}- onDragEnd={handleDragEnd}- style={{- padding: theme.spacing.xs,- marginBottom: theme.spacing.xs,- backgroundColor: isDragging && draggedParam?.nodeId === node.nodeId && draggedParam?.output === output.name- ? theme.colors.focusRing- : theme.colors.backgroundAlt,- border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.sm,- cursor: 'grab',- transition: theme.transitions.fast- }}- >- <div style={{- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between'- }}>- <div>- <div style={{- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.medium,- color: theme.colors.text,- marginBottom: '2px'- }}>- {output.displayName}+ node.outputs.map((output) => {+ const isActiveDrag =+ isDragging &&+ draggedParam?.nodeId === node.nodeId &&+ draggedParam?.output === output.name;+ return (+ <div+ key={output.name}+ draggable+ onDragStart={(e) => handleDragStart(e, node.nodeId, output.name)}+ onDragEnd={handleDragEnd}+ className={`mb-1 cursor-grab rounded-sm border border-border-default p-1 transition-colors ${+ isActiveDrag ? 'bg-accent' : 'bg-bg-panel'+ }`}+ >+ <div className="flex items-center justify-between">+ <div>+ <div className="mb-0.5 text-sm font-medium text-fg-default">+ {output.displayName}+ </div>+ <div className="text-xs text-fg-muted">+ {output.type} β’ {output.description}+ </div></div>- <div style={{- fontSize: theme.fontSize.xs,- color: theme.colors.textSecondary- }}>- {output.type} β’ {output.description}+ <div className="rounded-sm border border-border-default bg-bg-elevated px-1 py-0.5 font-mono text-xs text-fg-muted">+ {output.name}</div></div>- <div style={{- fontSize: theme.fontSize.xs,- color: theme.colors.textSecondary,- fontFamily: 'monospace',- padding: `2px ${theme.spacing.xs}`,- backgroundColor: theme.colors.background,- borderRadius: theme.borderRadius.sm,- border: `1px solid ${theme.colors.border}`- }}>- {output.name}- </div></div>- </div>- ))+ );+ }))}</div>)}@@ -458,18 +381,11 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {</div>{/* Footer */}- <div style={{- padding: theme.spacing.sm,- backgroundColor: theme.colors.backgroundPanel,- borderTop: `1px solid ${theme.colors.border}`,- fontSize: theme.fontSize.xs,- color: theme.colors.textSecondary,- textAlign: 'center'- }}>- π‘ Drag outputs to parameter fields+ <div className="border-t border-border-default bg-bg-panel p-2 text-center text-xs text-fg-muted">+ Drag outputs to parameter fields</div></div>);};-export default OutputPanel;\ No newline at end of file+export default OutputPanel;diff --git a/client/src/components/parameterPanel/MasterSkillEditor.tsx b/client/src/components/parameterPanel/MasterSkillEditor.tsxindex 6e1b5aa2..58073ae3 100644--- a/client/src/components/parameterPanel/MasterSkillEditor.tsx+++ b/client/src/components/parameterPanel/MasterSkillEditor.tsx@@ -25,7 +25,7 @@ import {SelectValue,} from '@/components/ui/select';-import { Button } from '@/components/ui/button';+import { ActionButton } from '@/components/ui/action-button';import { Alert as DSAlert, AlertDescription } from '@/components/ui/alert';import {Tooltip,@@ -46,7 +46,6 @@ import {} from '@/components/ui/alert-dialog';import { toast } from 'sonner';import { useQuery, useQueryClient } from '@tanstack/react-query';-import { useAppTheme } from '../../hooks/useAppTheme';import { useWebSocket } from '../../contexts/WebSocketContext';import { NodeIcon } from '../../assets/icons';import { cn } from '@/lib/utils';@@ -117,7 +116,6 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({onSkillFolderChange,nodeId}) => {- const theme = useAppTheme();const { sendRequest } = useWebSocket();const [selectedSkillName, setSelectedSkillName] = useState<string | null>(null);const [isLoading, setIsLoading] = useState(false);@@ -507,58 +505,30 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({const isEditingUserSkill = selectedSkillInfo?.isUserSkill && pendingSkillData;return (- <div style={{- display: 'flex',- flex: 1,- minHeight: 0,- gap: theme.spacing.md,- overflow: 'hidden'- }}>+ <div className="flex flex-1 min-h-0 gap-3 overflow-hidden">{/* Left Panel - Skills List */}- <div style={{- flex: '0 0 260px',- display: 'flex',- flexDirection: 'column',- backgroundColor: theme.colors.background,- borderRadius: theme.borderRadius.md,- border: `1px solid ${theme.colors.border}`,- overflow: 'hidden'- }}>+ <div className="flex flex-[0_0_260px] flex-col overflow-hidden rounded-md border border-border-default bg-bg-elevated">{/* Header with count and create button */}- <div style={{- padding: theme.spacing.sm,- borderBottom: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between'- }}>- <span style={{ fontSize: theme.fontSize.sm, fontWeight: theme.fontWeight.semibold, color: theme.colors.text }}>+ <div className="flex items-center justify-between border-b border-border-default bg-bg-panel p-2">+ <span className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-sm font-semibold text-fg-default">Skills</span>- <div style={{ display: 'flex', alignItems: 'center', gap: theme.spacing.xs }}>- <DSBadge- style={{ backgroundColor: theme.dracula.purple, color: '#fff' }}- className="h-5 min-w-5 justify-center rounded-full px-1.5"- >+ <div className="flex items-center gap-1">+ <DSBadge className="h-5 min-w-5 justify-center rounded-full bg-action-tools px-1.5 text-white">{enabledCount}</DSBadge><TooltipProvider><Tooltip><TooltipTrigger asChild>- <Button- size="icon-sm"- variant="outline"+ <ActionButton+ intent="tools"onClick={handleCreateSkill}disabled={isCreatingNew}- style={{- backgroundColor: `${theme.dracula.green}20`,- borderColor: theme.dracula.green,- color: theme.dracula.green,- }}+ className="h-7 px-2"+ aria-label="Create new skill"><Plus className="h-3.5 w-3.5" />- </Button>+ </ActionButton></TooltipTrigger><TooltipContent>Create new skill</TooltipContent></Tooltip>@@ -616,7 +586,7 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({</div>{/* Skills List */}- <div style={{ flex: 1, overflowY: 'auto' }}>+ <div className="flex-1 overflow-y-auto">{folderLoading ? (<div className="mt-4 flex items-center justify-center gap-2 text-sm text-muted-foreground"><Loader2 className="h-4 w-4 animate-spin" />@@ -667,11 +637,11 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({/><NodeIcon icon={skill.icon} className="h-4 w-4 text-base" /><span- className="flex-1 overflow-hidden text-sm whitespace-nowrap text-ellipsis"- style={{- fontWeight: isSelected ? theme.fontWeight.semibold : theme.fontWeight.medium,- color: isEnabled ? theme.colors.text : theme.colors.textSecondary,- }}+ className={cn(+ 'flex-1 overflow-hidden text-sm whitespace-nowrap text-ellipsis',+ isSelected ? 'font-semibold' : 'font-medium',+ isEnabled ? 'text-fg-default' : 'text-fg-muted',+ )}>{skill.displayName}</span>@@ -679,23 +649,14 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({<TooltipProvider><Tooltip><TooltipTrigger asChild>- <div- className="h-2 w-2 shrink-0 rounded-full"- style={{ backgroundColor: theme.dracula.orange }}- />+ <div className="h-2 w-2 shrink-0 rounded-full bg-warning" /></TooltipTrigger><TooltipContent>Customized</TooltipContent></Tooltip></TooltipProvider>)}{skill.isUserSkill && (- <DSBadge- className="h-4 px-1 text-[10px]"- style={{- backgroundColor: `${theme.dracula.cyan}20`,- color: theme.dracula.cyan,- }}- >+ <DSBadge className="h-4 bg-info/20 px-1 text-[10px] text-info">Custom</DSBadge>)}@@ -709,27 +670,12 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({</div>{/* Right Panel - Skill Editor */}- <div style={{- flex: 1,- display: 'flex',- flexDirection: 'column',- backgroundColor: theme.colors.background,- borderRadius: theme.borderRadius.md,- border: `1px solid ${theme.colors.border}`,- overflow: 'hidden'- }}>+ <div className="flex flex-1 flex-col overflow-hidden rounded-md border border-border-default bg-bg-elevated">{/* Creating new skill */}{isCreatingNew && pendingSkillData ? (<>{/* New Skill Header */}- <div style={{- padding: theme.spacing.md,- borderBottom: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- display: 'flex',- alignItems: 'center',- gap: theme.spacing.md- }}>+ <div className="flex items-center gap-3 border-b border-border-default bg-bg-panel p-3"><divclassName="flex h-10 w-10 items-center justify-center rounded-md border-2 border-dashed bg-tint-soft"// currentColor is the new skill's brand color;@@ -742,104 +688,89 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({? <NodeIcon icon={pendingSkillData.icon} className="h-5 w-5 text-xl" />: <Plus className="h-5 w-5" />}</div>- <div style={{ flex: 1 }}>- <div style={{- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.semibold,- color: theme.dracula.green- }}>+ <div className="flex-1">+ <div className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-sm font-semibold text-success">Create New Skill</div>- <div style={{ fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginTop: 2 }}>+ <div className="mt-0.5 text-xs text-fg-muted">Fill in the details below and save</div></div>- <Button- size="sm"- variant="outline"- onClick={handleCancelCreate}- style={{- backgroundColor: `${theme.dracula.red}15`,- borderColor: `${theme.dracula.red}40`,- color: theme.dracula.red,- }}- >+ <ActionButton intent="stop" onClick={handleCancelCreate} className="h-8"><X className="h-3.5 w-3.5" />Cancel- </Button>- <Button- size="sm"- variant="outline"+ </ActionButton>+ <ActionButton+ intent="save"onClick={handleSaveSkill}disabled={savingSkill}- style={{- backgroundColor: `${theme.dracula.green}15`,- borderColor: `${theme.dracula.green}40`,- color: theme.dracula.green,- }}+ className="h-8">{savingSkill ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <Save className="h-3.5 w-3.5" />}Save- </Button>+ </ActionButton></div>{/* New Skill Form */}- <div ref={editorWrapperRef} style={{ flex: 1, padding: theme.spacing.md, overflow: 'auto', display: 'flex', flexDirection: 'column', gap: theme.spacing.md }}>+ <div+ ref={editorWrapperRef}+ className="flex flex-1 flex-col gap-3 overflow-auto p-3"+ >{/* Display Name */}<div>- <label style={{ display: 'block', fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginBottom: 4 }}>+ <label className="mb-1 block text-xs text-fg-muted">Display Name *</label><Inputvalue={pendingSkillData.display_name}onChange={(e) => handlePendingDataChange('display_name', e.target.value)}placeholder="My Custom Skill"- style={{ backgroundColor: theme.colors.backgroundAlt, borderColor: theme.colors.border }}+ className="bg-bg-input border-border-default"/></div>{/* Description */}<div>- <label style={{ display: 'block', fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginBottom: 4 }}>+ <label className="mb-1 block text-xs text-fg-muted">Description</label><Inputvalue={pendingSkillData.description}onChange={(e) => handlePendingDataChange('description', e.target.value)}placeholder="Brief description of what this skill does"- style={{ backgroundColor: theme.colors.backgroundAlt, borderColor: theme.colors.border }}+ className="bg-bg-input border-border-default"/></div>{/* Icon and Color */}- <div style={{ display: 'flex', gap: theme.spacing.md }}>- <div style={{ width: 100 }}>- <label style={{ display: 'block', fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginBottom: 4 }}>+ <div className="flex gap-3">+ <div className="w-[100px]">+ <label className="mb-1 block text-xs text-fg-muted">Icon (emoji)</label><Inputvalue={pendingSkillData.icon}onChange={(e) => handlePendingDataChange('icon', e.target.value)}placeholder=""- style={{ backgroundColor: theme.colors.backgroundAlt, borderColor: theme.colors.border, textAlign: 'center' }}+ className="bg-bg-input border-border-default text-center"/></div>- <div style={{ width: 80 }}>- <label style={{ display: 'block', fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginBottom: 4 }}>+ <div className="w-20">+ <label className="mb-1 block text-xs text-fg-muted">Color</label><Inputtype="color"value={pendingSkillData.color}onChange={(e) => handlePendingDataChange('color', e.target.value)}- style={{ backgroundColor: theme.colors.backgroundAlt, borderColor: theme.colors.border, height: 32, padding: 2 }}+ className="h-8 bg-bg-input border-border-default p-0.5"/></div></div>{/* Instructions */}- <div style={{ flex: 1, display: 'flex', flexDirection: 'column', minHeight: 200 }}>- <label style={{ display: 'block', fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginBottom: 4 }}>+ <div className="flex flex-1 flex-col min-h-[200px]">+ <label className="mb-1 block text-xs text-fg-muted">Instructions *</label><Textarea@@ -847,13 +778,7 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) => handlePendingDataChange('instructions', e.target.value)}placeholder="# Skill Instructions..."spellCheck={false}- className="flex-1 min-h-0 resize-none font-mono text-[13px] leading-[1.5]"- style={{- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.text,- borderColor: theme.colors.border,- borderRadius: theme.borderRadius.md,- }}+ className="flex-1 min-h-0 resize-none rounded-md border-border-default bg-bg-input font-mono text-[13px] leading-[1.5] text-fg-default"/></div></div>@@ -861,46 +786,20 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({) : selectedSkillInfo ? (<>{/* Skill Header */}- <div style={{- padding: theme.spacing.md,- borderBottom: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- display: 'flex',- alignItems: 'center',- gap: theme.spacing.md- }}>+ <div className="flex items-center gap-3 border-b border-border-default bg-bg-panel p-3"><NodeIcon icon={selectedSkillInfo.icon} className="h-6 w-6 text-2xl" />- <div style={{ flex: 1 }}>+ <div className="flex-1">{isEditingUserSkill ? (<Inputvalue={pendingSkillData?.display_name || ''}onChange={(e) => handlePendingDataChange('display_name', e.target.value)}- style={{- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.semibold,- backgroundColor: theme.colors.background,- borderColor: theme.colors.border,- marginBottom: 4- }}+ className="mb-1 bg-bg-elevated border-border-default text-sm font-semibold"/>) : (- <div style={{- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.semibold,- color: theme.colors.text,- display: 'flex',- alignItems: 'center',- gap: theme.spacing.sm- }}>+ <div className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] flex items-center gap-2 text-sm font-semibold text-fg-default">{selectedSkillInfo.displayName}{selectedSkillConfig?.isCustomized && (- <DSBadge- className="h-4 text-xs"- style={{- backgroundColor: `${theme.dracula.orange}20`,- color: theme.dracula.orange,- }}- >+ <DSBadge className="h-4 bg-warning/20 text-xs text-warning">Customized</DSBadge>)}@@ -911,14 +810,10 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({value={pendingSkillData?.description || ''}onChange={(e) => handlePendingDataChange('description', e.target.value)}placeholder="Description"- style={{- fontSize: theme.fontSize.xs,- backgroundColor: theme.colors.background,- borderColor: theme.colors.border,- }}+ className="bg-bg-elevated border-border-default text-xs"/>) : (- <div style={{ fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginTop: 2 }}>+ <div className="mt-0.5 text-xs text-fg-muted">{selectedSkillInfo.description}</div>)}@@ -928,35 +823,22 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({{isEditingUserSkill && (<>{hasUnsavedChanges && (- <Button- size="sm"- variant="outline"+ <ActionButton+ intent="save"onClick={handleSaveSkill}disabled={savingSkill}- style={{- backgroundColor: `${theme.dracula.green}15`,- borderColor: `${theme.dracula.green}40`,- color: theme.dracula.green,- }}+ className="h-8">{savingSkill ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <Save className="h-3.5 w-3.5" />}Save- </Button>+ </ActionButton>)}<AlertDialog><AlertDialogTrigger asChild>- <Button- size="sm"- variant="outline"- style={{- backgroundColor: `${theme.dracula.red}15`,- borderColor: `${theme.dracula.red}40`,- color: theme.dracula.red,- }}- >+ <ActionButton intent="stop" className="h-8"><Trash2 className="h-3.5 w-3.5" />Delete- </Button>+ </ActionButton></AlertDialogTrigger><AlertDialogContent><AlertDialogHeader>@@ -982,25 +864,23 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({{/* Reset Button for built-in skills */}{!isEditingUserSkill && selectedSkillConfig?.isCustomized && (- <Button- size="sm"- variant="outline"+ <ActionButton+ intent="config"onClick={() => handleResetToDefault(selectedSkillName!)}disabled={isLoading}- style={{- backgroundColor: `${theme.dracula.orange}15`,- borderColor: `${theme.dracula.orange}40`,- color: theme.dracula.orange,- }}+ className="h-8">{isLoading ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <RotateCcw className="h-3.5 w-3.5" />}Reset- </Button>+ </ActionButton>)}</div>{/* Skill Instructions Editor */}- <div ref={editorWrapperRef} style={{ flex: 1, padding: theme.spacing.md, overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>+ <div+ ref={editorWrapperRef}+ className="flex flex-1 flex-col overflow-hidden p-3"+ >{isLoading ? (<div className="flex flex-1 items-center justify-center gap-2 text-sm text-muted-foreground"><Loader2 className="h-4 w-4 animate-spin" />@@ -1022,13 +902,7 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({}}placeholder="Loading skill instructions..."spellCheck={false}- className="flex-1 min-h-0 resize-none font-mono text-[13px] leading-[1.5]"- style={{- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.text,- borderColor: theme.colors.border,- borderRadius: theme.borderRadius.md,- }}+ className="flex-1 min-h-0 resize-none rounded-md border-border-default bg-bg-input font-mono text-[13px] leading-[1.5] text-fg-default"/>)}diff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex 722bc8cc..26f7307a 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -3,7 +3,6 @@ import { Loader2, Save } from 'lucide-react';import { toast } from 'sonner';import { useMutation, useQueries, useQuery } from '@tanstack/react-query';-import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Progress } from '@/components/ui/progress';import { Checkbox } from '@/components/ui/checkbox';@@ -30,7 +29,6 @@ import { ActionButton } from '@/components/ui/action-button';import ParameterRenderer from '../ParameterRenderer';import ToolSchemaEditor from './ToolSchemaEditor';import MasterSkillEditor from './MasterSkillEditor';-import { useAppTheme } from '../../hooks/useAppTheme';import { useAppStore } from '../../store/useAppStore';import { useWebSocket, CompactionStats } from '../../contexts/WebSocketContext';import { useUserSettingsQuery } from '../../hooks/useUserSettingsQuery';@@ -92,7 +90,6 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({isLoadingParameters = false,executionResults = []}) => {- const theme = useAppTheme();const currentWorkflow = useAppStore((s) => s.currentWorkflow);const { clearMemory, resetSkill, sendRequest, getNodeParameters, compactionStats: contextCompactionStats, updateCompactionStats } = useWebSocket();@@ -515,38 +512,21 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({const consoleOutput = isCodeExecutorNode ? getConsoleOutput() : '';return (- <div style={{- flex: 1,- display: 'flex',- flexDirection: 'column',- height: '100%',- overflow: 'hidden',- position: 'relative'- }}>+ <div className="relative flex h-full flex-1 flex-col overflow-hidden">{/* Description - hide for code editor nodes (Python, Skill) and masterSkill */}{!needsCodeEditorLayout && !isMasterSkillNode && (- <div style={{- padding: `${theme.spacing.lg} ${theme.spacing.xl} ${theme.spacing.sm}`,- borderBottom: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- flexShrink: 0- }}>- <p style={{- margin: 0,- fontSize: theme.fontSize.base,- color: theme.colors.textSecondary,- lineHeight: '1.5',- }}>+ <div className="shrink-0 border-b border-border-default bg-bg-panel px-6 pt-4 pb-2">+ <p className="m-0 text-base leading-[1.5] text-fg-muted">{nodeDefinition.description}</p></div>)}{/* Main Content Area - Flexible */}- <div style={{ flex: 1, display: 'flex', flexDirection: 'column', minHeight: 0, overflow: 'hidden' }}>+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden">{/* Master Skill Editor - Full panel for masterSkill nodes */}{isMasterSkillNode ? (- <div style={{ flex: 1, display: 'flex', flexDirection: 'column', padding: theme.spacing.lg, overflow: 'hidden' }}>+ <div className="flex flex-1 flex-col overflow-hidden p-4"><MasterSkillEditorskillsConfig={parameters.skills_config || {}}onConfigChange={(config) => onParameterChange('skills_config', config)}@@ -558,45 +538,34 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({) : (<>{/* Parameters */}- <div style={{- padding: theme.spacing.xl,- flex: needsCodeEditorLayout ? '3' : 1,- overflowY: needsCodeEditorLayout ? 'hidden' : 'auto',- overflowX: 'hidden',- width: '100%',- boxSizing: 'border-box',- minHeight: 0,- display: needsCodeEditorLayout ? 'flex' : 'block',- flexDirection: 'column'- }}>+ <div+ className={cn(+ 'box-border min-h-0 w-full overflow-x-hidden p-6',+ needsCodeEditorLayout+ ? 'flex flex-[3] flex-col overflow-y-hidden'+ : 'block flex-1 overflow-y-auto',+ )}+ >{/* Parameters Container */}- <div style={{- backgroundColor: theme.colors.background,- border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.md,- padding: theme.spacing.lg,- boxShadow: `0 1px 3px ${theme.colors.shadowLight}`,- height: needsCodeEditorLayout ? '100%' : 'auto',- display: needsCodeEditorLayout ? 'flex' : 'block',- flexDirection: 'column',- boxSizing: 'border-box'- }}>+ <div+ className={cn(+ 'box-border rounded-md border border-border-default bg-bg-elevated p-4 shadow-sm',+ needsCodeEditorLayout ? 'flex h-full flex-col' : 'block h-auto',+ )}+ >{/* All Parameters - standard n8n style */}{visibleParams.map((param: INodeProperties, index: number) => {// Check if this parameter is a code editor - give it more flex spaceconst isCodeParam = (param as any).typeOptions?.editor === 'code';+ const isLast = index === visibleParams.length - 1;return (<divkey={param.name}- style={{- paddingBottom: index < visibleParams.length - 1 ? theme.spacing.md : 0,- marginBottom: index < visibleParams.length - 1 ? theme.spacing.md : 0,- borderBottom: index < visibleParams.length - 1 ? `1px solid ${theme.colors.border}` : 'none',- flex: needsCodeEditorLayout && isCodeParam ? 1 : 'none',- display: needsCodeEditorLayout ? 'flex' : 'block',- flexDirection: 'column',- minHeight: needsCodeEditorLayout && isCodeParam ? '300px' : 0- }}+ className={cn(+ needsCodeEditorLayout ? 'flex flex-col' : 'block',+ !isLast && 'mb-3 border-b border-border-default pb-3',+ needsCodeEditorLayout && isCodeParam ? 'min-h-[300px] flex-1' : 'min-h-0 flex-none',+ )}><ParameterRendererparameter={param}@@ -623,21 +592,21 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({{/* Clear Memory Button - Only for memory nodes */}{isMemoryNode && (- <div className="mt-3 flex justify-end border-t border-border pt-3">- <Button- variant="destructive"- size="sm"+ <div className="mt-3 flex justify-end border-t border-border-default pt-3">+ <ActionButton+ intent="stop"onClick={() => setShowClearMemoryDialog(true)}+ className="h-8"><Trash2 className="h-3.5 w-3.5" />Clear Memory- </Button>+ </ActionButton></div>)}{/* Reset Skill Button - Only for built-in skill nodes */}{isSkillNode && (- <div className="mt-3 flex justify-end border-t border-border pt-3">+ <div className="mt-3 flex justify-end border-t border-border-default pt-3"><ActionButtonintent="config"onClick={() => setShowResetSkillDialog(true)}@@ -715,18 +684,18 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({{/* Token Usage Section - Only for agent nodes with memory connected */}{isAgentWithSkills && connectedMemorySessionId && (- <Accordion type="single" collapsible defaultValue="tokens" style={{ marginTop: 16 }}>+ <Accordion type="single" collapsible defaultValue="tokens" className="mt-4"><AccordionItem value="tokens"><AccordionTrigger>{(() => {const ctxLen = compactionStats?.context_length || 0;const displayMax = ctxLen > 0 ? ctxLen : compactionStats?.threshold || 0;return (- <span className="flex flex-1 items-center gap-2">+ <span className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default flex flex-1 items-center gap-2"><Zap className="h-4 w-4" />Token Usage{compactionStats && displayMax > 0 && (- <span className="ml-auto text-xs text-muted-foreground">+ <span className="ml-auto text-xs text-fg-muted normal-case tracking-normal">{Math.round(compactionStats.total / 1000)}K / {Math.round(displayMax / 1000)}K{ctxLen > 0 ? ' context' : ''}</span>)}@@ -774,8 +743,9 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({step={10000}className="h-7 w-28 text-xs"/>- <Button- size="icon-sm"+ <ActionButton+ intent="save"+ className="h-7 w-7 px-0"disabled={savingThreshold || !connectedMemorySessionId}onClick={() => {if (!connectedMemorySessionId) return;@@ -786,7 +756,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({}}>{savingThreshold ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <Save className="h-3.5 w-3.5" />}- </Button>+ </ActionButton></div></div>) : (@@ -834,12 +804,12 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({><AccordionItem value="skills"><AccordionTrigger>- <span className="flex flex-1 items-center gap-2">+ <span className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default flex flex-1 items-center gap-2"><Sparkles className="h-4 w-4" />Connected Skills<Badgevariant={expandedConnectedSkills.length > 0 ? 'default' : 'outline'}- className="ml-auto"+ className="ml-auto normal-case tracking-normal">{expandedConnectedSkills.length}</Badge>@@ -899,20 +869,22 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({<Accordion type="single" collapsible defaultValue="console" className="flex min-h-0 flex-1 flex-col"><AccordionItem value="console" className="flex min-h-0 flex-1 flex-col"><AccordionTrigger>- <span className="flex flex-1 items-center gap-2">+ <span className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default flex flex-1 items-center gap-2"><TerminalSquare className="h-4 w-4" />Console{consoleOutput && (- <Badge variant="success" className="ml-auto">Output</Badge>+ <Badge variant="success" className="ml-auto normal-case tracking-normal">Output</Badge>)}</span></AccordionTrigger><AccordionContent className="flex min-h-0 flex-1 flex-col">- <div className="min-h-0 flex-1 overflow-y-auto rounded-md bg-[#1a1a2e] p-2 font-mono text-sm leading-relaxed">+ <div className="min-h-0 flex-1 overflow-y-auto rounded-md bg-bg-app p-2 font-mono text-sm leading-relaxed">{consoleOutput ? (<pre- className="m-0 whitespace-pre-wrap break-words"- style={{ color: consoleOutput.startsWith('Error') ? theme.dracula.red : theme.dracula.green }}+ className={cn(+ 'm-0 whitespace-pre-wrap break-words',+ consoleOutput.startsWith('Error') ? 'text-destructive' : 'text-success',+ )}>{consoleOutput}</pre>diff --git a/client/src/components/parameterPanel/ToolSchemaEditor.tsx b/client/src/components/parameterPanel/ToolSchemaEditor.tsxindex 53ceaa89..1cc57d78 100644--- a/client/src/components/parameterPanel/ToolSchemaEditor.tsx+++ b/client/src/components/parameterPanel/ToolSchemaEditor.tsx@@ -33,7 +33,6 @@ import {SelectTrigger,SelectValue,} from '@/components/ui/select';-import { Button } from '@/components/ui/button';import { ActionButton } from '@/components/ui/action-button';import { Checkbox } from '@/components/ui/checkbox';@@ -245,7 +244,7 @@ const ToolSchemaEditor: React.FC<ToolSchemaEditorProps> = ({ nodeId }) => {!isExpanded && '-rotate-90')}/>- <span className="font-semibold text-foreground">Connected Services</span>+ <span className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-sm font-semibold text-fg-default">Connected Services</span></div><span className="text-sm text-muted-foreground">{connectedServices.length} service(s)@@ -286,9 +285,9 @@ const ToolSchemaEditor: React.FC<ToolSchemaEditorProps> = ({ nodeId }) => {)}<div className="mb-2 flex items-center justify-between">- <label className="text-sm text-muted-foreground">Schema Fields</label>+ <label className="font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-sm text-fg-muted">Schema Fields</label><ActionButton- intent="config"+ intent="tools"className="h-7"onClick={() =>append({@@ -311,9 +310,9 @@ const ToolSchemaEditor: React.FC<ToolSchemaEditorProps> = ({ nodeId }) => {{hasChanges && (<div className="mt-3 flex justify-end gap-2">- <Button type="button" variant="outline" size="sm" onClick={handleReset}>+ <ActionButton intent="config" type="button" onClick={handleReset}>Reset- </Button>+ </ActionButton><ActionButtonintent="save"type="submit"diff --git a/client/src/themes/atomic.css b/client/src/themes/atomic.cssindex 406b286b..c361e822 100644--- a/client/src/themes/atomic.css+++ b/client/src/themes/atomic.css@@ -143,6 +143,22 @@color: #2a3a4a;}+/* Atomic scrollbars β square corners (mid-century geometric) */+:root[data-theme="atomic"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="atomic"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="atomic"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: 0;+}+:root[data-theme="atomic"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββββββββββββββ */:root[data-theme="atomic"] .toolbar, :root[data-theme="atomic"] .sidebar,diff --git a/client/src/themes/edo.css b/client/src/themes/edo.cssindex 051368ec..e17e83c1 100644--- a/client/src/themes/edo.css+++ b/client/src/themes/edo.css@@ -137,6 +137,22 @@color: #1a1410;}+/* Edo scrollbars β square corners (woodblock-print geometry) */+:root[data-theme="edo"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="edo"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="edo"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: 0;+}+:root[data-theme="edo"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββββββββββββββ */:root[data-theme="edo"] .toolbar,diff --git a/client/src/themes/greek.css b/client/src/themes/greek.cssindex bc00da48..2b5e0b62 100644--- a/client/src/themes/greek.css+++ b/client/src/themes/greek.css@@ -175,6 +175,22 @@color: #2a2415;}+/* Greek scrollbars β sandstone thumb on linen (chiseled-marble feel) */+:root[data-theme="greek"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="greek"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="greek"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 0);+}+:root[data-theme="greek"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββββββββββββββ */:root[data-theme="greek"] .toolbar { border-bottom: 3px solid var(--border-strong); position: relative; }diff --git a/client/src/themes/plague.css b/client/src/themes/plague.cssindex eed97729..92daad75 100644--- a/client/src/themes/plague.css+++ b/client/src/themes/plague.css@@ -142,6 +142,22 @@color: #efeacf;}+/* Plague scrollbars β charred thumb on bone track */+:root[data-theme="plague"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="plague"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="plague"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 0);+}+:root[data-theme="plague"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββ */:root[data-theme="plague"] .toolbar,diff --git a/client/src/themes/renaissance.css b/client/src/themes/renaissance.cssindex 01fd07bf..c095eb3d 100644--- a/client/src/themes/renaissance.css+++ b/client/src/themes/renaissance.css@@ -191,6 +191,23 @@color: #3a2008;}+/* Gilded scrollbars β gold thumb on cream track with carved inset rule */+:root[data-theme="renaissance"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="renaissance"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="renaissance"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 2px);+ box-shadow: inset 0 0 0 1px var(--border-strong);+}+:root[data-theme="renaissance"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββ *//* Floating illuminated initial as ambient ornament */diff --git a/client/src/themes/rot.css b/client/src/themes/rot.cssindex 5ba6cd63..5d9e335d 100644--- a/client/src/themes/rot.css+++ b/client/src/themes/rot.css@@ -142,6 +142,22 @@color: #14181a;}+/* Rot scrollbars β mossy thumb on swamp track */+:root[data-theme="rot"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="rot"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="rot"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 1px);+}+:root[data-theme="rot"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββ */:root[data-theme="rot"] .toolbar,diff --git a/client/src/themes/steampunk.css b/client/src/themes/steampunk.cssindex f5d37314..ce941df0 100644--- a/client/src/themes/steampunk.css+++ b/client/src/themes/steampunk.css@@ -141,6 +141,23 @@color: #2a1f12;}+/* Steampunk scrollbars β brass thumb on leather track with metallic highlight */+:root[data-theme="steampunk"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="steampunk"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="steampunk"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 2px);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);+}+:root[data-theme="steampunk"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββββββββββββββ */:root[data-theme="steampunk"] .toolbar,diff --git a/client/src/themes/wasteland.css b/client/src/themes/wasteland.cssindex d8b4bbed..c53ab799 100644--- a/client/src/themes/wasteland.css+++ b/client/src/themes/wasteland.css@@ -140,6 +140,22 @@color: #1a1410;}+/* Wasteland scrollbars β rust thumb on dust track */+:root[data-theme="wasteland"] ::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}+:root[data-theme="wasteland"] ::-webkit-scrollbar-track {+ background: var(--scrollbar-track);+}+:root[data-theme="wasteland"] ::-webkit-scrollbar-thumb {+ background: var(--scrollbar-thumb);+ border-radius: var(--radius-sm, 0);+}+:root[data-theme="wasteland"] ::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);+}+/* ββ Per-component decorations (Wave 16 port from handoff) βββ */:root[data-theme="wasteland"] .toolbar,