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

Function cancel

graph-ui/src/adr/AdrWorkspace.tsx:150–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 const startEditing = (append = false): void => setState(value => ({ ...value, editing: true,
149 content: append ? appendDecision(value.content) : value.content, error: '', notice: '' }));
150 const cancel = (): void => {
151 clearAdrDraft(project);
152 setState(value => ({ ...value, base: value.conflict ?? value.base, content: (value.conflict ?? value.base)?.content ?? '', editing: false,
153 preview: false, conflict: undefined, reviewing: false, error: '', notice: '' }));
154 };
155 const useLatest = (discard: boolean): void => setState(value => value.conflict ? ({ ...value,
156 base: value.conflict, content: discard ? value.conflict.content : value.content,
157 editing: !discard, conflict: undefined, reviewing: false, phase: 'ready', error: '', notice: discard ? '' : s.rebased }) : value);

Callers 1

verifyCandidateFunction · 0.85

Calls 1

clearAdrDraftFunction · 0.90

Tested by

no test coverage detected