Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore: hide show project display option for project block (#102)
gbirman98f898c3efc1
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex e3f9bcc5df..81a91570b1 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -1121,12 +1121,14 @@ export function UnifiedListView(props: UnifiedListViewProps) {<SortComponent size="SM" /></section><section class="gap-1 grid p-2">- <ToggleSwitch- size="SM"- label="Show Projects"- checked={showProjects()}- onChange={setShowProjects}- />+ <Show when={view()?.viewType !== 'project'}>+ <ToggleSwitch+ size="SM"+ label="Show Projects"+ checked={showProjects()}+ onChange={setShowProjects}+ />+ </Show><ToggleSwitchsize="SM"label="Unroll Notifications"diff --git a/js/app/packages/app/component/ViewConfig.tsx b/js/app/packages/app/component/ViewConfig.tsxindex 5f3262d6ab..76d4f803d5 100644--- a/js/app/packages/app/component/ViewConfig.tsx+++ b/js/app/packages/app/component/ViewConfig.tsx@@ -83,6 +83,7 @@ export type HotkeyOptions = {};export type ViewConfigBase = {+ viewType?: ViewType;filters: FilterOptions;sort: SortOptions;display: DisplayOptions;@@ -121,6 +122,7 @@ export const VIEWCONFIG_BASE: ViewConfigBase = {};export const PROJECT_VIEWCONFIG_BASE: ViewConfigBase = {+ viewType: 'project',sort: {sortBy: 'viewed_at',sortOrder: 'descending',diff --git a/js/app/packages/block-project/component/Block.tsx b/js/app/packages/block-project/component/Block.tsxindex 11ba973233..ebe01399d7 100644--- a/js/app/packages/block-project/component/Block.tsx+++ b/js/app/packages/block-project/component/Block.tsx@@ -300,16 +300,12 @@ const Block: Component = () => {setSelectedView(projectId);setViewDataStore(projectId, {- id: projectId,- viewType: 'project',...PROJECT_VIEWCONFIG_BASE,+ id: projectId,filters: {...PROJECT_VIEWCONFIG_BASE.filters,projectFilter: projectId,},- initialConfig: '',- searchText: '',- hasUserInteractedEntity: false,});onCleanup(() => {