MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / handleRemove

Function handleRemove

packages/react/src/pages/artifacts.tsx:188–195  ·  view source on GitHub ↗
(artifactId: ArtifactId)

Source from the content-addressed store, hash-verified

186 };
187
188 const handleRemove = async (artifactId: ArtifactId) => {
189 const exit = await doRemove({
190 params: { artifactId },
191 reactivityKeys: artifactWriteKeys,
192 });
193 trackEvent("artifact_removed", { success: Exit.isSuccess(exit) });
194 if (Exit.isFailure(exit)) toast.error("Couldn't delete the artifact. Try again.");
195 };
196
197 return (
198 // Wider than the settings column: three preview cards need the room, and

Callers 1

ArtifactsPageFunction · 0.70

Calls 2

trackEventFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected