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

Function refreshStatus

graph-ui/src/ui/refresh/refresh-feedback.tsx:62–66  ·  view source on GitHub ↗
(feedback: RefreshFeedback | undefined, done: (time: string) => string)

Source from the content-addressed store, hash-verified

60}
61
62export function refreshStatus(feedback: RefreshFeedback | undefined, done: (time: string) => string): string {
63 if (!feedback || feedback.phase === 'running') return '';
64 const time = clockTime(feedback.at);
65 return feedback.phase === 'failed' ? text.failed(time, feedback.error) : feedback.changed ? done(time) : text.unchanged(time);
66}
67
68/**
69 * The button and its status. A running refresh keeps the button in the focus

Callers 1

RefreshControlFunction · 0.85

Calls 1

clockTimeFunction · 0.85

Tested by

no test coverage detected