MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / watcherText

Function watcherText

graph-ui/src/system/IndexesPanel.tsx:22–25  ·  view source on GitHub ↗
(health: ProjectHealth | null, failed: boolean)

Source from the content-addressed store, hash-verified

20const failureText = (error: unknown) => error instanceof Error ? error.message : String(error);
21const booleanText = (value: string | null | undefined) => value === 'true' ? 'On' : value === 'false' ? 'Off' : 'Unknown';
22const watcherText = (health: ProjectHealth | null, failed: boolean) => {
23 if (failed || health?.watchRegistered == null || health.watcherRunning == null) return 'Unknown';
24 return health.watchRegistered ? health.watcherRunning ? 'Active' : 'Registered · daemon watcher stopped' : 'Not registered';
25};
26
27function WatcherSetting({ api, active, paused, pollMs, refreshToken }: Omit<Props, 'listProjects' | 'onOpenProjects'> & { pollMs: number }) {
28 const [snapshot, setSnapshot] = useState<ConfigSnapshot | null>(null);

Callers 1

IndexesPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected