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
unified-list: fix multiple entity rows showing same hover state (#1012)
Caleb Taylord4314f073b37
diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsxindex 000b911583..d62d0c8290 100644--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx@@ -480,11 +480,14 @@ interface EntityProps<T extends WithNotification<EntityData>>searchActive?: boolean;}-const [hoveredEntityId, setHoveredEntityId] = createSignal<string | null>(null);+const [hoveredComponentId, setHoveredComponentId] = createSignal<Symbol>(+ Symbol()+);export function EntityWithEverything(props: EntityProps<WithNotification<EntityData | WithSearch<EntityData>>>) {+ const id = Symbol();const [actionButtonRef, setActionButtonRef] =createSignal<HTMLButtonElement | null>(null);const [entityDivRef, setEntityDivRef] = createSignal<HTMLDivElement | null>(@@ -915,7 +918,7 @@ export function EntityWithEverything(onMouseMove={() => {if (isTouchDevice()) return;- setHoveredEntityId(props.entity.id);+ setHoveredComponentId(id);props.onMouseOver?.();}}onContextMenu={() => {@@ -1106,8 +1109,7 @@ export function EntityWithEverything(</Show><Showwhen={- (props.selected.active ||- hoveredEntityId() === props.entity.id) &&+ (props.selected.active || hoveredComponentId() === id) &&props.onClickRowAction}>