Files
ServerKit/frontend/src/components/InfoList.jsx
T
Juan Denis 19c727be4c Add Windows service support and new UI components
Agent: factor run logic into agentMainLoop and detect SCM launch; add Windows service dispatcher (service_windows.go) and POSIX stub (service_other.go) to properly handle SCM lifecycle and avoid Windows SCM error 1053. Frontend: add a set of presentational components (DangerZone, InfoList/InfoItem, JournalControls, LogViewer, MetricRow/MetricItem, ProcessTable, ProgressBar, ServiceCard, StatCard) and wire them into multiple pages and security tabs, replacing many ad-hoc info-list blocks. Also add a route for style-guide/:tab and update AgentFleet to use the new StatCard/StatsGrid layout. These changes improve service reliability on Windows and DRY up UI layouts with reusable components.
2026-04-30 23:11:26 -04:00

18 lines
562 B
React

import React from 'react';
export function InfoList({ children, className = '', style }) {
return <div className={`info-list ${className}`.trim()} style={style}>{children}</div>;
}
export function InfoItem({ label, value, mono = false, children }) {
const valueClass = ['info-value', mono && 'mono'].filter(Boolean).join(' ');
return (
<div className="info-item">
<span className="info-label">{label}</span>
{children ?? <span className={valueClass}>{value}</span>}
</div>
);
}
export default InfoList;