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
soup: fix preview regression and add entity styling state for active context menu (#719)
Caleb Taylore60fab89299f
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex 6cdce341fa..613c835ca3 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -1578,6 +1578,8 @@ export function UnifiedListView(props: UnifiedListViewProps) {gotoChannelNotification(notification);}}onMouseOver={() => {+ if (preview()) return;+setViewDataStore(selectedView(),'hasUserInteractedEntity',@@ -1588,6 +1590,8 @@ export function UnifiedListView(props: UnifiedListViewProps) {}}onMouseLeave={() => {}}onFocusIn={() => {+ if (preview()) return;+setSelectedEntity(innerProps.entity);}}showLeftColumnIndicator={@@ -1603,7 +1607,11 @@ export function UnifiedListView(props: UnifiedListViewProps) {highlighted={isPanelActive() && focusedSelector(innerProps.entity.id)}- selected={focusedSelector(innerProps.entity.id)}+ selected={+ focusedSelector(innerProps.entity.id) ||+ contextAndModalState.selectedEntity?.id ===+ innerProps.entity.id+ }checked={multiSelectSelector(innerProps.entity.id)}onChecked={(next, shiftKey) => {const toggleSingle = () =>diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsxindex cae861c594..74ed4d8496 100644--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx@@ -391,6 +391,8 @@ interface EntityProps<T extends WithNotification<EntityData>>checked?: boolean;}+const [hoveredEntityId, setHoveredEntityId] = createSignal<string | null>(null);+export function EntityWithEverything(props: EntityProps<WithNotification<EntityData | WithSearch<EntityData>>>) {@@ -805,10 +807,12 @@ export function EntityWithEverything(use:draggableuse:droppabledata-checked={props.checked}- class="everything-entity relative group/entity"+ class="everything-entity relative group/entity hover:bg-hover/30"classList={{- 'bg-hover/30': props.selected && !props.checked,- 'bg-accent/5': props.checked,+ 'outline outline-accent/20 outline-offset-[-1px]':+ props.selected && !props.checked,+ '!bg-accent/5 outline outline-accent/20 outline-offset-[-1px]':+ props.checked,'bracket outline outline-accent/20 outline-offset-[-1px]':props.highlighted,}}@@ -816,6 +820,7 @@ export function EntityWithEverything(if (!didCursorMove(e)) {return;}+ setHoveredEntityId(props.entity.id);props.onMouseOver?.();}}onContextMenu={() => {@@ -979,7 +984,12 @@ export function EntityWithEverything();}}</Show>- <Show when={props.selected && props.onClickRowAction}>+ <Show+ when={+ (props.selected || hoveredEntityId() === props.entity.id) &&+ props.onClickRowAction+ }+ ><div class="absolute top-1 right-1 items-center flex @max-sm/split:hidden"><Tooltiptooltip={