MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / clearDesignSystem

Function clearDesignSystem

apps/desktop/src/renderer/src/store.ts:656–670  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

654 },
655
656 async clearDesignSystem() {
657 if (!window.codesign) return;
658 try {
659 const next = await window.codesign.clearDesignSystem();
660 set({ config: next });
661 get().pushToast({ variant: 'info', title: tr('notifications.designSystemCleared') });
662 } catch (err) {
663 const message = err instanceof Error ? err.message : tr('errors.generic');
664 get().pushToast({
665 variant: 'error',
666 title: tr('notifications.clearDesignSystemFailed'),
667 description: message,
668 });
669 }
670 },
671
672 clearError() {
673 set({ errorMessage: null });

Callers 1

SidebarFunction · 0.85

Calls 1

trFunction · 0.90

Tested by

no test coverage detected