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(sidebar): apply inbox account selection on the first click (#4111)
gbirman0ef4a694875f
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsxindex 6b206e30cf..d16647e3aa 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx@@ -253,8 +253,12 @@ export const SoupViewContextProvider: FlowComponent<);// Expose the mail view's inbox filter to consumers outside the split tree- // (the sidebar's nested account rows read and set it by split id).- {+ // (the sidebar's nested account rows read and set it by split id). The+ // provider outlives content swaps within a split, so track the live content+ // reactively and (un)register as the mail list becomes / stops being the+ // shown view — registering also flushes any filter the sidebar queued while+ // navigating here, so a sidebar inbox selection takes on the first click.+ createEffect(() => {const content = panel.handle.content();if (content.type === 'component' && content.id === 'mail') {const dispose = registerInboxFilterSplit(panel.handle.id, {@@ -263,7 +267,7 @@ export const SoupViewContextProvider: FlowComponent<});onCleanup(dispose);}- }+ });const [activeTab, setActiveTab] = useEntryState<string | undefined>('soup.tab',{ default: undefined }