Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(crm): remove the mobile tab vignette and hide Stage by default (#7839)

teoeda3a0169bd9
diff --git a/apps/web/src/components/app/split-layout/componentRegistry.tsx b/apps/web/src/components/app/split-layout/componentRegistry.tsx
index c318b3de9f..8bc0f0d80c 100644
--- a/apps/web/src/components/app/split-layout/componentRegistry.tsx
+++ b/apps/web/src/components/app/split-layout/componentRegistry.tsx
@@ -353,14 +353,10 @@ registerComponent(
() => composableLayout()
);
registerComponent('calls', () => <CallsRouteView />);
-registerComponent(
- 'companies',
- () => <CompaniesRouteView />,
- () => ({
- ownsCollectionState: true,
- ...(isTouchDevice() ? {} : { splitPanelLayout: 'composable' as const }),
- })
-);
+registerComponent('companies', () => <CompaniesRouteView />, {
+ ownsCollectionState: true,
+ splitPanelLayout: 'composable',
+});
registerComponent('folders', () => <FoldersRouteView />);
registerComponent('search', () => <SearchRouteView />);
registerComponent('firehose', () => (
diff --git a/apps/web/src/features/crm/core/display-options.ts b/apps/web/src/features/crm/core/display-options.ts
index 65fcafa7f5..a21beee7b4 100644
--- a/apps/web/src/features/crm/core/display-options.ts
+++ b/apps/web/src/features/crm/core/display-options.ts
@@ -6,7 +6,7 @@ export type CrmDisplayOptions = {
};
export const DEFAULT_CRM_DISPLAY_OPTIONS: CrmDisplayOptions = {
- listColumns: { stage: true, owner: true, revenue: true },
+ listColumns: { stage: false, owner: true, revenue: true },
};
export const CRM_LIST_COLUMN_LABELS: Record<CrmListColumnId, string> = {
diff --git a/apps/web/src/features/crm/views/crm-workspace.tsx b/apps/web/src/features/crm/views/crm-workspace.tsx
index 3388a06942..9213dcae14 100644
--- a/apps/web/src/features/crm/views/crm-workspace.tsx
+++ b/apps/web/src/features/crm/views/crm-workspace.tsx
@@ -517,7 +517,8 @@ export function CrmWorkspaceView(props: {
</Suspense>
</Show>
</Show>
- <div class="flex min-h-0 min-w-0 flex-1 flex-col">
+ {/* The header above already clears the status bar on touch. */}
+ <div class="flex min-h-0 min-w-0 flex-1 flex-col [--mobile-content-inset-top:0px]">
{props.children({
onOpenEntity: isTouchDevice() ? undefined : openRecord,
})}
diff --git a/apps/web/src/features/crm/views/saved-views-menu.tsx b/apps/web/src/features/crm/views/saved-views-menu.tsx
index 2ec2a5084d..2e6313dd24 100644
--- a/apps/web/src/features/crm/views/saved-views-menu.tsx
+++ b/apps/web/src/features/crm/views/saved-views-menu.tsx
@@ -329,7 +329,7 @@ export function CompanyDisplayMenu() {
return (
<Dropdown>
<Tooltip label="Display options">
- <Dropdown.Trigger depth={2} class="bg-surface" label="Display options">
+ <Dropdown.Trigger variant="ghost" label="Display options">
<SlidersIcon />
</Dropdown.Trigger>
</Tooltip>
diff --git a/docs/AGENT_GUIDE/surfaces.md b/docs/AGENT_GUIDE/surfaces.md
index 067706b485..a46b93ff24 100644
--- a/docs/AGENT_GUIDE/surfaces.md
+++ b/docs/AGENT_GUIDE/surfaces.md
@@ -1912,8 +1912,10 @@ are plain soup lists with the shared pagination. Existing personal/team saved
views stay in the toolbar's Views menu.
Companies lists every visible company, grouped by Stage by default, with Owner,
-Revenue and Last Interaction columns. Its toolbar holds sort, group, filter,
-display options, saved views, and **New company** at the right end.
+Revenue and Last Interaction columns. A Stage column is off by default; turn it
+on, or hide Owner or Revenue, under **Display options**. Its toolbar holds
+sort, group, filter, display options, saved views, and **New company** at the
+right end.
People lists contacts across every CRM-enabled team the viewer belongs to, from
the same Soup query with only CRM contacts opted in (`crmf`). The server collapses