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

Function saveAdr

graph-ui/src/projects/ProjectsPanel.tsx:381–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 };
380
381 const saveAdr = async (): Promise<void> => {
382 try {
383 await source.saveAdr(project, adrDraft);
384 if (!mounted.current) {
385 return;
386 }
387 setAdrNotice(text.adrSaved);
388 void loadAdr();
389 } catch (error) {
390 if (!mounted.current) {
391 return;
392 }
393 if (error instanceof AtlasApiError && error.status === 423) {
394 setAdrNotice(text.adrBusy);
395 } else {
396 setAdrNotice(text.adrError(describeError(error)));
397 }
398 }
399 };
400
401 const canStart = path.trim().length > 0 && name.trim().length > 0;
402 const others = processes?.processes.filter((entry) => !entry.isSelf) ?? [];

Callers 1

ProjectsPanelFunction · 0.85

Calls 2

describeErrorFunction · 0.85
saveAdrMethod · 0.65

Tested by

no test coverage detected