diff --git a/apps/ui/src/components/AnalysisResults.tsx b/apps/ui/src/components/AnalysisResults.tsx index e6c46f81..5d31ec6e 100644 --- a/apps/ui/src/components/AnalysisResults.tsx +++ b/apps/ui/src/components/AnalysisResults.tsx @@ -321,27 +321,33 @@ interface ResultsSectionHeaderProps { className?: string; } +/** + * Thin wrapper around the SectionHeader primitive — preserves the + * (title, rightSlot, titleRole, titleClassName, className) API the rest of + * AnalysisResults expects while letting the primitive own the actual layout + * + LED indicator + data-text-role propagation. The static accent dot + * (``) is upgraded to the + * pulsing `.led-indicator--active` glyph that every other DeviceRack / + * SectionHeader in the migration uses. + */ function ResultsSectionHeader({ title, - rightSlot = null, + rightSlot, titleRole, - titleClassName = '', - className = '', + titleClassName, + className, }: ResultsSectionHeaderProps) { - const resolvedTitleClassName = titleRole - ? textRoleClassName(titleRole, `flex items-center gap-2 ${titleClassName}`.trim()) - : ['text-sm font-mono uppercase tracking-wider text-text-secondary flex items-center gap-2', titleClassName] - .filter(Boolean) - .join(' '); - return ( -
-

- - {title} -

- {rightSlot ?
{rightSlot}
: null} -
+ ); }