({ reading, paused }: { reading: SystemReading<unknown>; paused: boolean })
| 22 | const TAB_LABELS: Record<SystemTab, string> = { overview: 'Overview', configuration: 'Configuration', indexes: 'Indexes', logs: 'Logs' }; |
| 23 | |
| 24 | function ReadStatus({ reading, paused }: { reading: SystemReading<unknown>; paused: boolean }) { |
| 25 | return <div className="system-read-status"> |
| 26 | <span className={reading.error ? 'system-warning' : ''}> |
| 27 | {reading.error ? reading.data ? 'Update failed · showing last reading' : 'Update failed' : paused ? 'Live updates paused' : reading.loading ? 'Updating…' : 'Live updates on'} |
| 28 | </span> |
| 29 | <span>{reading.updatedAt === null ? 'No reading yet' : <>Updated <time dateTime={new Date(reading.updatedAt).toISOString()}>{new Date(reading.updatedAt).toLocaleTimeString()}</time></>}</span> |
| 30 | {reading.error && <p role="alert">{reading.error}</p>} |
| 31 | </div>; |
| 32 | } |
| 33 | |
| 34 | /** Daemon readings and configuration; project indexing uses the existing dialog. */ |
| 35 | export default function SystemWorkspace({ api, onOpenProjects, active = true, version, pollMs = 3000, project, configuration, listProjects }: SystemWorkspaceProps) { |
nothing calls this directly
no outgoing calls
no test coverage detected