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

Function setView

apps/desktop/src/renderer/src/store.ts:715–724  ·  view source on GitHub ↗
(view: AppView)

Source from the content-addressed store, hash-verified

713 },
714
715 setView(view: AppView) {
716 const prev = get().view;
717 set({
718 view,
719 previousView: prev === view ? get().previousView : prev,
720 ...(view !== 'workspace'
721 ? { interactionMode: 'default' as const, selectedElement: null, commentBubble: null }
722 : {}),
723 });
724 },
725
726 openSettingsTab(tab: SettingsTab) {
727 const prev = get().view;

Callers 5

AppFunction · 0.85
TopBarFunction · 0.85
handleCreateFunction · 0.85
handleResetFunction · 0.85
DesignGridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected