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(tauri): prevent ios blank screen (#2240)
Peter Chinmana97f201291fb
diff --git a/js/app/packages/app/component/Root.tsx b/js/app/packages/app/component/Root.tsxindex a0d424a814..16a7aac51f 100644--- a/js/app/packages/app/component/Root.tsx+++ b/js/app/packages/app/component/Root.tsx@@ -23,10 +23,10 @@ import { transformShortIdInUrlPathname } from '@core/util/url';import { MaybeTauriProvider } from '@macro/tauri';import { Provider as EntityProvider } from '@macro-entity';import {+ BrowserNotificationModal,createNotificationSource,type UnifiedNotification,usePlatformNotificationState,- PlatformNotificationProvider,} from '@notifications';import { maybeHandlePlatformNotification } from '@notifications/notification-platform';import { useObserveRouting } from '@observability';@@ -451,40 +451,39 @@ export function Root() {<PosthogProvider><EntityProvider><UserContextProvider>- <PlatformNotificationProvider>- <QuerySyncProviderWithUserId />- <UserInfoSideEffects />- <ConfiguredGlobalAppStateProvider>- <ChannelsContextProvider>- <QuickAccessProvider>- <SearchProvider>- <TabAttachmentsInit />- <ReactiveFavicon />- <Title>{tabTitle()}</Title>- <MacroJump />- <Visor />- <SuspenseContextComp- fallback={<RootSuspenseFallback />}+ <BrowserNotificationModal />+ <QuerySyncProviderWithUserId />+ <UserInfoSideEffects />+ <ConfiguredGlobalAppStateProvider>+ <ChannelsContextProvider>+ <QuickAccessProvider>+ <SearchProvider>+ <TabAttachmentsInit />+ <ReactiveFavicon />+ <Title>{tabTitle()}</Title>+ <MacroJump />+ <Visor />+ <SuspenseContextComp+ fallback={<RootSuspenseFallback />}+ >+ <IsomorphicRouter+ transformUrl={transformShortIdInUrlPathname}+ root={Layout}+ rootPreload={rootPreload}+ base={ROUTER_BASE}>- <IsomorphicRouter- transformUrl={transformShortIdInUrlPathname}- root={Layout}- rootPreload={rootPreload}- base={ROUTER_BASE}- >- {{- path: '/',- component: TauriRouteListener,- children: ROUTES,- }}- </IsomorphicRouter>- </SuspenseContextComp>- <ToastRegion />- </SearchProvider>- </QuickAccessProvider>- </ChannelsContextProvider>- </ConfiguredGlobalAppStateProvider>- </PlatformNotificationProvider>+ {{+ path: '/',+ component: TauriRouteListener,+ children: ROUTES,+ }}+ </IsomorphicRouter>+ </SuspenseContextComp>+ <ToastRegion />+ </SearchProvider>+ </QuickAccessProvider>+ </ChannelsContextProvider>+ </ConfiguredGlobalAppStateProvider></UserContextProvider></EntityProvider></PosthogProvider>diff --git a/js/app/packages/notifications/components/PlatformNotificationProvider.tsx b/js/app/packages/notifications/components/PlatformNotificationProvider.tsxindex 38885134a1..46554d62be 100644--- a/js/app/packages/notifications/components/PlatformNotificationProvider.tsx+++ b/js/app/packages/notifications/components/PlatformNotificationProvider.tsx@@ -14,8 +14,6 @@ import type {PlatformNotificationData,PlatformNotificationHandle,} from '../notification-platform';-import { BrowserNotificationModal } from './BrowserNotificationModal';-type NotGranted = 'not-granted';/// the context provider value which provides an interface wherein downstream consumers can interact with@@ -226,7 +224,6 @@ export function PlatformNotificationProvider(props: {manuallyDisabled={manuallyDisabled}setManuallyDisabled={setManuallyDisabled}>- <BrowserNotificationModal />{props.children}</PlatformNotificationState></NotificationInterfaceContext.Provider>diff --git a/js/app/packages/tauri/src/TauriProvider.tsx b/js/app/packages/tauri/src/TauriProvider.tsxindex 9e507c9281..dbd2daf657 100644--- a/js/app/packages/tauri/src/TauriProvider.tsx+++ b/js/app/packages/tauri/src/TauriProvider.tsx@@ -1,4 +1,5 @@import { isTauri } from '@core/util/platform';+import { PlatformNotificationProvider } from '@notifications';import type { RouteSectionProps } from '@solidjs/router';import { type OsType, type as osType } from '@tauri-apps/plugin-os';import {@@ -84,7 +85,11 @@ export function MaybeTauriProvider(props: { children: JSX.Element }) {);}- return props.children;+ return (+ <PlatformNotificationProvider>+ {props.children}+ </PlatformNotificationProvider>+ );}/// return the value of the tauri context