MCPcopy Create free account
hub / github.com/ShipSecAI/studio / loadWorkflows

Function loadWorkflows

frontend/src/pages/ArtifactLibrary.tsx:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44 useEffect(() => {
45 const loadWorkflows = async () => {
46 try {
47 const list = await api.workflows.list();
48 const map: Record<string, string> = {};
49 list.forEach((w) => {
50 if (w.id) map[w.id] = w.name;
51 });
52 setWorkflows(map);
53 } catch (err) {
54 console.error('Failed to load workflows', err);
55 }
56 };
57 loadWorkflows();
58 }, []);
59

Callers 3

ArtifactLibraryFunction · 0.85
WorkflowListFunction · 0.85
handleTryAgainFunction · 0.85

Calls 2

errorMethod · 0.80
listMethod · 0.65

Tested by

no test coverage detected