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

Function RefreshControl

graph-ui/src/ui/refresh/refresh-feedback.tsx:73–83  ·  view source on GitHub ↗
({ labels, feedback, onRefresh, className }: {
    labels: { idle: string; busy: string; done: (time: string) => string };
    feedback?: RefreshFeedback; onRefresh: () => void; className?: string;
})

Source from the content-addressed store, hash-verified

71 * they were; a second press while it runs does nothing.
72 */
73export function RefreshControl({ labels, feedback, onRefresh, className }: {
74 labels: { idle: string; busy: string; done: (time: string) => string };
75 feedback?: RefreshFeedback; onRefresh: () => void; className?: string;
76}): JSX.Element {
77 const running = feedback?.phase === 'running';
78 return <span className="atlas-refresh" data-phase={feedback?.phase}>
79 <button type="button" className={className} aria-disabled={running || undefined} aria-busy={running || undefined}
80 onClick={() => { if (!running) onRefresh(); }}>{running ? labels.busy : labels.idle}</button>
81 <span className="atlas-refresh-status" role="status" data-phase={feedback?.phase}>{refreshStatus(feedback, labels.done)}</span>
82 </span>;
83}

Callers

nothing calls this directly

Calls 1

refreshStatusFunction · 0.85

Tested by

no test coverage detected