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

Function timing

graph-ui/src/settings/ConfigPanel.tsx:11–11  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

9const displayValue = (value: string | null) => value === null ? 'Automatic' : value === 'true' ? 'On' : value === 'false' ? 'Off' : value || '(empty)';
10const title = (value: string) => value.replace(/[_-]/g, ' ').replace(/^./, char => char.toUpperCase());
11const timing = (value: string) => ({ restart: 'Process restart', 'next-session': 'Next session', 'next-request': 'Next request', live: 'Immediate', startup: 'After restart', 'next-index': 'Next index' }[value] ?? title(value));
12
13function SettingRow({ setting, draft, changed, onChange, disabled }: { setting: ConfigSetting; draft?: string | null; changed: boolean; onChange: (value: string | null) => void; disabled: boolean }) {
14 const value = changed ? draft ?? null : setting.override ?? setting.value;

Callers 1

SettingRowFunction · 0.85

Calls 1

titleFunction · 0.85

Tested by

no test coverage detected