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): hide inactive record selection checkboxes (#8185)

gbirmandf863506a415
diff --git a/apps/web/src/features/crm/views/record-item-list.tsx b/apps/web/src/features/crm/views/record-item-list.tsx
index 774a72fc5b..beaf16f43a 100644
--- a/apps/web/src/features/crm/views/record-item-list.tsx
+++ b/apps/web/src/features/crm/views/record-item-list.tsx
@@ -88,6 +88,7 @@ export function RecordItemList(props: {
{(entity) => (
<ListEntity
entity={entity}
+ hideCheckbox
timestamp={entity.updatedAt}
onClick={() => openEntity(entity)}
/>
diff --git a/apps/web/src/features/entity/composed/list-entity/narrow-inbox-layout.tsx b/apps/web/src/features/entity/composed/list-entity/narrow-inbox-layout.tsx
index dc22e35e51..a0e910493c 100644
--- a/apps/web/src/features/entity/composed/list-entity/narrow-inbox-layout.tsx
+++ b/apps/web/src/features/entity/composed/list-entity/narrow-inbox-layout.tsx
@@ -61,8 +61,13 @@ export function NarrowInboxLayout(props: LayoutProps) {
active={props.unread}
/>
<div class="relative size-(--soup-inbox-icon-diameter) shrink-0 group">
- <Show when={!props.checked}>
- <div class="absolute inset-0 grid place-items-center group-hover:opacity-0 transition-opacity">
+ <Show when={props.hideCheckbox || !props.checked}>
+ <div
+ class={cn(
+ 'absolute inset-0 grid place-items-center transition-opacity',
+ { 'group-hover:opacity-0': !props.hideCheckbox }
+ )}
+ >
<Show
when={isDirectMessage()}
fallback={
@@ -86,18 +91,20 @@ export function NarrowInboxLayout(props: LayoutProps) {
</Show>
</div>
</Show>
- {/* TODO: make multiselect work on mobile */}
- <div
- class={cn(
- 'absolute inset-0 grid place-items-center opacity-0 group-hover:opacity-100 transition-opacity',
- { 'opacity-100': props.checked }
- )}
- >
- <MultiSelectCheckbox
- checked={props.checked}
- onChecked={props.onChecked}
- />
- </div>
+ <Show when={!props.hideCheckbox}>
+ {/* TODO: make multiselect work on mobile */}
+ <div
+ class={cn(
+ 'absolute inset-0 grid place-items-center opacity-0 group-hover:opacity-100 transition-opacity',
+ { 'opacity-100': props.checked }
+ )}
+ >
+ <MultiSelectCheckbox
+ checked={props.checked}
+ onChecked={props.onChecked}
+ />
+ </div>
+ </Show>
</div>
</Entity.Slot>
diff --git a/docs/agent-guide/crm.md b/docs/agent-guide/crm.md
index f94ee35c83..12339ec6ea 100644
--- a/docs/agent-guide/crm.md
+++ b/docs/agent-guide/crm.md
@@ -84,6 +84,8 @@ the last-contacted timestamp sits at the right, and the side gutters and row
spacing match. There is no column-heading row.
Emails, Files, and Calls search the loaded row titles and supporting text and
continue loading pages when the current pages have no match.
+Emails, Files, Calls, and References rows open their items without selection
+checkboxes, including on touch devices.
A company is laid out like a project. Its split header or embedded breadcrumb
header shows inset `Overview`, `Team`, `Emails`, `Files`, `Tasks`, and `Calls`