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
fix: entity navigation indicator disappearing after navigation (#1829)
dev-rbe7a24dc6c1d5
diff --git a/js/app/packages/app/component/EntityNavigationIndicator.tsx b/js/app/packages/app/component/EntityNavigationIndicator.tsxindex 36e0ddc94c..6c141fbcd7 100644--- a/js/app/packages/app/component/EntityNavigationIndicator.tsx+++ b/js/app/packages/app/component/EntityNavigationIndicator.tsx@@ -1,6 +1,5 @@import { useSoup } from '@app/component/next-soup/soup-context';import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';-import { isListViewID } from '@app/constants/list-views';import { DeprecatedIconButton } from '@core/component/DeprecatedIconButton';import { TOKENS } from '@core/hotkey/tokens';import { getActiveCommandByToken, runCommand } from '@core/hotkey/utils';@@ -17,7 +16,7 @@ const EntityNavigationIndicator = () => {return (<Showwhen={- isListViewID(panel.handle.referredFrom()) &&+ panel.handle.referredFrom() === 'list-view' &&soup.data()?.length &&selectedEntity() &&panel.handle.content().type !== 'component' &&diff --git a/js/app/packages/app/component/next-soup/utils.ts b/js/app/packages/app/component/next-soup/utils.tsindex 9e565dcd2b..ff25c3b164 100644--- a/js/app/packages/app/component/next-soup/utils.ts+++ b/js/app/packages/app/component/next-soup/utils.ts@@ -27,7 +27,6 @@ import {} from '@queries/soup/cache';import { match } from 'ts-pattern';import { isAfter } from 'date-fns';-import { isListViewID } from '@app/constants/list-views';const mergeSearchEntities = <T extends EntityData>(first: WithSearch<T>,@@ -296,15 +295,10 @@ export const openEntityInSplitFromUnifiedList = async (}: undefined;- const activeSplitContentID = splitManager.activeSplit()?.content().id;-splitManager.openWithSplit({ ...content, params },{- referredFrom:- activeSplitContentID && isListViewID(activeSplitContentID)- ? activeSplitContentID- : undefined,+ referredFrom: 'list-view',activate: true,preferNewSplit: openInNewSplit,handle: splitHandle,diff --git a/js/app/packages/app/component/split-layout/layoutManager.ts b/js/app/packages/app/component/split-layout/layoutManager.tsindex 932da6ad72..d3c3fd3cb0 100644--- a/js/app/packages/app/component/split-layout/layoutManager.ts+++ b/js/app/packages/app/component/split-layout/layoutManager.ts@@ -25,7 +25,7 @@ import {resolveComponent,} from './componentRegistry';import { createHistory, type History } from './history';-import { LIST_VIEW_ID, type ListView } from '@app/constants/list-views';+import { LIST_VIEW_ID } from '@app/constants/list-views';const ENABLE_DEFAULT_ALWAYS_IN_HISTORY = false;@@ -97,7 +97,7 @@ export type PopoverSplitHandle = {};export type ReferredFrom =- | ListView+ | 'list-view'| 'kommand-menu'| 'mention'| 'attachment'