The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(panel): restore missing panel header in scaffold layout
Steven Enamakela03e939ae664
diff --git a/app/src/components/layout/PanelScaffold.tsx b/app/src/components/layout/PanelScaffold.tsxindex feb85f8cbc..50ce289ece 100644--- a/app/src/components/layout/PanelScaffold.tsx+++ b/app/src/components/layout/PanelScaffold.tsx@@ -1,6 +1,8 @@import type { ReactNode } from 'react';-import PanelHeader, { DEFAULT_PANEL_HEADER_BG, DEFAULT_PANEL_HEADER_CLASS } from './PanelHeader';+import { cn } from '../../lib/cn';+import { contentWidthVariants, type ContentWidth } from './contentWidth';+import PanelHeader, { type PanelHeaderProps } from './PanelHeader';interface PanelScaffoldProps {/** Primary title rendered in the fixed header (optional; see {@link PanelHeader}). */@@ -26,10 +28,21 @@ interface PanelScaffoldProps {* own padding (e.g. an embedded sub-panel).*/contentClassName?: string;- /** Classes for the fixed header band. */+ /**+ * Extra classes merged (via `cn`) onto the fixed header band, on top of its+ * own padding/background. Most callers don't need this — reach for it for a+ * one-off spacing tweak.+ */headerClassName?: string;- /** Background applied to the fixed header band. */- headerBgClassName?: string;+ /** Background tone for the fixed header band. Defaults to `'muted'`. */+ headerTone?: PanelHeaderProps['tone'];+ /**+ * Cap the body's width and center it (`mx-auto`) — for a scaffold whose body+ * reads as a single centered column rather than a full-bleed list/table.+ * Defaults to `'full'` (today's unconstrained behavior; no wrapper is+ * rendered at all in that case, so this is a strictly opt-in change).+ */+ width?: ContentWidth;/*** Draw a hairline border between the fixed header and the scrollable body for* a clear separation. Defaults to on whenever a header is present; force it@@ -65,8 +78,9 @@ export default function PanelScaffold({children,className = '',contentClassName = DEFAULT_CONTENT_CLASS,- headerClassName = DEFAULT_PANEL_HEADER_CLASS,- headerBgClassName = DEFAULT_PANEL_HEADER_BG,+ headerClassName,+ headerTone,+ width = 'full',bodyBorder,testId,}: PanelScaffoldProps) {@@ -83,23 +97,32 @@ export default function PanelScaffold({title != null || description != null || action != null || headerExtra != null;const showBorder = bodyBorder ?? hasVisibleHeader;+ const body =+ width === 'full' ? children : (+ <div className={cn('mx-auto w-full', contentWidthVariants({ width }))}>{children}</div>+ );+return (- <div className={`relative flex h-full min-h-0 flex-col ${className}`} data-testid={testId}>+ <div className={cn('relative flex h-full min-h-0 flex-col', className)} data-testid={testId}>{hasHeader && (<PanelHeadertitle={title}description={description}leading={leading}action={action}- className={`flex-shrink-0 ${headerClassName}`}- bgClassName={headerBgClassName}>+ tone={headerTone}+ className={cn('flex-shrink-0', headerClassName)}>{headerExtra}</PanelHeader>)}<div- className={`min-h-0 flex-1 overflow-y-auto ${showBorder ? BODY_BORDER_CLASS : ''} ${contentClassName}`}>- {children}+ className={cn(+ 'min-h-0 flex-1 overflow-y-auto',+ showBorder && BODY_BORDER_CLASS,+ contentClassName+ )}>+ {body}</div></div>);