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(home): retire the Assistant home and mount Home at /home (#7044)
teocaa3396cf779
diff --git a/apps/web/src/components/app/GlobalHotkeys.tsx b/apps/web/src/components/app/GlobalHotkeys.tsxindex 239727af09..3ff905d376 100644--- a/apps/web/src/components/app/GlobalHotkeys.tsx+++ b/apps/web/src/components/app/GlobalHotkeys.tsx@@ -289,7 +289,7 @@ export default function GlobalShortcuts() {const createNewSplit = () => {analytics.track('split_created', { from: 'global_hotkey' });openWithSplit(- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{referredFrom: 'hotkey',allowDuplicate: true,diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsxindex cf590c7c0e..d035fdb650 100644--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx@@ -181,16 +181,16 @@ const markdownDocumentsQuery = buildDocumentTypeQuery(['doc-markdown']);const SIDEBAR_LINKS = [{- id: 'inbox',+ id: 'home',get label() {return isTouchDevice() ? 'Notifications' : 'Home';},- href: LIST_VIEW_PATHS.inbox,+ href: LIST_VIEW_PATHS.home,get icon() {return isTouchDevice() ? BellIcon : HomeIcon;},hotkey: ['h', 'i'],- hotkeyToken: TOKENS.sidebar.goTo.inbox,+ hotkeyToken: TOKENS.sidebar.goTo.home,},{id: 'search',@@ -1022,14 +1022,6 @@ const COMPANIES_LINK: SidebarItem = {hotkeyToken: TOKENS.sidebar.goTo.companies,};-const DASHBOARD_LINK: SidebarItem = {- id: 'home',- label: 'Assistant',- href: '/home',- icon: HomeIcon,- hotkeyToken: TOKENS.sidebar.goTo.home,-};-const GETTING_STARTED_LINK: SidebarItem = {id: 'getting-started',label: 'Getting Started',@@ -1060,9 +1052,9 @@ const RECENT_LINK: SidebarItem = {};/**- * Assemble the ordered sidebar link list: the static links plus Home, Getting- * started, and the flag-gated Activity, Calendar, Calls, and CRM entries in- * their correct positions.+ * Assemble the ordered sidebar link list: the static links plus Getting+ * started and the flag-gated Recent, Activity, Calendar, Calls, and CRM+ * entries in their correct positions.* Shared by the rendered sidebar (`AppSidebar.visibleLinks`) and the* always-mounted `GoToHotkeys` registrar so their link sets can't drift. Call* from a reactive context — it reads `ENABLE_CALLS` / `isFeatureEnabled(enableCrm)`.@@ -1078,27 +1070,26 @@ const buildSidebarLinks = (showActivity: boolean,showRecent: boolean): SidebarItem[] => {- let links: SidebarItem[] = [- DASHBOARD_LINK,- ...(showGettingStarted ? [GETTING_STARTED_LINK] : []),- ...SIDEBAR_LINKS.filter((link) => showCalendar || link.id !== 'calendar'),- ];+ let links: SidebarItem[] = SIDEBAR_LINKS.filter(+ (link) => showCalendar || link.id !== 'calendar'+ );- if (showRecent) {- // Directly below Inbox; Activity anchors after it.- const idx = links.findIndex((link) => link.id === 'inbox');- links = [...links.slice(0, idx + 1), RECENT_LINK, ...links.slice(idx + 1)];- }+ const insertAfter = (anchorId: string, link: SidebarItem) => {+ const idx = links.findIndex((l) => l.id === anchorId);+ links = [...links.slice(0, idx + 1), link, ...links.slice(idx + 1)];+ };- if (showActivity) {- const anchorId = showRecent ? 'recent' : 'inbox';- const idx = links.findIndex((link) => link.id === anchorId);- links = [- ...links.slice(0, idx + 1),- ACTIVITY_LINK,- ...links.slice(idx + 1),- ];+ // Home leads; Getting started, Recent, and Activity follow it in that order.+ let anchorId = 'home';+ if (showGettingStarted) {+ insertAfter(anchorId, GETTING_STARTED_LINK);+ anchorId = 'getting-started';+ }+ if (showRecent) {+ insertAfter(anchorId, RECENT_LINK);+ anchorId = 'recent';}+ if (showActivity) insertAfter(anchorId, ACTIVITY_LINK);if (ENABLE_CALLS) {const idx = links.findIndex((l) => l.id === 'channels');@@ -1358,7 +1349,7 @@ export const AppSidebar = (props: AppSidebarProps) => {// lives in the collapsible Workspace section. `findLink` drops ids that// `buildSidebarLinks` gated out, so flag-gated rows need no filter here.const topLinks = createMemo(() =>- ['home', 'getting-started', 'inbox', 'recent', 'activity']+ ['home', 'getting-started', 'recent', 'activity'].filter((id) => id !== 'getting-started' || !gettingStartedVisibility.hidden())diff --git a/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx b/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsxindex fb0d9cc143..a1cfbae387 100644--- a/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx+++ b/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx@@ -325,7 +325,7 @@ describe('Mobile page action row', () => {expect(mocks.createMenu).toHaveBeenCalledWith(true);});it('opens Home’s quick create actions in the requested order and restores focus on dismissal', async () => {- mocks.view = 'inbox';+ mocks.view = 'home';render(() => <MobilePageActionRow />);const trigger = screen.getByRole('button', { name: 'New' });expect(screen.queryByRole('button', { name: 'New message' })).toBeNull();@@ -346,7 +346,7 @@ describe('Mobile page action row', () => {it.each(['Email', 'Message', 'Document', 'Event', 'Task', 'More'])('hands off Home’s %s action after closing the quick menu',async (label) => {- mocks.view = 'inbox';+ mocks.view = 'home';render(() => <MobilePageActionRow />);fireEvent.click(screen.getByRole('button', { name: 'New' }));const menu = await screen.findByRole('dialog', { name: 'Create new' });diff --git a/apps/web/src/components/app/mobile/MobilePageCreateButton.test.tsx b/apps/web/src/components/app/mobile/MobilePageCreateButton.test.tsxindex df6e3d156c..ec83a697d6 100644--- a/apps/web/src/components/app/mobile/MobilePageCreateButton.test.tsx+++ b/apps/web/src/components/app/mobile/MobilePageCreateButton.test.tsx@@ -55,7 +55,7 @@ afterEach(() => {vi.unstubAllGlobals();});-function setup(view: MobileNavViewId = 'inbox') {+function setup(view: MobileNavViewId = 'home') {const [calendar, setCalendar] = createSignal(false);const [blocks, setBlocks] = createSignal<CreatableBlock[]>([]);sources.view.mockReturnValue(view);diff --git a/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx b/apps/web/src/components/app/mobile/MobilePageCreateButton.tsxindex edf6ae1134..e144bba898 100644--- a/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx+++ b/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx@@ -71,7 +71,7 @@ export function MobilePageCreateButton() {return (<Show when={foregroundView() !== 'agents' && !virtualKeyboardVisible()}><Show- when={foregroundView() === 'inbox'}+ when={foregroundView() === 'home'}fallback={<MobileDockIsland class="shrink-0"><buttondiff --git a/apps/web/src/components/app/mobile/mobile-dock-views.ts b/apps/web/src/components/app/mobile/mobile-dock-views.tsindex fccb2a5518..c601e204c0 100644--- a/apps/web/src/components/app/mobile/mobile-dock-views.ts+++ b/apps/web/src/components/app/mobile/mobile-dock-views.ts@@ -29,7 +29,7 @@ export type MobileDockView = {*/const MOBILE_DOCK_VIEWS: readonly MobileDockView[] = [{- id: 'inbox',+ id: 'home',label: 'Notifications',icon: BellIcon,iconActive: BellFillIcon,diff --git a/apps/web/src/components/app/mobile/mobile-nav-views.ts b/apps/web/src/components/app/mobile/mobile-nav-views.tsindex 055bd9a8a9..3ff346df77 100644--- a/apps/web/src/components/app/mobile/mobile-nav-views.ts+++ b/apps/web/src/components/app/mobile/mobile-nav-views.ts@@ -6,7 +6,7 @@*/export const MOBILE_NAV_VIEW_IDS = ['search',- 'inbox',+ 'home','calendar','mail','channels',diff --git a/apps/web/src/components/app/mobile/mobile-page-create-action.ts b/apps/web/src/components/app/mobile/mobile-page-create-action.tsindex 2a516d24e4..a35271ee2e 100644--- a/apps/web/src/components/app/mobile/mobile-page-create-action.ts+++ b/apps/web/src/components/app/mobile/mobile-page-create-action.ts@@ -4,7 +4,7 @@ import type { MobileNavViewId } from './mobile-nav-views';// Tokens identify actions even when labels change or entries share a block type.const PAGE_CREATE_TOKENS: Partial<Record<MobileNavViewId, HotkeyToken>> = {- inbox: TOKENS.create.message,+ home: TOKENS.create.message,mail: TOKENS.create.email,channels: TOKENS.create.message,documents: TOKENS.create.note,diff --git a/apps/web/src/components/app/sidebar-next/nav-items.ts b/apps/web/src/components/app/sidebar-next/nav-items.tsindex fba71e5d1c..341756e4ba 100644--- a/apps/web/src/components/app/sidebar-next/nav-items.ts+++ b/apps/web/src/components/app/sidebar-next/nav-items.ts@@ -46,13 +46,13 @@ export type SidebarNextNavItem = SidebarItem & {*/const SIDEBAR_NEXT_NAV_ITEMS = [{- id: 'inbox',+ id: 'home',label: 'Home',- href: LIST_VIEW_PATHS.inbox,+ href: LIST_VIEW_PATHS.home,icon: HouseIcon,iconActive: HouseFillIcon,hotkey: 'h',- hotkeyToken: TOKENS.sidebar.goTo.inbox,+ hotkeyToken: TOKENS.sidebar.goTo.home,},{id: 'documents',diff --git a/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.test.ts b/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.test.tsindex ee9d7c4e8b..3d33781e66 100644--- a/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.test.ts+++ b/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.test.ts@@ -6,7 +6,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest';import { useSidebarUnread } from './use-sidebar-unread';const mocks = vi.hoisted(() => ({- inbox: vi.fn(),+ home: vi.fn(),email: vi.fn(),notifications: vi.fn(),graphqlFlag: vi.fn(),@@ -26,8 +26,8 @@ vi.mock('@queries/channel/unread-presence', () => ({vi.mock('@app/features/email-view/queries/email-query', () => ({buildEmailQuery: () => ({ params: {}, body: {} }),}));-vi.mock('@app/features/inbox-view/queries/use-inbox-query', () => ({- useInboxEntitiesQuery: mocks.inbox,+vi.mock('@app/features/home/queries/use-home-query', () => ({+ useHomeEntitiesQuery: mocks.home,}));vi.mock('@queries/soup/items', () => ({useSoupAstItemsQuery: mocks.email,@@ -124,7 +124,7 @@ function setup(graphql = false) {mocks.hasUnreadEntity.mockImplementation((items: EmailEntity[]) =>items.some((item) => !item.done && !item.isRead));- mocks.inbox.mockReturnValue({+ mocks.home.mockReturnValue({query,hasUnreadEntity: mocks.hasUnreadEntity,transformEntities: mocks.transformEntities,@@ -146,12 +146,12 @@ function setup(graphql = false) {describe('sidebar unread presence', () => {it('does not read pending resources or badge unrelated navigation', () => {const { unread } = setup();- for (const id of ['inbox', 'mail', 'channels', 'documents', 'agents']) {+ for (const id of ['home', 'mail', 'channels', 'documents', 'agents']) {expect(unread(id)).toBe(false);}expect(mocks.hasUnreadEntity).not.toHaveBeenCalled();expect(mocks.transformEntities).not.toHaveBeenCalled();- expect(mocks.inbox).toHaveBeenCalledWith({+ expect(mocks.home).toHaveBeenCalledWith({tab: 'signal',facets: { read: ['unread'] },});@@ -161,17 +161,17 @@ describe('sidebar unread presence', () => {const { unread, setLoading, setEmails } = setup();setLoading(false);setEmails([unreadEmail]);- expect(unread('inbox')).toBe(true);+ expect(unread('home')).toBe(true);expect(unread('mail')).toBe(true);expect(mocks.hasUnreadEntity).toHaveBeenLastCalledWith([unreadEmail]);expect(mocks.transformEntities).not.toHaveBeenCalled();setEmails([{ ...unreadEmail, isRead: true }]);- expect(unread('inbox')).toBe(false);+ expect(unread('home')).toBe(false);expect(unread('mail')).toBe(false);setEmails([unreadEmail]);expect(unread('mail')).toBe(true);setEmails([{ ...unreadEmail, done: true }]);- expect(unread('inbox')).toBe(false);+ expect(unread('home')).toBe(false);expect(unread('mail')).toBe(false);});diff --git a/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.ts b/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.tsindex e11fed2cde..b63eee203e 100644--- a/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.ts+++ b/apps/web/src/components/app/sidebar-next/queries/use-sidebar-unread.ts@@ -1,6 +1,6 @@import { buildEmailQuery } from '@app/features/email-view/queries/email-query';-import { soupItemMatchesInboxTab } from '@app/features/inbox-view/queries/inbox-item-filter';-import { useInboxEntitiesQuery } from '@app/features/inbox-view/queries/use-inbox-query';+import { soupItemMatchesHomeTab } from '@app/features/home/queries/home-item-filter';+import { useHomeEntitiesQuery } from '@app/features/home/queries/use-home-query';import {compileToAst,defineQueryFilters,@@ -36,7 +36,7 @@ export function useSidebarUnread() {}),() => graphqlFlag().enabled);- const inbox = useInboxEntitiesQuery({+ const home = useHomeEntitiesQuery({tab: 'signal',facets: { read: ['unread'] },});@@ -49,15 +49,15 @@ export function useSidebarUnread() {facetContext: EMPTY_TAG_FACET_CONTEXT,}),() => ({- meta: { insertFilter: (item) => soupItemMatchesInboxTab(item, 'signal') },+ meta: { insertFilter: (item) => soupItemMatchesHomeTab(item, 'signal') },}));// Guard resource reads so loading a badge cannot suspend the app shell.// Re-check cached rows: optimistic read/done changes can leave them in a page.- const inboxUnread = createMemo(() => {- if (inbox.query.isLoading) return false;- return inbox.hasUnreadEntity(inbox.query.data?.entities ?? []);+ const homeUnread = createMemo(() => {+ if (home.query.isLoading) return false;+ return home.hasUnreadEntity(home.query.data?.entities ?? []);});const emailUnread = createMemo(() => {if (email.isLoading) return false;@@ -88,7 +88,7 @@ export function useSidebarUnread() {});return (id: string): boolean => {- if (id === 'inbox') return inboxUnread();+ if (id === 'home') return homeUnread();if (id === 'mail') return emailUnread();if (id === 'channels') return channelsUnread();return false;diff --git a/apps/web/src/components/app/split-layout/SplitButtons.tsx b/apps/web/src/components/app/split-layout/SplitButtons.tsxindex 2bf34d9b28..c1fbe4fd11 100644--- a/apps/web/src/components/app/split-layout/SplitButtons.tsx+++ b/apps/web/src/components/app/split-layout/SplitButtons.tsx@@ -52,7 +52,7 @@ export function SplitCreateButton() {context.manager.createNewSplit({content: {type: 'component',- id: LIST_VIEW_ID.inbox,+ id: LIST_VIEW_ID.home,},referredFrom: 'dock',});diff --git a/apps/web/src/components/app/split-layout/componentRegistry.tsx b/apps/web/src/components/app/split-layout/componentRegistry.tsxindex edc9bc8f44..59da755f38 100644--- a/apps/web/src/components/app/split-layout/componentRegistry.tsx+++ b/apps/web/src/components/app/split-layout/componentRegistry.tsx@@ -12,7 +12,6 @@ import { EmailCompose } from '@app/features/email-compose/email-compose';import { MailRouteView } from '@app/features/email-view/route';import { GettingStartedRouteView } from '@app/features/getting-started/route';import { HomeRouteView } from '@app/features/home/route';-import { InboxRouteView } from '@app/features/inbox-view/route';import {CallsRouteView,FoldersRouteView,@@ -140,18 +139,17 @@ export function resolveComponent(}registerComponent('unified-list', () => (- <RedirectSplit to={{ type: 'component', id: 'inbox' }} />+ <RedirectSplit to={{ type: 'component', id: 'home' }} />));// Compatibility factories for restored content and hosts outside a route outlet.// App views themselves are composed by the application route layer.-registerComponent('home', () => <HomeRouteView />);-registerComponent('getting-started', () => <GettingStartedRouteView />);registerComponent(- 'inbox',- () => <InboxRouteView />,+ 'home',+ () => <HomeRouteView />,() => composableLayout(true));+registerComponent('getting-started', () => <GettingStartedRouteView />);registerComponent('recent', () => <RecentRouteView />);registerComponent('activity', () => <ActivityRouteView />);registerComponent('reminders', () => <RemindersRouteView />);@@ -394,7 +392,7 @@ if (import.meta.env.DEV) {return (<Showwhen={enabled()}- fallback={<RedirectSplit to={{ type: 'component', id: 'inbox' }} />}+ fallback={<RedirectSplit to={{ type: 'component', id: 'home' }} />}><Demo /></Show>diff --git a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx b/apps/web/src/components/app/split-layout/components/SplitHeader.tsxindex e12d2efa37..c18211f2fe 100644--- a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx+++ b/apps/web/src/components/app/split-layout/components/SplitHeader.tsx@@ -298,7 +298,7 @@ function SoupNavigationButtons() {const navigationReferredFrom = createMemo(() => {const referredFrom = context.handle.referredFrom();- if (referredFrom !== 'inbox' && referredFrom !== 'mail') {+ if (referredFrom !== 'home' && referredFrom !== 'mail') {return;}@@ -312,7 +312,7 @@ function SoupNavigationButtons() {const referredFrom = navigationReferredFrom();const isNavigableListView =- referredFrom === 'inbox' || referredFrom === 'mail';+ referredFrom === 'home' || referredFrom === 'mail';return isNavigableListView && rows().length > 0;});@@ -400,7 +400,7 @@ function SplitHeaderContextMenu(props: ParentProps) {const newSplitContent = () => ({type: 'component' as const,- id: LIST_VIEW_ID.inbox,+ id: LIST_VIEW_ID.home,});const duplicateContent = (): SplitContent => ({ ...panel.handle.content() });diff --git a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx b/apps/web/src/components/app/split-layout/components/SplitPanel.tsxindex 72e64fc063..111f1b80a9 100644--- a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx+++ b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx@@ -91,7 +91,7 @@ export function SplitPanel(props: SplitPanelProps) {);if (wentBack) return;props.handle.replace({- next: { type: 'component', id: LIST_VIEW_ID.inbox },+ next: { type: 'component', id: LIST_VIEW_ID.home },referredFrom: 'hotkey',});},diff --git a/apps/web/src/components/app/split-layout/layoutManager.ts b/apps/web/src/components/app/split-layout/layoutManager.tsindex fdd6e14d37..e39a1e4da3 100644--- a/apps/web/src/components/app/split-layout/layoutManager.ts+++ b/apps/web/src/components/app/split-layout/layoutManager.ts@@ -718,7 +718,7 @@ export function createSplitLayout(const DEFAULT_SPLIT_CONTENT = defaultSplitContent ?? {type: 'component',- id: LIST_VIEW_ID.inbox,+ id: LIST_VIEW_ID.home,};function dispatchEvent(diff --git a/apps/web/src/components/app/split-layout/layoutUtils.ts b/apps/web/src/components/app/split-layout/layoutUtils.tsindex dfcddbd5c7..9a53fc1a4a 100644--- a/apps/web/src/components/app/split-layout/layoutUtils.ts+++ b/apps/web/src/components/app/split-layout/layoutUtils.ts@@ -90,7 +90,7 @@ export function closeSplitOrReturnToList()return;handle.replace({- next: { type: 'component', id: LIST_VIEW_ID.inbox },+ next: { type: 'component', id: LIST_VIEW_ID.home },mergeHistory: true,});}diff --git a/apps/web/src/components/app/split-layout/split-router/app-middleware.ts b/apps/web/src/components/app/split-layout/split-router/app-middleware.tsindex 4db3d853fd..400b9afe79 100644--- a/apps/web/src/components/app/split-layout/split-router/app-middleware.ts+++ b/apps/web/src/components/app/split-layout/split-router/app-middleware.ts@@ -131,18 +131,18 @@ function migrateLegacySearch({if (!externalSearch) return;const leafId = to.location.route.matches.at(-1)?.id;- const inboxChannel =- leafId === 'inbox-channel' ||- (leafId === 'inbox-preview' &&+ const homeChannel =+ leafId === 'home-channel' ||+ (leafId === 'home-preview' &&routeParams(to.location.route).blockType === 'channel');- const inboxDocumentType =- leafId === 'inbox-document'+ const homeDocumentType =+ leafId === 'home-document'? routeParams(to.location.route).documentType- : leafId === 'inbox-preview'+ : leafId === 'home-preview'? routeParams(to.location.route).blockType: undefined;const commentKey = (() => {- switch (inboxDocumentType) {+ switch (homeDocumentType) {case 'md':case 'task':case 'skill':@@ -153,7 +153,7 @@ function migrateLegacySearch({return PDF_URL_PARAMS.annotationId;}})();- const inboxDocumentMapping = commentKey+ const homeDocumentMapping = commentKey? {namespace: driveSearch.namespace,fields: [[commentKey, 'commentId']] as const,@@ -166,7 +166,7 @@ function migrateLegacySearch({fields: [[EMAIL_URL_PARAMS.messageId, 'messageId']] as const,})).when(- (id) => id === 'channels-channel' || inboxChannel,+ (id) => id === 'channels-channel' || homeChannel,() => ({namespace: channelsSearch.namespace,fields: [@@ -176,8 +176,8 @@ function migrateLegacySearch({})).when(- (id) => id === 'inbox-document' || id === 'inbox-preview',- () => inboxDocumentMapping+ (id) => id === 'home-document' || id === 'home-preview',+ () => homeDocumentMapping).with(CALENDAR_ROUTE_ID, () => ({namespace: CALENDAR_SEARCH_NAMESPACE,diff --git a/apps/web/src/components/app/split-layout/split-router/app-routes.ts b/apps/web/src/components/app/split-layout/split-router/app-routes.tsindex 747994e9fd..37324469e1 100644--- a/apps/web/src/components/app/split-layout/split-router/app-routes.ts+++ b/apps/web/src/components/app/split-layout/split-router/app-routes.ts@@ -14,8 +14,7 @@ import { companiesRoute } from '@app/features/companies/route';import { driveSplitRoute } from '@app/features/drive-view/route';import { emailSplitRoute } from '@app/features/email-view/route';import { gettingStartedRoute } from '@app/features/getting-started/route';-import { homeRoute } from '@app/features/home/route';-import { inboxSplitRoute } from '@app/features/inbox-view/route';+import { homeSplitRoute } from '@app/features/home/route';import {callsRoute,foldersRoute,@@ -37,9 +36,8 @@ export const appSplitRoutes = defineRoutes({agentsRoute,codersRoute,agentChatsRoute,- homeRoute,+ homeSplitRoute,gettingStartedRoute,- inboxSplitRoute,recentRoute,activityRoute,remindersRoute,@@ -63,6 +61,6 @@ export const appSplitRoutes = defineRoutes({globalSearch: ['referral_code', DIFF_SEARCH_PARAM],unmatchedPathHandlers: [handleLegacySplitPath],defaultEntry: () => ({- location: { route: { matches: [{ id: 'view-inbox', params: {} }] } },+ location: { route: { matches: [{ id: 'view-home', params: {} }] } },}),});diff --git a/apps/web/src/components/app/split-layout/split-router/legacy-route.ts b/apps/web/src/components/app/split-layout/split-router/legacy-route.tsindex 587dff1b85..6058dbad47 100644--- a/apps/web/src/components/app/split-layout/split-router/legacy-route.ts+++ b/apps/web/src/components/app/split-layout/split-router/legacy-route.ts@@ -58,10 +58,10 @@ export function decodeLegacyPair(}if (type === 'component') {- // Retired Preview Pair placeholders must never reach the view registry.+ // Preview Pair placeholders must never reach the view registry.return {type: 'component',- id: id === 'preview-empty' || id === 'non-member-channel' ? 'inbox' : id,+ id: id === 'preview-empty' || id === 'non-member-channel' ? 'home' : id,};}diff --git a/apps/web/src/components/app/split-layout/tests/activity-registration.test.tsx b/apps/web/src/components/app/split-layout/tests/activity-registration.test.tsxindex c702526c74..7bac41fba7 100644--- a/apps/web/src/components/app/split-layout/tests/activity-registration.test.tsx+++ b/apps/web/src/components/app/split-layout/tests/activity-registration.test.tsx@@ -54,14 +54,13 @@ vi.mock('@app/features/activity/open-entity-in-split', () => ({openEntityInSplit: vi.fn(),}));-vi.mock(- '@app/features/inbox-view/components/InboxEntityDetailRouteView',- () => ({ InboxEntityDetailRouteView: () => null })-);+vi.mock('@app/features/home/components/HomeEntityDetailRouteView', () => ({+ HomeEntityDetailRouteView: () => null,+}));// Quarantine unrelated registered views and their module-load side effects.// Route/preview codecs otherwise pull the full block-definition graph into this test.-vi.mock('@app/features/inbox-view/inbox-route', () => ({}));+vi.mock('@app/features/home/home-route', () => ({}));vi.mock('@app/features/agents-view/views/AgentsView', () => ({}));vi.mock('@app/features/channels-view/channels-view', () => ({ChannelDetailRouteView: () => null,@@ -76,10 +75,9 @@ vi.mock('@app/features/email-view/components/EmailDetailView', () => ({EmailDetailRouteView: () => null,}));vi.mock('@app/features/getting-started', () => ({}));-vi.mock('@app/features/home', () => ({}));-vi.mock('@app/features/inbox-view/inbox-view', () => ({- InboxDetailRouteView: () => null,- InboxCalendarRouteView: () => null,+vi.mock('@app/features/home/home-view', () => ({+ HomeDetailRouteView: () => null,+ HomeCalendarRouteView: () => null,}));vi.mock('@app/features/next-soup/filters/filter-store', () => ({}));vi.mock('@app/features/next-soup/filters/filter-store/query-store', () => ({}));@@ -128,7 +126,7 @@ describe('activity registration', () => {renderActivity();expect(state.replace).toHaveBeenCalledExactlyOnceWith({- next: { type: 'component', id: 'inbox' },+ next: { type: 'component', id: 'home' },});expect(state.mountActivity).not.toHaveBeenCalled();expect(state.pageView).not.toHaveBeenCalled();@@ -156,7 +154,7 @@ describe('activity registration', () => {expect(state.pageView).toHaveBeenCalledExactlyOnceWith('activity');} else {expect(state.replace).toHaveBeenCalledExactlyOnceWith({- next: { type: 'component', id: 'inbox' },+ next: { type: 'component', id: 'home' },});expect(state.mountActivity).not.toHaveBeenCalled();expect(state.pageView).not.toHaveBeenCalled();diff --git a/apps/web/src/components/app/split-layout/tests/app-route-isolation.test.ts b/apps/web/src/components/app/split-layout/tests/app-route-isolation.test.tsindex 1c16f51e9b..c3b232bece 100644--- a/apps/web/src/components/app/split-layout/tests/app-route-isolation.test.ts+++ b/apps/web/src/components/app/split-layout/tests/app-route-isolation.test.ts@@ -29,9 +29,6 @@ vi.mock('@app/features/agents-view/views/AgentsView', () => {vi.mock('@app/features/getting-started', () => {throw new Error('Route declarations must not eagerly load onboarding views');});-vi.mock('@app/features/home', () => {- throw new Error('Route declarations must not eagerly load home views');-});vi.mock('@app/features/next-soup/soup-view/soup-view', () => {throw new Error('Route declarations must not eagerly load Soup views');});diff --git a/apps/web/src/components/app/split-layout/tests/layoutManager.test.ts b/apps/web/src/components/app/split-layout/tests/layoutManager.test.tsindex a0272d6b1d..624a5f9f5f 100644--- a/apps/web/src/components/app/split-layout/tests/layoutManager.test.ts+++ b/apps/web/src/components/app/split-layout/tests/layoutManager.test.ts@@ -106,7 +106,7 @@ describe('layoutManager', () => {(withBackground) => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;const list: SplitContent = {@@ -133,7 +133,7 @@ describe('layoutManager', () => {expect(split.content()).toEqual(list);expect(split.canGoForward()).toBe(true);split.goBack();- expect(split.content()).toEqual({ type: 'component', id: 'inbox' });+ expect(split.content()).toEqual({ type: 'component', id: 'home' });dispose();});}@@ -146,7 +146,7 @@ describe('layoutManager', () => {]);const split = manager.getSplit(manager.splits()[0].id)!;closeSplitOrReturnToList(manager, split);- expect(split.content()).toEqual({ type: 'component', id: 'inbox' });+ expect(split.content()).toEqual({ type: 'component', id: 'home' });expect(split.canGoBack()).toBe(false);dispose();});@@ -189,7 +189,7 @@ describe('layoutManager', () => {const content = { type: 'email', id: 'already-open' } as const;const manager = createSplitLayout(createMockOrchestrator(), [content,- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const [existing, other] = manager.splits();manager.activateSplit(other.id);@@ -231,7 +231,7 @@ describe('layoutManager', () => {const orchestrator = createMockOrchestrator();const manager = createSplitLayout(orchestrator, [initial,- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const [existing, other] = manager.splits();const mount = existing.mount;@@ -271,7 +271,7 @@ describe('layoutManager', () => {expect(manager.splits()).toHaveLength(2);expect(existing.mount).toBe(mount);expect(existing.content).toEqual(initial);- expect(other.content).toEqual({ type: 'component', id: 'inbox' });+ expect(other.content).toEqual({ type: 'component', id: 'home' });expect(toast.alert).not.toHaveBeenCalled();manager.openWithSplit(target);@@ -286,7 +286,7 @@ describe('layoutManager', () => {createRoot((dispose) => {const orchestrator = createMockOrchestrator();const manager = createSplitLayout(orchestrator, [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const release = manager.registerOpenViews(() => [{@@ -352,7 +352,7 @@ describe('layoutManager', () => {const orchestrator = createMockOrchestrator();const manager = createSplitLayout(orchestrator, [{ type: 'component', id: 'channels' },- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const [chat, inbox] = manager.splits();manager.activateSplit(inbox.id);@@ -403,7 +403,7 @@ describe('layoutManager', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [{ type: 'channel', id: 'channel' },- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const [channel, inbox] = manager.splits();manager.activateSplit(inbox.id);@@ -425,7 +425,7 @@ describe('layoutManager', () => {const content = { type: 'component', id: 'channels' } as const;const manager = createSplitLayout(createMockOrchestrator(), [content,- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const [channels, inbox] = manager.splits();manager.activateSplit(inbox.id);@@ -455,7 +455,7 @@ describe('layoutManager', () => {it('distinguishes opening new content from reusing content in the source split', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;const content = { type: 'email', id: 'selected' } as const;@@ -479,7 +479,7 @@ describe('layoutManager', () => {it('restoring occupied content does not focus or notify its owner', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const source = manager.splits()[0];const content = { type: 'email', id: 'occupied' } as const;@@ -634,7 +634,7 @@ describe('layoutManager', () => {it('navigates and closes adjacent list and detail splits independently', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'md', id: 'detail' },]);const [list, detail] = manager.splits();@@ -650,7 +650,7 @@ describe('layoutManager', () => {expect(manager.splits()).toHaveLength(2);listHandle.goBack();- expect(listHandle.content()).toEqual({ type: 'component', id: 'inbox' });+ expect(listHandle.content()).toEqual({ type: 'component', id: 'home' });expect(detailHandle.content()).toEqual({ type: 'md', id: 'detail' });listHandle.close();expect(manager.splits().map((split) => split.id)).toEqual([detail.id]);@@ -661,7 +661,7 @@ describe('layoutManager', () => {it('navigates and closes adjacent list and detail splits independently', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'md', id: 'detail' },]);const [list, detail] = manager.splits();@@ -677,7 +677,7 @@ describe('layoutManager', () => {expect(manager.splits()).toHaveLength(2);listHandle.goBack();- expect(listHandle.content()).toEqual({ type: 'component', id: 'inbox' });+ expect(listHandle.content()).toEqual({ type: 'component', id: 'home' });expect(detailHandle.content()).toEqual({ type: 'md', id: 'detail' });listHandle.close();expect(manager.splits().map((split) => split.id)).toEqual([detail.id]);@@ -689,7 +689,7 @@ describe('layoutManager', () => {it('swaps adjacent splits and delegates the panel reorder to Resize', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'component', id: 'calendar' },]);const [first, second] = manager.splits();@@ -716,7 +716,7 @@ describe('layoutManager', () => {it('uses the retained split id for history ownership after reconciliation', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;const content = { type: 'email', id: 'same-entity' } as const;@@ -734,11 +734,11 @@ describe('layoutManager', () => {it('keeps history availability configured after reset', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;handle.reset();- expect(handle.history()).toEqual([{ type: 'component', id: 'inbox' }]);+ expect(handle.history()).toEqual([{ type: 'component', id: 'home' }]);expect(handle.canGoBack()).toBe(false);handle.replace({ next: { type: 'email', id: 'occupied' } });handle.replace({ next: { type: 'email', id: 'current' } });@@ -747,7 +747,7 @@ describe('layoutManager', () => {]);expect(handle.canGoBack()).toBe(true);handle.goBack();- expect(handle.content().id).toBe('inbox');+ expect(handle.content().id).toBe('home');handle.goForward();expect(handle.content().id).toBe('current');release();@@ -842,7 +842,7 @@ describe('layoutManager', () => {) {return createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const routes = createRoutesManifest(appSplitRoutes);const location = createMemorySplitRouterLocation(url);@@ -1002,7 +1002,7 @@ describe('layoutManager', () => {});it('uses the Reviews PR route for existing split navigation', async () => {- const { manager, location, router, dispose } = ingressRouter('/inbox');+ const { manager, location, router, dispose } = ingressRouter('/home');await router.settled();manager.getSplit(manager.splits()[0].id)!.replace({next: { type: 'pr', id: 'pr-2' },@@ -1019,7 +1019,7 @@ describe('layoutManager', () => {});it('upgrades stored PR route metadata to Reviews content', async () => {- const { manager, router, dispose } = ingressRouter('/inbox');+ const { manager, router, dispose } = ingressRouter('/home');await router.settled();const split = manager.getSplit(manager.splits()[0].id)!;split.replace({@@ -1045,16 +1045,16 @@ describe('layoutManager', () => {dispose();});- it.each(['/inbox/channel', '/not-a-block/example'])(+ it.each(['/home/channel', '/not-a-block/example'])('rejects an invalid legacy pair %s without mounting a block',async (path) => {const { manager, location, router, dispose } = ingressRouter(path);await router.settled();expect(manager.splits()[0].content).toMatchObject({type: 'component',- id: 'inbox',+ id: 'home',});- expect(location.read().pathname).toBe('/inbox');+ expect(location.read().pathname).toBe('/home');router.dispose();dispose();}@@ -1097,7 +1097,7 @@ describe('layoutManager', () => {});it('upgrades old call route metadata without losing transcript search', async () => {- const { manager, router, dispose } = ingressRouter('/inbox');+ const { manager, router, dispose } = ingressRouter('/home');await router.settled();const split = manager.getSplit(manager.splits()[0].id)!;split.replace({@@ -1126,7 +1126,7 @@ describe('layoutManager', () => {});it('uses the Drive call detail route for existing split navigation', async () => {- const { manager, location, router, dispose } = ingressRouter('/inbox');+ const { manager, location, router, dispose } = ingressRouter('/home');await router.settled();manager.getSplit(manager.splits()[0].id)!.replace({next: { type: 'call', id: 'call-2' },@@ -1143,7 +1143,7 @@ describe('layoutManager', () => {});it('retains pane-local transcript targeting during call navigation', async () => {- const { manager, router, dispose } = ingressRouter('/inbox');+ const { manager, router, dispose } = ingressRouter('/home');await router.settled();const split = manager.getSplit(manager.splits()[0].id)!;split.replace({@@ -1271,9 +1271,9 @@ describe('layoutManager', () => {});it.each([- ['/component/preview-empty', '/inbox'],- ['/component/non-member-channel', '/inbox'],- ['/component/inbox', '/inbox'],+ ['/component/preview-empty', '/home'],+ ['/component/non-member-channel', '/home'],+ ['/component/home', '/home'],['/component/documents', '/drive'],['/component/settings', '/settings/account'],])('upgrades the legacy component URL %s', async (incoming, expected) => {@@ -1354,7 +1354,7 @@ describe('layoutManager', () => {it('migrates legacy channel targets on Inbox preview routes', async () => {const { manager, location, router, dispose } = ingressRouter(- '/inbox/channel/c1?channel_message_id=first&channel_message_id=last&channel_thread_id=thread'+ '/home/channel/c1?channel_message_id=first&channel_message_id=last&channel_thread_id=thread');await router.settled();const split = manager.splits()[0];@@ -1380,7 +1380,7 @@ describe('layoutManager', () => {'migrates unprefixed %s comments on Inbox document routes',async (type, key) => {const { manager, location, router, dispose } = ingressRouter(- `/inbox/${type}/document-1?${key}=comment-1`+ `/home/${type}/document-1?${key}=comment-1`);await router.settled();const split = manager.splits()[0];@@ -1397,7 +1397,7 @@ describe('layoutManager', () => {it('prefers an explicit Inbox document comment over an unprefixed key', async () => {const { manager, router, dispose } = ingressRouter(- '/inbox/md/document-1?comment_id=legacy&s0.drive.commentId=explicit'+ '/home/md/document-1?comment_id=legacy&s0.drive.commentId=explicit');await router.settled();expect(router.search(manager.splits()[0].id, 'drive')).toEqual({@@ -1409,7 +1409,7 @@ describe('layoutManager', () => {it('preserves Drive facets during comment link migration', async () => {const { manager, router, dispose } = ingressRouter(- '/inbox/md/document-1?comment_id=comment-1&s0.drive.tags=first&s0.drive.tags=second'+ '/home/md/document-1?comment_id=comment-1&s0.drive.tags=first&s0.drive.tags=second');await router.settled();expect(router.search(manager.splits()[0].id, 'drive')).toEqual({@@ -2037,7 +2037,7 @@ describe('layoutManager', () => {it('marks mergeHistory content changes as replace navigation', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2051,7 +2051,7 @@ describe('layoutManager', () => {type: SplitEvent.ContentChange,cause: 'replace',newContent: { type: 'md', id: 'created-doc' },- previousContent: { type: 'component', id: 'inbox' },+ previousContent: { type: 'component', id: 'home' },});dispose();@@ -2094,7 +2094,7 @@ describe('layoutManager', () => {it('jumps back to the nearest earlier entry matching a predicate', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2124,7 +2124,7 @@ describe('layoutManager', () => {(owner) => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;const occupied = { type: 'email', id: 'occupied' } as const;@@ -2148,14 +2148,14 @@ describe('layoutManager', () => {expect(handle.canGoBack()).toBe(true);handle.goBack();- expect(handle.content().id).toBe('inbox');+ expect(handle.content().id).toBe('home');expect(handle.canGoBack()).toBe(false);expect(handle.canGoForward()).toBe(true);handle.goForward();expect(handle.content().id).toBe('end');expect(handle.canGoForward()).toBe(false);expect(handle.history().map((entry) => entry.id)).toEqual([- 'inbox',+ 'home','occupied','end',]);@@ -2177,7 +2177,7 @@ describe('layoutManager', () => {{ type: 'email', id: 'before' },]);const handle = manager.getSplit(manager.splits()[0].id)!;- handle.replace({ next: { type: 'component', id: 'inbox' } });+ handle.replace({ next: { type: 'component', id: 'home' } });handle.replace({ next: { type: 'email', id: 'after' } });handle.goBack();const canGoBack = createMemo(handle.canGoBack);@@ -2195,7 +2195,7 @@ describe('layoutManager', () => {expect(canGoForward()).toBe(false);handle.goBack();handle.goForward();- expect(handle.content().id).toBe('inbox');+ expect(handle.content().id).toBe('home');setOccupied([]);expect(canGoBack()).toBe(true);expect(canGoForward()).toBe(true);@@ -2212,7 +2212,7 @@ describe('layoutManager', () => {it('skips history entries another split already displays', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'email', id: 'other' },]);const [listSplitState, docSplitState] = manager.splits();@@ -2248,7 +2248,7 @@ describe('layoutManager', () => {it('leaves the split put when nothing earlier matches', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2270,7 +2270,7 @@ describe('layoutManager', () => {it('updates the current mount through a retained split handle', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;const inboxMeta = handle.meta()!;@@ -2306,7 +2306,7 @@ describe('layoutManager', () => {it('delivers one-shot params on same-split forward navigation', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2321,7 +2321,7 @@ describe('layoutManager', () => {it('delivers one-shot params on mergeHistory navigation', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2336,7 +2336,7 @@ describe('layoutManager', () => {it('strips params when re-visiting an entry via history back/forward', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2345,7 +2345,7 @@ describe('layoutManager', () => {split.goBack();expect(split.content()).toMatchObject({type: 'component',- id: 'inbox',+ id: 'home',});split.goForward();@@ -2359,7 +2359,7 @@ describe('layoutManager', () => {it('strips params when removeFromHistory reattaches a prior entry', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2378,7 +2378,7 @@ describe('layoutManager', () => {it('keeps params on history navigation when preserveParams is set', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const split = manager.getSplit(manager.splits()[0].id)!;@@ -2486,7 +2486,7 @@ describe('layoutManager', () => {id: 'documents',} satisfies SplitContent;const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },target,{ type: 'component', id: 'documents' },{ type: 'md', id: 'right' },@@ -2513,7 +2513,7 @@ describe('layoutManager', () => {it('keeps the 0th split and replaces it when the target content is not open', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'md', id: 'right' },]);const keptSplitId = manager.splits()[0].id;@@ -2535,7 +2535,7 @@ describe('layoutManager', () => {expect(handle.isSpotLight()).toBe(false);expect(handle.previousContent()).toEqual({type: 'component',- id: 'inbox',+ id: 'home',});dispose();@@ -2618,14 +2618,14 @@ describe('layoutManager', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [position === 'foreground'- ? { type: 'component', id: 'inbox' }+ ? { type: 'component', id: 'home' }: initial,]);const swipe = createMobileSwipeLayout(manager);manager.openWithSplit(position === 'foreground'? initial- : { type: 'component', id: 'inbox' }+ : { type: 'component', id: 'home' });const owner = manager.findOpenView(target)!.topLevelSplit!;const mount = manager@@ -2647,7 +2647,7 @@ describe('layoutManager', () => {swipe.swipeBack();expect(manager.getSplit(manager.activeSplitId()!)!.content().id- ).toBe('inbox');+ ).toBe('home');dispose();});}@@ -2680,7 +2680,7 @@ describe('layoutManager', () => {(result) => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const swipe = createMobileSwipeLayout(manager);manager.openWithSplit({ type: 'email', id: 'foreground' });@@ -2733,7 +2733,7 @@ describe('layoutManager', () => {it('skips already-mounted history when rebuilding the mobile background', () => {createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);const handle = manager.getSplit(manager.splits()[0].id)!;handle.replace({ next: { type: 'chat', id: 'conversation' } });@@ -2746,12 +2746,12 @@ describe('layoutManager', () => {expect(swipe.slotASplitId()).not.toBe(swipe.slotBSplitId());expect(manager.splits().map((split) => split.content.id)).toEqual(['conversation',- 'inbox',+ 'home',]);expect(toast.alert).not.toHaveBeenCalled();swipe.swipeBack();expect(manager.getSplit(manager.activeSplitId()!)!.content().id).toBe(- 'inbox'+ 'home');dispose();});diff --git a/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts b/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.tsindex b495dbf84a..21e769dd12 100644--- a/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts+++ b/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts@@ -70,7 +70,7 @@ const FOCUS_DEBOUNCE_MS = 50;function mountFreshLoad() {return createRoot((dispose) => {const manager = createSplitLayout(createMockOrchestrator(), [- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },{ type: 'md', id: 'doc-1' },]);diff --git a/apps/web/src/components/view-shell/ViewShell.test.tsx b/apps/web/src/components/view-shell/ViewShell.test.tsxindex 22fed9957e..1d3291418f 100644--- a/apps/web/src/components/view-shell/ViewShell.test.tsx+++ b/apps/web/src/components/view-shell/ViewShell.test.tsx@@ -459,7 +459,7 @@ describe('required navigation', () => {});});-describe.each(['inbox', 'channels', 'tasks', 'email'])(+describe.each(['home', 'channels', 'tasks', 'email'])('%s responsive sidebar',(app) => {it('restores automatic collapse but preserves an explicit desktop collapse', () => {diff --git a/apps/web/src/features/activity/route.tsx b/apps/web/src/features/activity/route.tsxindex d2fc99a6f8..856fa59976 100644--- a/apps/web/src/features/activity/route.tsx+++ b/apps/web/src/features/activity/route.tsx@@ -26,7 +26,7 @@ export const ActivityRouteView = withAuth(() => {when={enabled()}fallback={<Show when={posthog.flagsLoaded()}>- <RedirectSplit to={{ type: 'component', id: 'inbox' }} />+ <RedirectSplit to={{ type: 'component', id: 'home' }} /></Show>}>diff --git a/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx b/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsxindex b1447a76d1..e7922bebb3 100644--- a/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx+++ b/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx@@ -1,4 +1,4 @@-import { HomeListEntity } from '@app/features/inbox-view/components/HomeListEntity';+import { HomeListEntity } from '@app/features/home/components/HomeListEntity';import {cleanup,fireEvent,@@ -32,7 +32,7 @@ vi.mock('@entity', () => ({MaybeEntityRow: (props: { children: JSX.Element }) => props.children,}));vi.mock('@entity/utils/filter', () => ({ unreadFilterFn: unreadFilter }));-vi.mock('@app/features/inbox-view/components/HomeEntityIcon', () => ({+vi.mock('@app/features/home/components/HomeEntityIcon', () => ({HomeEntityIcon: () => null,}));vi.mock('@core/context/user', () => ({ useUserId: () => () => 'me' }));diff --git a/apps/web/src/features/block-calendar/CalendarBlockAdapter.tsx b/apps/web/src/features/block-calendar/CalendarBlockAdapter.tsxindex 51bf89d1b8..891ed0c6e5 100644--- a/apps/web/src/features/block-calendar/CalendarBlockAdapter.tsx+++ b/apps/web/src/features/block-calendar/CalendarBlockAdapter.tsx@@ -21,7 +21,7 @@ import type { CalendarBlockProps } from './types';function CalendarBlockDisabledRedirect() {const panel = useSplitPanelOrThrow();onMount(() => {- panel.handle.replace({ next: { type: 'component', id: 'inbox' } });+ panel.handle.replace({ next: { type: 'component', id: 'home' } });});return null;}diff --git a/apps/web/src/features/block-email/use-email-list-navigation.test.ts b/apps/web/src/features/block-email/use-email-list-navigation.test.tsindex e5d5f5e1df..e971cbd7f4 100644--- a/apps/web/src/features/block-email/use-email-list-navigation.test.ts+++ b/apps/web/src/features/block-email/use-email-list-navigation.test.ts@@ -16,7 +16,7 @@ const mocks = vi.hoisted(() => ({hasMore: false,active: true,currentId: 'a',- viewId: 'mail' as 'mail' | 'inbox',+ viewId: 'mail' as 'mail' | 'home',sourceId: 'email-split',handle: {id: 'email-split',diff --git a/apps/web/src/features/block-email/use-email-list-navigation.ts b/apps/web/src/features/block-email/use-email-list-navigation.tsindex 5979a14259..8c84bc2a4c 100644--- a/apps/web/src/features/block-email/use-email-list-navigation.ts+++ b/apps/web/src/features/block-email/use-email-list-navigation.ts@@ -37,7 +37,7 @@ export function useEmailListNavigation(const list = source();if (list) return list.entities();const from = panel?.handle.referredFrom();- if (from !== 'mail' && from !== 'inbox') return [];+ if (from !== 'mail' && from !== 'home') return [];return soup?.rows().map((row) => row.original) ?? [];};const target = (direction: -1 | 1) =>diff --git a/apps/web/src/features/calendar-view/calendar-view.tsx b/apps/web/src/features/calendar-view/calendar-view.tsxindex a35610a117..dbdbe95619 100644--- a/apps/web/src/features/calendar-view/calendar-view.tsx+++ b/apps/web/src/features/calendar-view/calendar-view.tsx@@ -33,7 +33,7 @@ import { CALENDAR_VIEW_ID, type CalendarViewTarget } from './types';function CalendarDisabledRedirect() {const panel = useSplitPanelOrThrow();onMount(() => {- panel.handle.replace({ next: { type: 'component', id: 'inbox' } });+ panel.handle.replace({ next: { type: 'component', id: 'home' } });});return null;}diff --git a/apps/web/src/features/command/mobile/MobileSearchInput.tsx b/apps/web/src/features/command/mobile/MobileSearchInput.tsxindex 20373186de..83ebf687fa 100644--- a/apps/web/src/features/command/mobile/MobileSearchInput.tsx+++ b/apps/web/src/features/command/mobile/MobileSearchInput.tsx@@ -91,7 +91,7 @@ export function MobileSearchInput() {// returns to the default view.const handleClear = () => {SearchState.close();- if (foregroundView() === 'search') navigate('inbox');+ if (foregroundView() === 'search') navigate('home');};return (diff --git a/apps/web/src/features/companies/route.tsx b/apps/web/src/features/companies/route.tsxindex 74292d1959..5126211628 100644--- a/apps/web/src/features/companies/route.tsx+++ b/apps/web/src/features/companies/route.tsx@@ -18,7 +18,7 @@ const SoupView = lazy(async () => ({export const CompaniesRouteView = withAuth(() => {if (!isFeatureEnabled(enableCrm))- return <RedirectSplit to={{ type: 'component', id: 'inbox' }} />;+ return <RedirectSplit to={{ type: 'component', id: 'home' }} />;usePageViewTracking('companies');const preset = getViewPreset('companies');const crmView = new URLSearchParams(window.location.search).get(diff --git a/apps/web/src/features/entity/tests/entity-icon.test.tsx b/apps/web/src/features/entity/tests/entity-icon.test.tsxindex 7d599ae839..a6f68f6c61 100644--- a/apps/web/src/features/entity/tests/entity-icon.test.tsx+++ b/apps/web/src/features/entity/tests/entity-icon.test.tsx@@ -9,7 +9,7 @@ import GitMergeBold from '@phosphor-icons/core/bold/git-merge-bold.svg';import { cleanup, render } from '@solidjs/testing-library';import { createSignal } from 'solid-js';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { HomeEntityIcon } from '../../inbox-view/components/HomeEntityIcon';+import { HomeEntityIcon } from '../../home/components/HomeEntityIcon';import { EntityIcon } from '../extractors/entity-icon';import type {ChannelEntity,diff --git a/apps/web/src/features/inbox-view/components/HomeChatStart.test.tsx b/apps/web/src/features/home/components/HomeChatStart.test.tsxsimilarity index 93%rename from apps/web/src/features/inbox-view/components/HomeChatStart.test.tsxrename to apps/web/src/features/home/components/HomeChatStart.test.tsxindex 071f318b15..acea03a41c 100644--- a/apps/web/src/features/inbox-view/components/HomeChatStart.test.tsx+++ b/apps/web/src/features/home/components/HomeChatStart.test.tsx@@ -1,7 +1,7 @@import { cleanup, render, screen } from '@solidjs/testing-library';import type { JSX } from 'solid-js';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { HomePreferencesProvider } from '../../home/home-prefs';+import { HomePreferencesProvider } from '../home-prefs';import { HomeChatStart } from './HomeChatStart';type ChildrenProps = { children?: JSX.Element };@@ -42,13 +42,13 @@ vi.mock('@core/component/AI/component/DragDrop', () => ({vi.mock('@core/component/AI/context', () => ({ChatInputProvider: (props: ChildrenProps) => props.children,}));-vi.mock('../../home/home-chat-input', () => ({+vi.mock('../home-chat-input', () => ({HomeChatInput: () => <div data-testid="home-chat-input" />,}));-vi.mock('../../home/home-getting-started-link', () => ({+vi.mock('../home-getting-started-link', () => ({HomeGettingStartedLink: () => <div data-testid="getting-started-link" />,}));-vi.mock('../../home/components/home-recommended-actions', () => ({+vi.mock('./home-recommended-actions', () => ({HomeRecommendedActions: () => <div data-testid="home-suggestions" />,}));diff --git a/apps/web/src/features/inbox-view/components/HomeChatStart.tsx b/apps/web/src/features/home/components/HomeChatStart.tsxsimilarity index 90%rename from apps/web/src/features/inbox-view/components/HomeChatStart.tsxrename to apps/web/src/features/home/components/HomeChatStart.tsxindex 75f7685f0c..cf61b2b023 100644--- a/apps/web/src/features/inbox-view/components/HomeChatStart.tsx+++ b/apps/web/src/features/home/components/HomeChatStart.tsx@@ -8,10 +8,10 @@ import { DragDropWrapper } from '@core/component/AI/component/DragDrop';import { ChatInputProvider } from '@core/component/AI/context';import { enableChatV3Agents } from '@core/constant/featureFlags';import { Show } from 'solid-js';-import { HomeRecommendedActions } from '../../home/components/home-recommended-actions';-import { HomeChatInput } from '../../home/home-chat-input';-import { HomeGettingStartedLink } from '../../home/home-getting-started-link';-import { useHomePreferences } from '../../home/home-prefs';+import { HomeChatInput } from '../home-chat-input';+import { HomeGettingStartedLink } from '../home-getting-started-link';+import { useHomePreferences } from '../home-prefs';+import { HomeRecommendedActions } from './home-recommended-actions';/** Desktop Home's idle pane uses the single-line chat composer and send flow. */export function HomeChatStart() {diff --git a/apps/web/src/features/inbox-view/components/InboxDateGroupHeader.tsx b/apps/web/src/features/home/components/HomeDateGroupHeader.tsxsimilarity index 89%rename from apps/web/src/features/inbox-view/components/InboxDateGroupHeader.tsxrename to apps/web/src/features/home/components/HomeDateGroupHeader.tsxindex ad1e2010bb..c6c611cd16 100644--- a/apps/web/src/features/inbox-view/components/InboxDateGroupHeader.tsx+++ b/apps/web/src/features/home/components/HomeDateGroupHeader.tsx@@ -3,7 +3,7 @@ import { isTouchDevice } from '@core/mobile/isTouchDevice';import { SOUP_ROW_CLASS } from '@entity/composed/list-entity/row-geometry';import { cn } from '@ui';-export function InboxDateGroupHeader(props: {+export function HomeDateGroupHeader(props: {row: SoupGroupHeaderRow;isFirst: boolean;}) {@@ -16,7 +16,7 @@ export function InboxDateGroupHeader(props: {'group/header relative flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-xs font-semibold tracking-tight','border-none my-0 text-ink-extra-muted/80',// Touch takes the legacy card-row gutters so the label starts- // where InboxListEntity content does; desktop keeps the Home form.+ // where HomeListEntity content does; desktop keeps the Home form.isTouchDevice()? 'mx-(--soup-row-gutter) w-[calc(100%-2*var(--soup-row-gutter))] pl-[calc(var(--soup-row-content-inset)-var(--soup-row-gutter))]': 'mx-0 w-full px-4',diff --git a/apps/web/src/features/inbox-view/components/InboxEmptyState.tsx b/apps/web/src/features/home/components/HomeEmptyState.tsxsimilarity index 95%rename from apps/web/src/features/inbox-view/components/InboxEmptyState.tsxrename to apps/web/src/features/home/components/HomeEmptyState.tsxindex 61eaa7d24d..2c1019c27e 100644--- a/apps/web/src/features/inbox-view/components/InboxEmptyState.tsx+++ b/apps/web/src/features/home/components/HomeEmptyState.tsx@@ -5,10 +5,10 @@ import EmptyStateNoFilterMatchGraphic from '@design/empty-state-no-filter-match.import EmptyStateNoSearchMatchGraphic from '@design/empty-state-no-search-match.svg';import { EmptyStatePanel, FilteredHiddenBanner } from '@ui';import { Match, Switch } from 'solid-js';-import { useInboxView } from '../inbox-view-context';+import { useHomeView } from '../home-view-context';-export function InboxEmptyState() {- const { state, setFacets } = useInboxView();+export function HomeEmptyState() {+ const { state, setFacets } = useHomeView();const emailActive = useEmailLinksStatus();const startAddInbox = useAddInboxFlow();const searchText = () => state.search.trim();diff --git a/apps/web/src/features/inbox-view/components/InboxEntityDetailRouteView.tsx b/apps/web/src/features/home/components/HomeEntityDetailRouteView.tsxsimilarity index 94%rename from apps/web/src/features/inbox-view/components/InboxEntityDetailRouteView.tsxrename to apps/web/src/features/home/components/HomeEntityDetailRouteView.tsxindex 66588c005b..866d4d668e 100644--- a/apps/web/src/features/inbox-view/components/InboxEntityDetailRouteView.tsx+++ b/apps/web/src/features/home/components/HomeEntityDetailRouteView.tsx@@ -10,8 +10,8 @@ import type { PreviewBlockTarget } from '@components/app/previewTarget';import { SidePanel } from '@components/app/side-panel';import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';import { type Accessor, createMemo, Match, Show, Switch } from 'solid-js';-import { isInboxDocumentType } from '../inbox-route-schema';-import { useInboxView } from '../inbox-view-context';+import { isHomeDocumentType } from '../home-route-schema';+import { useHomeView } from '../home-view-context';import { HomeReturnBreadcrumb } from './HomeReturnBreadcrumb';type DetailParams = {@@ -48,7 +48,7 @@ function entityDetailTarget(if (!documentType ||!documentId ||- !isInboxDocumentType(documentType) ||+ !isHomeDocumentType(documentType) ||documentType === 'spreadsheet' ||documentType === 'unknown' ||preview.params@@ -70,7 +70,7 @@ function entityDetailTarget(};}-function InboxEntityDetailBody(props: {+function HomeEntityDetailBody(props: {target: EntityDetailTarget;value: Accessor<string>;navigationRequest: number;@@ -138,7 +138,7 @@ function InboxEntityDetailBody(props: {);}-function InboxDirectDetail(props: {+function HomeDirectDetail(props: {target: EntityDetailTarget;closePreview: () => void;navigationRequest: number;@@ -160,7 +160,7 @@ function InboxDirectDetail(props: {)}</ViewBreadcrumbs.Item><SidePanel.Root>- <InboxEntityDetailBody+ <HomeEntityDetailBodytarget={props.target}value={value}navigationRequest={props.navigationRequest}@@ -171,19 +171,19 @@ function InboxDirectDetail(props: {}/** Home's typed channel and document routes; unsupported locations keep the block preview. */-export function InboxEntityDetailRouteView() {+export function HomeEntityDetailRouteView() {const params = useParams<DetailParams>();const panel = useSplitPanelOrThrow();const orchestrator = useGlobalBlockOrchestrator();const { previewTarget, previewNavigationRequest, closePreview } =- useInboxView();+ useHomeView();const detail = createMemo(() => entityDetailTarget(params, previewTarget()));return (<Switch><Match when={detail()}>{(target) => (- <InboxDirectDetail+ <HomeDirectDetailtarget={target()}closePreview={closePreview}navigationRequest={previewNavigationRequest()}diff --git a/apps/web/src/features/inbox-view/components/HomeEntityIcon.tsx b/apps/web/src/features/home/components/HomeEntityIcon.tsxsimilarity index 100%rename from apps/web/src/features/inbox-view/components/HomeEntityIcon.tsxrename to apps/web/src/features/home/components/HomeEntityIcon.tsxdiff --git a/apps/web/src/features/inbox-view/components/InboxFilters.tsx b/apps/web/src/features/home/components/HomeFilters.tsxsimilarity index 95%rename from apps/web/src/features/inbox-view/components/InboxFilters.tsxrename to apps/web/src/features/home/components/HomeFilters.tsxindex 6d52174001..93f19b511f 100644--- a/apps/web/src/features/inbox-view/components/InboxFilters.tsx+++ b/apps/web/src/features/home/components/HomeFilters.tsx@@ -12,8 +12,8 @@ import FilterIcon from '@phosphor/funnel-simple.svg';import { Dropdown } from '@ui';import { createMemo, createSignal, For, type JSX, Show } from 'solid-js';import { selectedHomeTypes, setHomeTypeSelected } from '../core/type-selection';-import { INBOX_FILTER_GROUPS } from '../inbox-facets';-import { useInboxView } from '../inbox-view-context';+import { HOME_TYPE_FILTER_GROUPS } from '../home-facets';+import { useHomeView } from '../home-view-context';const FILTER_ICONS = new Map<string, () => JSX.Element>([[@@ -118,7 +118,7 @@ const FILTER_ICONS = new Map<string, () => JSX.Element>([],]);-const FILTER_GROUPS = INBOX_FILTER_GROUPS.map((group) => ({+const FILTER_GROUPS = HOME_TYPE_FILTER_GROUPS.map((group) => ({...group,options: group.options.map((option) => ({...option,@@ -129,8 +129,8 @@ const TYPE_IDS = FILTER_GROUPS.flatMap((group) =>group.id === 'type' ? group.options.map((option) => option.id) : []);-function useInboxFilters() {- const { state, setFacets } = useInboxView();+function useHomeFilters() {+ const { state, setFacets } = useHomeView();const isSelected = (groupId: string, optionId: string) => {const selectedIds = state.facets[groupId] ?? [];@@ -207,8 +207,8 @@ const HOME_FILTER_GROUPS: ListFilterGroup<string, string>[] = [...FILTER_GROUPS.map((group) => ({ ...group, label: 'Type' })),];-export function InboxFilterDropdown() {- const filters = useInboxFilters();+export function HomeFilterDropdown() {+ const filters = useHomeFilters();const panel = useSplitPanelOrThrow();const [open, setOpen] = createSignal(false);useViewControlHotkeys({@@ -250,8 +250,8 @@ export function InboxFilterDropdown() {);}-export function InboxFilterDrawer() {- const filters = useInboxFilters();+export function HomeFilterDrawer() {+ const filters = useHomeFilters();return (<MobileFilterDrawerdiff --git a/apps/web/src/features/inbox-view/components/InboxList.tsx b/apps/web/src/features/home/components/HomeList.tsxsimilarity index 94%rename from apps/web/src/features/inbox-view/components/InboxList.tsxrename to apps/web/src/features/home/components/HomeList.tsxindex e062379e01..8b81a35bac 100644--- a/apps/web/src/features/inbox-view/components/InboxList.tsx+++ b/apps/web/src/features/home/components/HomeList.tsx@@ -64,53 +64,53 @@ import {markReminderSeenOnOpen,openEntityInSplitFromUnifiedList,} from '../../next-soup/utils';-import { useInboxView } from '../inbox-view-context';+import { useHomeView } from '../home-view-context';import {- createInboxListEntryStorage,- DEFAULT_INBOX_LIST_STATE,- type InboxListStateSnapshot,+ createHomeListEntryStorage,+ DEFAULT_HOME_LIST_STATE,+ type HomeListStateSnapshot,} from '../persistence';import {- type InboxDataSourceItem,- useInboxDataSource,-} from '../queries/use-inbox-query';+ type HomeDataSourceItem,+ useHomeDataSource,+} from '../queries/use-home-query';+import { HomeDateGroupHeader } from './HomeDateGroupHeader';+import { HomeEmptyState } from './HomeEmptyState';import { HomeListEntity } from './HomeListEntity';-import { InboxDateGroupHeader } from './InboxDateGroupHeader';-import { InboxEmptyState } from './InboxEmptyState';-type InboxActionRow = {+type HomeActionRow = {entity: WithNotification<EntityData>;rowId: string;};-type InboxListActivationMetadata = {+type HomeListActivationMetadata = {event?: MouseEvent;newSplit?: boolean;};-type InboxListProps = {+type HomeListProps = {hasPreview: boolean;onPreviewEntityChange: (entity: PreviewSelection | undefined) => void;onPreviewActivate?: () => void;};/** Compact notification list used by the Notifications workspace. */-export function InboxList(props: InboxListProps) {+export function HomeList(props: HomeListProps) {const channels = useChannelsContext();const channelName = (entity: WithNotification<EntityData>) =>entity.type === 'channel_thread'? getChannelThreadName(entity, channels.channelsById()): undefined;- const { state } = useInboxView();+ const { state } = useHomeView();const panel = useSplitPanelOrThrow();const notificationSource = useGlobalNotificationSource();const source = withSplitPanelOwner(listOwnedSlotName('data-source'), () =>- useInboxDataSource(state)+ useHomeDataSource(state));const list = withSplitPanelOwner(listOwnedSlotName('controller'), () =>- createListController<InboxDataSourceItem, InboxListActivationMetadata>({+ createListController<HomeDataSourceItem, HomeListActivationMetadata>({items: source.items,getKey: (row) => row.id,selection: {@@ -125,7 +125,7 @@ export function InboxList(props: InboxListProps) {withSplitPanelOwner(listOwnedSlotName('navigation-hotkeys'), () => {useSoupListNavigationHotkeys({splitHotkeyScope: panel.splitHotkeyScope,- viewId: 'inbox',+ viewId: 'home',dataSource: source,controller: list,handle: panel.handle,@@ -148,7 +148,7 @@ export function InboxList(props: InboxListProps) {function onActivate({item,metadata,- }: ListActivation<InboxDataSourceItem, InboxListActivationMetadata>) {+ }: ListActivation<HomeDataSourceItem, HomeListActivationMetadata>) {if (item.kind !== 'entity') return;const sourceRow = source.items().find((row) => row.id === item.id);@@ -205,7 +205,7 @@ export function InboxList(props: InboxListProps) {await openEntityInSplitFromUnifiedList(entity, {openInNewSplit: options.newSplit,splitHandle: panel.handle,- referredFrom: 'inbox',+ referredFrom: 'home',mergeHistory: options.mergeHistory,});} finally {@@ -223,13 +223,13 @@ export function InboxList(props: InboxListProps) {DEBUG_SETTING_KEYS.FORCE_EMPTY_STATES);- let scrollOffset = DEFAULT_INBOX_LIST_STATE.scrollOffset;- const readListState = (): InboxListStateSnapshot => ({+ let scrollOffset = DEFAULT_HOME_LIST_STATE.scrollOffset;+ const readListState = (): HomeListStateSnapshot => ({focusKey: list.focus.requestedKey(),scrollOffset: virtualizer()?.scrollOffset ?? scrollOffset,});- const applyListState: Setter<InboxListStateSnapshot> = (next) => {+ const applyListState: Setter<HomeListStateSnapshot> = (next) => {const current = readListState();const value = typeof next === 'function' ? next(current) : next;@@ -246,13 +246,13 @@ export function InboxList(props: InboxListProps) {};const [, setPersistedListState] = makePersistedState([readListState, applyListState],- { storages: createInboxListEntryStorage(panel.handle) }+ { storages: createHomeListEntryStorage(panel.handle) });const rows = source.items;const swipeRowsById = createMemo(() => {- const entities = new Map<string, InboxActionRow>();+ const entities = new Map<string, HomeActionRow>();for (const row of rows()) {if (row.kind !== 'entity') continue;@@ -378,7 +378,7 @@ export function InboxList(props: InboxListProps) {condition: panel.isPanelActive,});- function actionGroupsFor(row: InboxActionRow) {+ function actionGroupsFor(row: HomeActionRow) {const content = panel.handle.content();return buildActionGroups(actionState, [row.entity], {@@ -389,12 +389,12 @@ export function InboxList(props: InboxListProps) {});}- const markDoneActionFor = (row: InboxActionRow) =>+ const markDoneActionFor = (row: HomeActionRow) =>actionGroupsFor(row).flatMap((group) => group.items).find((action) => action.id === 'mark-done');- function focusActionRow(row: InboxActionRow) {+ function focusActionRow(row: HomeActionRow) {list.focus.set(row.rowId, { reason: 'pointer', force: true });list.selection.setAnchor(row.rowId);}@@ -572,7 +572,7 @@ export function InboxList(props: InboxListProps) {ref={setEmptyViewport}class="min-h-0 flex-1 overflow-y-auto pb-[max(1rem,var(--mobile-content-inset-bottom,0px))]">- <InboxEmptyState />+ <HomeEmptyState /></div></Match>@@ -610,7 +610,7 @@ export function InboxList(props: InboxListProps) {when={row.kind === 'group-header' ? row : undefined}>{(group) => (- <InboxDateGroupHeader+ <HomeDateGroupHeaderrow={group()}isFirst={rows()[0]?.id === group().id}/>@@ -722,7 +722,7 @@ export function InboxList(props: InboxListProps) {<EntitySelectionToolbarselected={selectedEntities()}onClear={listInteractions.selection.clear}- analyticsSource="inbox_view_selection_toolbar"+ analyticsSource="home_view_selection_toolbar"/></Show></div>diff --git a/apps/web/src/features/inbox-view/components/HomeListEntity.tsx b/apps/web/src/features/home/components/HomeListEntity.tsxsimilarity index 100%rename from apps/web/src/features/inbox-view/components/HomeListEntity.tsxrename to apps/web/src/features/home/components/HomeListEntity.tsxdiff --git a/apps/web/src/features/inbox-view/components/InboxHeader.tsx b/apps/web/src/features/home/components/HomeListLayout.tsxsimilarity index 84%rename from apps/web/src/features/inbox-view/components/InboxHeader.tsxrename to apps/web/src/features/home/components/HomeListLayout.tsxindex 9aa2984737..d2707aa5f1 100644--- a/apps/web/src/features/inbox-view/components/InboxHeader.tsx+++ b/apps/web/src/features/home/components/HomeListLayout.tsx@@ -2,9 +2,9 @@ import { SidebarCreateHeader } from '@app/components/view-shell/SidebarCreateButimport { MobileTopEdgeFade } from '@components/app/mobile/MobileEdgeFade';import { isTouchDevice } from '@core/mobile/isTouchDevice';import { type JSX, type ParentProps, Show } from 'solid-js';-import { InboxFilterDropdown } from './InboxFilters';+import { HomeFilterDropdown } from './HomeFilters';-function MobileInboxHeader(props: ParentProps) {+function MobileHomeHeader(props: ParentProps) {return (<header class="flex shrink-0 flex-col gap-3 px-4 pt-2 touch:px-(--mobile-chrome-gutter) touch:pt-[calc(var(--safe-top,0px)+0.5rem)] touch:absolute touch:inset-x-0 touch:top-0 touch:z-split-panel-chrome touch:pointer-events-none"><div class="flex h-8 min-w-0 items-center touch:h-10 touch:pointer-events-auto">@@ -15,7 +15,7 @@ function MobileInboxHeader(props: ParentProps) {}/** Keep mobile chrome above a full-height list so rows fade beneath it. */-export function InboxListLayout(+export function HomeListLayout(props: ParentProps<{ tabs: JSX.Element; onNewChat: () => void }>) {return (@@ -32,11 +32,11 @@ export function InboxListLayout(title="Home"label="New chat"onCreate={props.onNewChat}- titleActions={<InboxFilterDropdown />}+ titleActions={<HomeFilterDropdown />}/>}>- <MobileInboxHeader>{props.tabs}</MobileInboxHeader>+ <MobileHomeHeader>{props.tabs}</MobileHomeHeader></Show>{props.children}<Show when={isTouchDevice()}>diff --git a/apps/web/src/features/inbox-view/components/HomeReturnBreadcrumb.tsx b/apps/web/src/features/home/components/HomeReturnBreadcrumb.tsxsimilarity index 100%rename from apps/web/src/features/inbox-view/components/HomeReturnBreadcrumb.tsxrename to apps/web/src/features/home/components/HomeReturnBreadcrumb.tsxdiff --git a/apps/web/src/features/inbox-view/components/InboxTabs.tsx b/apps/web/src/features/home/components/HomeTabs.tsxsimilarity index 67%rename from apps/web/src/features/inbox-view/components/InboxTabs.tsxrename to apps/web/src/features/home/components/HomeTabs.tsxindex 190f14bbbe..1899be0ff3 100644--- a/apps/web/src/features/inbox-view/components/InboxTabs.tsx+++ b/apps/web/src/features/home/components/HomeTabs.tsx@@ -4,31 +4,31 @@ import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';import { isTouchDevice } from '@core/mobile/isTouchDevice';import { Tabs } from '@ui';import { Show } from 'solid-js';-import { useInboxView } from '../inbox-view-context';-import type { InboxTab } from '../types';-import { InboxFilterDrawer, InboxFilterDropdown } from './InboxFilters';+import { useHomeView } from '../home-view-context';+import type { HomeTab } from '../types';+import { HomeFilterDrawer, HomeFilterDropdown } from './HomeFilters';-const INBOX_TABS: { value: InboxTab; label: string }[] = [+const HOME_TABS: { value: HomeTab; label: string }[] = [{ value: 'signal', label: 'Signal' },{ value: 'noise', label: 'Noise' },];-const INBOX_TAB_IDS = INBOX_TABS.map((tab) => tab.value);+const HOME_TAB_IDS = HOME_TABS.map((tab) => tab.value);-/** Compact category switcher from the Activity-layout Inbox experiment. */-export function InboxTabs() {+/** Compact category switcher from the Activity-layout Home experiment. */+export function HomeTabs() {const panel = useSplitPanelOrThrow();- const { state, setTab } = useInboxView();+ const { state, setTab } = useHomeView();useViewTabHotkeys({scopeId: panel.splitHotkeyScope,enabled: panel.isPanelActive,- ids: () => INBOX_TAB_IDS,+ ids: () => HOME_TAB_IDS,activeId: () => state.tab,setActiveId: setTab,});const handleTabChange = (value: string) => {- const tab = INBOX_TABS.find((item) => item.value === value);+ const tab = HOME_TABS.find((item) => item.value === value);if (!tab) return;setTab(tab.value);@@ -41,11 +41,11 @@ export function InboxTabs() {<div class="flex h-8 min-w-0 flex-1 items-center gap-3"><Tabsaria-label="Home views"- list={INBOX_TABS}+ list={HOME_TABS}value={state.tab}onChange={handleTabChange}/>- <InboxFilterDropdown />+ <HomeFilterDropdown /></div>}>@@ -54,8 +54,8 @@ export function InboxTabs() {scrollableclass="-ml-(--mobile-chrome-gutter) w-[calc(100%+2*var(--mobile-chrome-gutter))] max-w-none flex-none"contentClass="px-(--mobile-chrome-gutter)"- leading={<InboxFilterDrawer />}- items={INBOX_TABS}+ leading={<HomeFilterDrawer />}+ items={HOME_TABS}value={state.tab}onChange={handleTabChange}/>diff --git a/apps/web/src/features/inbox-view/components/home-press.test.tsx b/apps/web/src/features/home/components/home-press.test.tsxsimilarity index 100%rename from apps/web/src/features/inbox-view/components/home-press.test.tsxrename to apps/web/src/features/home/components/home-press.test.tsxdiff --git a/apps/web/src/features/home/components/home-start-layout.tsx b/apps/web/src/features/home/components/home-start-layout.tsxdeleted file mode 100644index 3a8e66fe74..0000000000--- a/apps/web/src/features/home/components/home-start-layout.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { useFeatureFlag } from '@app/lib/analytics/posthog';-import { enableChatV3Agents } from '@core/constant/featureFlags';-import MacroLogo from '@icon/macro-logo.svg';-import { type JSX, Show } from 'solid-js';--export function HomeStartLayout(props: {- composer: JSX.Element;- suggestions: JSX.Element;-}) {- const agents = useFeatureFlag(enableChatV3Agents);- return (- <div class="size-full overflow-y-auto font-sans">- <main class="mx-auto flex min-h-full w-full max-w-[816px] flex-col justify-center gap-0 px-6 py-16">- <Show when={!agents().enabled}>- <header class="mb-8 flex flex-wrap items-center justify-center gap-3 text-center">- <MacroLogo class="size-9 shrink-0 text-accent" aria-hidden="true" />- <h1 class="text-[clamp(24px,2.5vw,32px)] font-medium leading-tight tracking-tight text-ink">- What should we work on?- </h1>- </header>- </Show>- {props.composer}- {props.suggestions}- </main>- </div>- );-}diff --git a/apps/web/src/features/inbox-view/core/type-selection.test.ts b/apps/web/src/features/home/core/type-selection.test.tssimilarity index 100%rename from apps/web/src/features/inbox-view/core/type-selection.test.tsrename to apps/web/src/features/home/core/type-selection.test.tsdiff --git a/apps/web/src/features/inbox-view/core/type-selection.ts b/apps/web/src/features/home/core/type-selection.tssimilarity index 100%rename from apps/web/src/features/inbox-view/core/type-selection.tsrename to apps/web/src/features/home/core/type-selection.tsdiff --git a/apps/web/src/features/inbox-view/inbox-calendar-preview.ts b/apps/web/src/features/home/home-calendar-preview.tssimilarity index 83%rename from apps/web/src/features/inbox-view/inbox-calendar-preview.tsrename to apps/web/src/features/home/home-calendar-preview.tsindex ba5555edad..816fab9a42 100644--- a/apps/web/src/features/inbox-view/inbox-calendar-preview.ts+++ b/apps/web/src/features/home/home-calendar-preview.ts@@ -17,17 +17,17 @@ import {} from '@core/constant/featureFlags';import deepEqual from 'fast-deep-equal';import { createSignal } from 'solid-js';-import { inboxCalendarNavigation } from './inbox-preview-navigation';-import { inboxCalendarRoute } from './route';+import { homeCalendarNavigation } from './home-preview-navigation';+import { homeCalendarRoute } from './route';type WithTab = (search: Record<string, SerializedSearchParams | undefined>) => Record<string, SerializedSearchParams | undefined>;/** Owns Home's inline Calendar location and repeat-click event refocus. */-export function useInboxCalendarPreview(withTab: WithTab) {+export function useHomeCalendarPreview(withTab: WithTab) {const navigate = useNavigate();- const calendarParams = useRouteParams(inboxCalendarRoute);+ const calendarParams = useRouteParams(homeCalendarRoute);const [openCalendarSearch] = createSearchParams(calendarSearch);const [calendarRefocus, setCalendarRefocus] = createSignal(0);const calendarOpen = () => typeof calendarParams.period === 'string';@@ -35,7 +35,7 @@ export function useInboxCalendarPreview(withTab: WithTab) {const openCalendarEvent = (entity: CalendarPreviewSelection) => {if (!isFeatureEnabled(enableCalendarUi)) return false;const calendarTarget = previewCalendarTarget(entity);- const navigation = inboxCalendarNavigation(calendarTarget);+ const navigation = homeCalendarNavigation(calendarTarget);if (!navigation) return false;const alreadyOpen =calendarOpen() &&@@ -48,7 +48,7 @@ export function useInboxCalendarPreview(withTab: WithTab) {if (alreadyOpen) setCalendarRefocus((count) => count + 1);elsenavigate(- { route: inboxCalendarRoute, params: navigation.params },+ { route: homeCalendarRoute, params: navigation.params },{ search: withTab(navigation.search) });return true;diff --git a/apps/web/src/features/home/home-examples.tsx b/apps/web/src/features/home/home-examples.tsxdeleted file mode 100644index 5365b5d2fe..0000000000--- a/apps/web/src/features/home/home-examples.tsx+++ /dev/null@@ -1,89 +0,0 @@-import { useChatInputContext } from '@core/component/AI/context';-import { isMobile } from '@core/mobile/isMobile';-import EmailIcon from '@phosphor/envelope.svg';-import FileIcon from '@phosphor/file.svg';-import SearchIcon from '@phosphor/magnifying-glass.svg';-import XIcon from '@phosphor/x.svg';-import { For, type JSX, Show } from 'solid-js';-import { Dynamic } from 'solid-js/web';-import { replaceHomeComposerSelection } from './home-composer-selection';-import type { HomePreferences } from './home-prefs';--type HomeExample = {- icon: (props: { class?: string }) => JSX.Element;- title: string;- description: string;- prompt: string;-};--const HOME_EXAMPLES: HomeExample[] = [- {- icon: FileIcon,- title: 'Draft a document',- description: 'Start from an idea',- prompt: 'Help me draft a document about ',- },- {- icon: EmailIcon,- title: 'Draft an email',- description: 'Reply or compose',- prompt: 'Help me draft an email to ',- },- {- icon: SearchIcon,- title: 'Search & research',- description: 'Across your workspace',- prompt: 'Research and summarize everything we have about ',- },-];--/**- * Dismissible example-prompt cards. Clicking one loads the prompt prefix into- * the home composer. Hidden on mobile.- */-export function HomeExamples(props: { preferences: HomePreferences }) {- const input = useChatInputContext();- return (- <Show when={!isMobile() && !props.preferences.isDismissed('examples')}>- <section>- <div class="mb-2 flex items-center justify-between px-1">- <span class="text-sm text-ink-muted">Examples</span>- <button- type="button"- class="rounded-md p-1 text-ink-extra-muted transition-colors hover:bg-hover hover:text-ink-muted"- aria-label="Dismiss examples"- onClick={() => props.preferences.dismiss('examples')}- >- <XIcon class="size-3.5" />- </button>- </div>- <div class="grid grid-cols-1 gap-2.5 sm:grid-cols-3">- <For each={HOME_EXAMPLES}>- {(example) => (- <button- type="button"- class="group flex flex-col gap-1 rounded-xl border border-edge-muted bg-active p-3 text-left transition-colors hover:bg-hover"- onClick={() =>- replaceHomeComposerSelection(input, example.prompt)- }- >- <div class="flex items-center gap-2">- <Dynamic- component={example.icon}- class="size-4 shrink-0 text-ink-muted transition-colors group-hover:text-accent"- />- <span class="text-sm font-medium text-ink">- {example.title}- </span>- </div>- <span class="truncate text-xs text-ink-muted">- {example.description}- </span>- </button>- )}- </For>- </div>- </section>- </Show>- );-}diff --git a/apps/web/src/features/inbox-view/inbox-facets.ts b/apps/web/src/features/home/home-facets.tssimilarity index 90%rename from apps/web/src/features/inbox-view/inbox-facets.tsrename to apps/web/src/features/home/home-facets.tsindex 40013e240b..e995b94ebe 100644--- a/apps/web/src/features/inbox-view/inbox-facets.ts+++ b/apps/web/src/features/home/home-facets.ts@@ -14,13 +14,13 @@ import { isWithNotification } from '@entity/types/notification';import { toNotificationEntity } from '@entity/utils/notification';import type { NotificationSource } from '@notifications/notification-source';import { compositeEntity } from '@notifications/types';-import type { InboxReadFilter, InboxTypeFilter } from './types';+import type { HomeReadFilter, HomeTypeFilter } from './types';-export type InboxFacetContext = {+export type HomeFacetContext = {notificationSource?: NotificationSource;};-export type InboxFacetOption = FacetOption<EntityData, InboxFacetContext> & {+export type HomeFacetOption = FacetOption<EntityData, HomeFacetContext> & {label: string;};@@ -38,10 +38,10 @@ function readClause(seen: boolean): FacetClause {}function readOption(- id: InboxReadFilter,+ id: HomeReadFilter,label: string,seen: boolean-): InboxFacetOption {+): HomeFacetOption {return {id,label,@@ -70,7 +70,7 @@ function readOption(};}-const typeOptions: Record<InboxTypeFilter, InboxFacetOption> = {+const typeOptions: Record<HomeTypeFilter, HomeFacetOption> = {documents: {id: 'documents',label: 'Documents',@@ -145,13 +145,13 @@ const typeOptions: Record<InboxTypeFilter, InboxFacetOption> = {},};-type InboxFilterGroup = {+type HomeFilterGroup = {id: string;label: string;options: { id: string; label: string }[];};-export const INBOX_FILTER_GROUPS: InboxFilterGroup[] = [+export const HOME_TYPE_FILTER_GROUPS: HomeFilterGroup[] = [{id: 'type',label: 'Entity types',@@ -159,10 +159,10 @@ export const INBOX_FILTER_GROUPS: InboxFilterGroup[] = [},];-export const INBOX_FACETS: Facet<+export const HOME_FACETS: Facet<EntityData,- InboxFacetContext,- InboxFacetOption+ HomeFacetContext,+ HomeFacetOption>[] = [{id: 'read',diff --git a/apps/web/src/features/home/home-hub.tsx b/apps/web/src/features/home/home-hub.tsxdeleted file mode 100644index 69efc0e739..0000000000--- a/apps/web/src/features/home/home-hub.tsx+++ /dev/null@@ -1,346 +0,0 @@-import { DOCS_BASE } from '@app/constants/docs-links';-import { LIST_VIEW_PATHS } from '@app/constants/list-views';-import { openAgentsPage } from '@app/features/agents-view/primitives/open-page';-import { globalSplitManager } from '@app/signal/splitLayout';-import { useGlobalNotificationSource } from '@components/app/GlobalAppState';-import { useSplitLayout } from '@components/app/split-layout/layout';-import { useChatInputContext } from '@core/component/AI/context';-import { EntityIcon, getEntityIconType } from '@core/component/EntityIcon';-import { useSettingsState } from '@core/constant/SettingsState';-import { isMobile } from '@core/mobile/isMobile';-import type { Entity } from '@core/types';-import {- compositeEntity,- fetchNotificationsForEntities,- openNotification,-} from '@notifications';-import ArrowUpRightIcon from '@phosphor/arrow-up-right.svg';-import BookOpenIcon from '@phosphor/book-open.svg';-import ChevronRightIcon from '@phosphor/caret-right.svg';-import PlusIcon from '@phosphor/plus.svg';-import XIcon from '@phosphor/x.svg';-import { createHomeRecommendations } from '@queries/ai/createHomeRecommendations';-import {- deriveRecommendedView,- type RecommendedAction,- type RecommendedItem,-} from '@queries/ai/homeRecommendations';-import { useEmailLinksQuery } from '@queries/email/link';-import { useMcpServersQuery } from '@queries/mcp-servers';-import { usePipedreamConnectionsQuery } from '@queries/pipedream-connectors';-import { stringToItemType } from '@service-storage/itemType';-import { useNavigate } from '@solidjs/router';-import { For, Match, Show, Switch } from 'solid-js';-import { match } from 'ts-pattern';-import { replaceHomeComposerSelection } from './home-composer-selection';-import type { HomePreferences } from './home-prefs';-import { SetupRow } from './home-rows';--const STATUS: Record<RecommendedAction, { label: string; accent: boolean }> = {- reply_now: { label: 'Reply now', accent: true },- reply_later: { label: 'Reply later', accent: false },- review: { label: 'Review', accent: false },- discuss: { label: 'Discuss', accent: false },-};--/** Show the "Connect your tools" row until this many connections exist. */-const CONNECTION_GOAL = 4;--const ATTACHABLE_ENTITY_TYPES = new Set<RecommendedItem['entityType']>([- 'channel',- 'document',- 'email_thread',- 'project',-]);--/**- * AI-recommended inbox items, generated by a fast projection for immediate- * paint and upgraded in place when the smart projection lands. All branching- * lives in `deriveRecommendedView`; this component only renders the result.- */-export function RecommendedSection() {- const input = useChatInputContext();- const notificationSource = useGlobalNotificationSource();- const { openSettings } = useSettingsState();- const navigate = useNavigate();-- const emailLinks = useEmailLinksQuery();- const recommendations = createHomeRecommendations();-- const view = () =>- deriveRecommendedView({- loading: emailLinks.isLoading || recommendations.isLoading(),- failed:- (emailLinks.isError && emailLinks.data === undefined) ||- recommendations.hasError(),- items: recommendations.items(),- emailLinked: (emailLinks.data?.links.length ?? 0) > 0,- });- const items = () => {- const current = view();- return current.kind === 'items' ? current.items : [];- };-- const selectRecommendation = (item: RecommendedItem) => {- replaceHomeComposerSelection(- input,- item.prompt,- ATTACHABLE_ENTITY_TYPES.has(item.entityType)- ? [{ entity_id: item.entityId, entity_type: item.entityType }]- : undefined- );- };-- const openRecommendation = async (- item: RecommendedItem,- event: MouseEvent- ) => {- const splitManager = globalSplitManager();- if (!splitManager) return;-- const entity = { id: item.entityId, type: item.entityType } as Entity;- let notification =- notificationSource.notificationsByEntity()[compositeEntity(entity)]?.[0];- if (!notification) {- notification = (await fetchNotificationsForEntities([entity]))[0];- }-- if (notification) {- const result = await openNotification(- notification,- splitManager,- event.shiftKey- );- if (result.isOk()) {- await notificationSource.markAsRead(notification);- return;- }- }-- match(item.entityType)- .with('email_thread', () =>- splitManager.openWithSplit(- { type: 'email', id: item.entityId },- { activate: true, preferNewSplit: event.shiftKey }- )- )- .with('channel', 'chat', 'call', 'project', (entityType) =>- splitManager.openWithSplit(- { type: entityType, id: item.entityId },- { activate: true, preferNewSplit: event.shiftKey }- )- )- .with('document', () => navigate(LIST_VIEW_PATHS.documents))- .otherwise(() => navigate(LIST_VIEW_PATHS.inbox));- };-- const retry = () => {- void Promise.allSettled([emailLinks.refetch(), recommendations.retry()]);- };-- return (- <section>- <div class="mb-2 flex items-center justify-between px-1">- <span class="text-sm text-ink-muted">Recommended</span>- <button- type="button"- class="text-xs text-ink-extra-muted transition-colors hover:text-ink-muted"- onClick={() => navigate(LIST_VIEW_PATHS.inbox)}- >- Show all- </button>- </div>- <div class="flex flex-col gap-2">- <Switch>- <Match when={view().kind === 'loading'}>- <For each={[0, 1, 2]}>- {() => (- <div- class="group flex h-14 w-full items-center gap-3.5 rounded-xl border border-edge-muted bg-hover/40 px-4 py-3 text-left animate-pulse"- aria-hidden="true"- />- )}- </For>- </Match>- <Match when={view().kind === 'error'}>- <div class="group flex w-full items-center gap-3.5 rounded-xl border border-edge-muted bg-active px-4 py-3 text-left">- <div class="min-w-0 flex-1">- <div class="text-sm font-medium text-ink">- Recommendations are unavailable- </div>- <div class="text-xs text-ink-muted">- Check your connection and try again.- </div>- </div>- <button- type="button"- class="shrink-0 text-sm text-accent hover:text-accent/80"- onClick={retry}- >- Try again- </button>- </div>- </Match>- <Match when={view().kind === 'items'}>- <For each={items()}>- {(item) => (- <RecommendedRow- item={item}- onSelect={() => selectRecommendation(item)}- onOpen={(event) => void openRecommendation(item, event)}- />- )}- </For>- </Match>- <Match when={view().kind === 'connect-inbox'}>- <button- type="button"- class="group flex w-full items-center gap-3.5 rounded-xl border border-edge-muted bg-active px-4 py-3 text-left transition-colors hover:bg-hover"- onClick={() => openSettings('Email')}- >- <div class="min-w-0 flex-1">- <div class="truncate text-sm font-medium text-ink">- Connect your inbox- </div>- <div class="truncate text-xs text-ink-muted">- Macro reads & triages your email in seconds- </div>- </div>- <span class="flex shrink-0 items-center gap-2 text-sm text-accent">- <span class="size-1.5 rounded-full bg-accent" />- Connect- </span>- <ChevronRightIcon class="size-4 shrink-0 text-ink-extra-muted" />- </button>- </Match>- <Match when={view().kind === 'caught-up'}>- <div class="group flex w-full items-center gap-3.5 rounded-xl border border-edge-muted bg-active px-4 py-3 text-left text-sm text-ink-muted">- You're all caught up.- </div>- </Match>- </Switch>- </div>- </section>- );-}--/** Reactive count of linked inboxes + authenticated MCP servers. */-function useConnectionsCount() {- const emailLinks = useEmailLinksQuery();- const mcpServers = useMcpServersQuery();- const pipedreamConnections = usePipedreamConnectionsQuery();-- return () => {- const inboxes = emailLinks.data?.links.length ?? 0;- // Mirrors the backend's stack selection: Pipedream connectors win.- const pipedream = (pipedreamConnections.data ?? []).length;- const servers = pipedream- ? pipedream- : (mcpServers.data ?? []).filter((server) => server.authenticated).length;- return inboxes + servers;- };-}--/** Onboarding rows. Hidden on mobile. */-export function GettingStartedSection(props: { preferences: HomePreferences }) {- const layout = useSplitLayout();- const connectionsCount = useConnectionsCount();-- const showConnectRow = () => connectionsCount() < CONNECTION_GOAL;-- return (- <Show when={!isMobile() && !props.preferences.isDismissed('setup')}>- <section>- <div class="mb-2 flex items-center justify-between px-1">- <span class="text-sm text-ink-muted">Getting started</span>- <button- type="button"- class="rounded-md p-1 text-ink-extra-muted transition-colors hover:bg-hover hover:text-ink-muted"- aria-label="Dismiss getting started"- onClick={() => props.preferences.dismiss('setup')}- >- <XIcon class="size-3.5" />- </button>- </div>- <div class="flex flex-col gap-2">- <Show when={showConnectRow()}>- <SetupRow- icon={<PlusIcon class="size-4" />}- title="Connect your tools"- desc="Connect Linear, Notion, GitHub & more"- trailing={- <span class="flex items-center gap-2">- <span class="text-xs tabular-nums text-ink-extra-muted">- {Math.min(connectionsCount(), CONNECTION_GOAL)}/- {CONNECTION_GOAL}- </span>- <ChevronRightIcon class="size-4 shrink-0 text-ink-extra-muted" />- </span>- }- onActivate={() => openAgentsPage(layout, 'connections')}- />- </Show>- <SetupRow- icon={<BookOpenIcon class="size-4" />}- title="Learn the basics"- desc="Mentions, search, shortcuts & more"- trailing={- <ArrowUpRightIcon class="size-4 shrink-0 text-ink-extra-muted" />- }- href={DOCS_BASE}- />- </div>- </section>- </Show>- );-}--function RecommendedRow(props: {- item: RecommendedItem;- onSelect: () => void;- onOpen: (event: MouseEvent) => void;-}) {- const status = () => STATUS[props.item.action];- const iconType = () => {- const type = stringToItemType(props.item.entityType);- return type ? getEntityIconType({ type }) : 'default';- };- return (- <div class="group flex w-full items-stretch overflow-hidden rounded-xl border border-edge-muted bg-active transition-colors hover:border-edge">- <div class="flex min-w-0 flex-1 items-center gap-3.5 px-4 py-3">- <div class="flex size-7 shrink-0 items-center justify-center rounded-lg bg-surface text-ink-muted">- <EntityIcon targetType={iconType()} size="xs" />- </div>- <div class="min-w-0 flex-1">- <div class="truncate text-sm font-medium text-ink">- {props.item.title}- </div>- <div class="mt-1 truncate text-xs text-ink-muted">- {props.item.source} · {props.item.reason}- </div>- </div>- </div>- <div class="flex shrink-0 items-center gap-1 px-3 py-3">- <button- type="button"- class="rounded-lg px-2 py-1.5 text-xs font-medium text-accent transition-colors hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50"- onClick={props.onSelect}- aria-label={`${status().label} with AI about ${props.item.title}`}- >- {status().label}- </button>- <button- type="button"- class="rounded-lg px-2 py-1.5 text-xs font-medium text-ink-muted transition-colors hover:bg-hover hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50"- onClick={(event) => {- event.stopPropagation();- props.onOpen(event);- }}- aria-label={`Open ${props.item.title}`}- >- Open- </button>- </div>- </div>- );-}diff --git a/apps/web/src/features/home/home-prefs-context.test.tsx b/apps/web/src/features/home/home-prefs-context.test.tsxindex 3c75f169a7..64a651a2db 100644--- a/apps/web/src/features/home/home-prefs-context.test.tsx+++ b/apps/web/src/features/home/home-prefs-context.test.tsx@@ -34,48 +34,44 @@ afterEach(() => {});describe('shared Home preferences', () => {- it('updates all mounted consumers immediately and preserves other dismissals', () => {+ it('updates all mounted consumers immediately', () => {const { consumers } = mountPreferences();- const [home, homeChatStart] = consumers;- expect(home).toBe(homeChatStart);+ const [first, second] = consumers;+ expect(first).toBe(second);expect(screen.getAllByText('visible')).toHaveLength(2);- home.dismiss('setup');- homeChatStart.dismiss('getting-started-link');+ second.dismiss('getting-started-link');expect(screen.getAllByText('hidden')).toHaveLength(2);- expect(homeChatStart.isDismissed('setup')).toBe(true);expect(JSON.parse(localStorage.getItem('macro:home:dismissed:user-1') ?? '[]')- ).toEqual(['setup', 'getting-started-link']);+ ).toEqual(['getting-started-link']);- home.restore('getting-started-link');+ first.restore('getting-started-link');expect(screen.getAllByText('visible')).toHaveLength(2);- expect(homeChatStart.isDismissed('setup')).toBe(true);+ expect(localStorage.getItem('macro:home:dismissed:user-1')).toBe('[]');});it('keeps dismissals isolated when users change, including same-turn writes', () => {- localStorage.setItem('macro:home:dismissed:user-2', '["setup"]');+ localStorage.setItem('macro:home:dismissed:user-2', '[]');const { consumers, setUserId } = mountPreferences();const [preferences] = consumers;preferences.dismiss('getting-started-link');+ expect(screen.getAllByText('hidden')).toHaveLength(2);batch(() => {setUserId('user-2');- preferences.dismiss('examples');+ preferences.dismiss('getting-started-link');});- expect(screen.getAllByText('visible')).toHaveLength(2);- expect(preferences.isDismissed('setup')).toBe(true);+ expect(screen.getAllByText('hidden')).toHaveLength(2);expect(JSON.parse(localStorage.getItem('macro:home:dismissed:user-2') ?? '[]')- ).toEqual(['setup', 'examples']);+ ).toEqual(['getting-started-link']);setUserId(undefined);- expect(preferences.isDismissed('setup')).toBe(false);- preferences.dismiss('examples');+ expect(preferences.isDismissed('getting-started-link')).toBe(false);+ preferences.dismiss('getting-started-link');setUserId('user-1');expect(screen.getAllByText('hidden')).toHaveLength(2);- expect(preferences.isDismissed('setup')).toBe(false);- expect(preferences.isDismissed('examples')).toBe(false);expect(localStorage.getItem('macro:home:dismissed:user-1')).toBe('["getting-started-link"]');diff --git a/apps/web/src/features/home/home-prefs.test.ts b/apps/web/src/features/home/home-prefs.test.tsindex 139a07be76..2030d699b2 100644--- a/apps/web/src/features/home/home-prefs.test.ts+++ b/apps/web/src/features/home/home-prefs.test.ts@@ -3,15 +3,15 @@ import { parseDismissedCards } from './home-prefs';describe('parseDismissedCards', () => {it('accepts known home cards', () => {- expect(- parseDismissedCards('["examples","setup","getting-started-link"]')- ).toEqual(['examples', 'setup', 'getting-started-link']);+ expect(parseDismissedCards('["getting-started-link"]')).toEqual([+ 'getting-started-link',+ ]);});it('drops unknown and non-string entries', () => {- expect(parseDismissedCards('["examples","unknown",12]')).toEqual([- 'examples',- ]);+ expect(+ parseDismissedCards('["getting-started-link","examples","setup",12]')+ ).toEqual(['getting-started-link']);});it('returns empty for a non-array shape', () => {diff --git a/apps/web/src/features/home/home-prefs.ts b/apps/web/src/features/home/home-prefs.tsindex ec8e29b05b..44de047243 100644--- a/apps/web/src/features/home/home-prefs.ts+++ b/apps/web/src/features/home/home-prefs.ts@@ -4,14 +4,10 @@ import type { ContextProviderProps } from '@solid-primitives/context';import { type Accessor, createMemo, createSignal } from 'solid-js';/** Dismissible home surfaces. Dismissals persist in localStorage. */-export type HomeCard = 'examples' | 'setup' | 'getting-started-link';+export type HomeCard = 'getting-started-link';const storage = createUserScopedStorage('macro:home:dismissed');-const HOME_CARDS: readonly HomeCard[] = [- 'examples',- 'setup',- 'getting-started-link',-];+const HOME_CARDS: readonly HomeCard[] = ['getting-started-link'];export function parseDismissedCards(raw: string | null): HomeCard[] {if (raw === null) return [];diff --git a/apps/web/src/features/inbox-view/inbox-preview-navigation.ts b/apps/web/src/features/home/home-preview-navigation.tssimilarity index 85%rename from apps/web/src/features/inbox-view/inbox-preview-navigation.tsrename to apps/web/src/features/home/home-preview-navigation.tsindex 4e5b63eadf..d053fae742 100644--- a/apps/web/src/features/inbox-view/inbox-preview-navigation.ts+++ b/apps/web/src/features/home/home-preview-navigation.ts@@ -23,22 +23,22 @@ import {type PreviewPanelSelection,previewBlockTarget,} from '@components/app/previewTarget';-import type { InboxPreviewRouteParams } from './inbox-route-schema';+import type { HomePreviewRouteParams } from './home-route-schema';type DetailSearch = Record<string, SerializedSearchParams | undefined>;-export type InboxPreviewNavigation = {- params: InboxPreviewRouteParams;+export type HomePreviewNavigation = {+ params: HomePreviewRouteParams;search: DetailSearch;};-export type InboxCalendarNavigation = {+export type HomeCalendarNavigation = {params: { period: CalendarPeriodView };search: DetailSearch;};/** Every detail namespace is written so a previous item's location cannot linger. */-export function inboxDetailSearch(+export function homeDetailSearch(detail: {channel?: SerializedSearchParams;document?: SerializedSearchParams;@@ -86,15 +86,15 @@ function channelTargetSearch(}/** Route destination for a resolved block target. */-export function inboxPreviewTargetNavigation(+export function homePreviewTargetNavigation(target: PreviewBlockTarget-): InboxPreviewNavigation {+): HomePreviewNavigation {return {params: {blockType: target.aliasContext?.alias ?? target.blockType,previewId: target.blockId,},- search: inboxDetailSearch({+ search: homeDetailSearch({channel: channelTargetSearch(target),document: documentDetailSearch(target),}),@@ -105,22 +105,22 @@ export function inboxPreviewTargetNavigation(* Route destination for a calendar event: the Calendar view's own period path* with the event and its locator range in the Calendar search namespace.*/-export function inboxCalendarNavigation(+export function homeCalendarNavigation(target: CalendarViewTarget,period: CalendarPeriodView = getPreferredCalendarPeriodView()-): InboxCalendarNavigation | undefined {+): HomeCalendarNavigation | undefined {if (!target.eventId) return;return {params: { period },- search: inboxDetailSearch({+ search: homeDetailSearch({calendar: calendarSearchCodec.serialize(calendarTargetSearch(target)),}),};}/** Reduces a live row to the block it opens and the params that locate content in it. */-export function inboxPreviewNavigation(+export function homePreviewNavigation(selection: PreviewPanelSelection-): InboxPreviewNavigation {- return inboxPreviewTargetNavigation(previewBlockTarget(selection));+): HomePreviewNavigation {+ return homePreviewTargetNavigation(previewBlockTarget(selection));}diff --git a/apps/web/src/features/inbox-view/inbox-route-schema.ts b/apps/web/src/features/home/home-route-schema.tssimilarity index 73%rename from apps/web/src/features/inbox-view/inbox-route-schema.tsrename to apps/web/src/features/home/home-route-schema.tsindex c5bc228d06..4577edaf77 100644--- a/apps/web/src/features/inbox-view/inbox-route-schema.ts+++ b/apps/web/src/features/home/home-route-schema.ts@@ -15,17 +15,17 @@ import { z } from 'zod';/*** The block an inline Home item opens. Aliases such as `task` name markdown* subtypes, as Drive's document routes do. `calendar` is not a block here:- * the `inbox-calendar` route renders the Calendar view at `calendar/:period`.+ * the `home-calendar` route renders the Calendar view at `calendar/:period`.*/-export const inboxPreviewRouteParams = z+export const homePreviewRouteParams = z.object({blockType: z.enum([...BlockRegistry, ...BlockAliasRegistry] as const),previewId: z.string().min(1),}).refine(({ blockType }) => blockType !== 'write' && blockType !== 'calendar');-export type InboxPreviewRouteParams = z.infer<typeof inboxPreviewRouteParams>;-export function isInboxDocumentType(value: string): value is DriveDocumentType {+export type HomePreviewRouteParams = z.infer<typeof homePreviewRouteParams>;+export function isHomeDocumentType(value: string): value is DriveDocumentType {return (DRIVE_DOCUMENT_TYPES as readonly string[]).includes(value);}@@ -37,12 +37,12 @@ const aliasBaseTypes: Record<BlockAlias, BlockName> = {};/**- * The block an item's path names once aliases resolve, so `/inbox/task/<id>`+ * The block an item's path names once aliases resolve, so `/home/task/<id>`* shares identity with `md:<id>`. Static so route declarations stay light* rather than loading every block definition.*/-export function inboxBaseBlockType(- blockType: InboxPreviewRouteParams['blockType']+export function homeBaseBlockType(+ blockType: HomePreviewRouteParams['blockType']): BlockName {return blockType in aliasBaseTypes? aliasBaseTypes[blockType as BlockAlias]@@ -50,7 +50,7 @@ export function inboxBaseBlockType(}/** Search the inline Home item owns; the channel namespace is shared with the channels view. */-export const INBOX_PREVIEW_SEARCH_NAMESPACES = [+export const HOME_PREVIEW_SEARCH_NAMESPACES = [channelsSearch.namespace,driveSearch.namespace,] as const;diff --git a/apps/web/src/features/inbox-view/inbox-route.ts b/apps/web/src/features/home/home-route.tssimilarity index 80%rename from apps/web/src/features/inbox-view/inbox-route.tsrename to apps/web/src/features/home/home-route.tsindex 3666261365..5ce410c7a3 100644--- a/apps/web/src/features/inbox-view/inbox-route.ts+++ b/apps/web/src/features/home/home-route.ts@@ -13,11 +13,11 @@ import { isBlockAlias, resolveBlockAlias } from '@core/constant/allBlocks';import { documentCommentLocation } from '@notifications/document-comment-location';import type { z } from 'zod';import {- type InboxPreviewRouteParams,- isInboxDocumentType,-} from './inbox-route-schema';+ type HomePreviewRouteParams,+ isHomeDocumentType,+} from './home-route-schema';-export type InboxPreviewSearch = {+export type HomePreviewSearch = {channel: Pick<z.infer<typeof channelsSearch.schema>,'messageId' | 'threadId'@@ -26,20 +26,20 @@ export type InboxPreviewSearch = {};/** Normalize typed and fallback child routes to the same block identity. */-export function inboxDetailParamsFromRoute(params: {- blockType?: InboxPreviewRouteParams['blockType'];+export function homeDetailParamsFromRoute(params: {+ blockType?: HomePreviewRouteParams['blockType'];previewId?: string;channelId?: string;documentType?: string;documentId?: string;-}): InboxPreviewRouteParams | undefined {+}): HomePreviewRouteParams | undefined {if (params.channelId) {return { blockType: 'channel', previewId: params.channelId };}if (params.documentType &¶ms.documentId &&- isInboxDocumentType(params.documentType)+ isHomeDocumentType(params.documentType)) {return {blockType: params.documentType,@@ -52,7 +52,7 @@ export function inboxDetailParamsFromRoute(params: {}function channelParams(- search: InboxPreviewSearch['channel']+ search: HomePreviewSearch['channel']): Record<string, string> | undefined {if (!search.messageId) return;return {@@ -64,8 +64,8 @@ function channelParams(}function commentParams(- blockType: InboxPreviewRouteParams['blockType'],- search: InboxPreviewSearch['document']+ blockType: HomePreviewRouteParams['blockType'],+ search: HomePreviewSearch['document']): Record<string, string> | undefined {if (!search.commentId) return;const alias = isBlockAlias(blockType) ? blockType : undefined;@@ -76,9 +76,9 @@ function commentParams(}/** The block the path names, with the location params the URL carries for it. */-export function inboxPreviewTarget(- params: InboxPreviewRouteParams,- search: InboxPreviewSearch+export function homePreviewTarget(+ params: HomePreviewRouteParams,+ search: HomePreviewSearch): PreviewBlockTarget {const blockType = resolveBlockAlias(params.blockType);return {@@ -95,11 +95,11 @@ export function inboxPreviewTarget(}/** Full-block compatibility content for touch surfaces. */-export function inboxPreviewLegacyTarget(- params: InboxPreviewRouteParams,- search: InboxPreviewSearch+export function homePreviewLegacyTarget(+ params: HomePreviewRouteParams,+ search: HomePreviewSearch): SplitContent {- const target = inboxPreviewTarget(params, search);+ const target = homePreviewTarget(params, search);return {type: params.blockType,id: params.previewId,@@ -108,7 +108,7 @@ export function inboxPreviewLegacyTarget(}/** Calendar view content for touch surfaces, from the inline calendar route's period and search. */-export function inboxCalendarLegacyTarget(+export function homeCalendarLegacyTarget(period: CalendarPeriodView,search: CalendarSearchParams): SplitContent {diff --git a/apps/web/src/features/home/home-tab-search.ts b/apps/web/src/features/home/home-tab-search.tsnew file mode 100644index 0000000000..90040dff30--- /dev/null+++ b/apps/web/src/features/home/home-tab-search.ts@@ -0,0 +1,11 @@+import { createSearchParamsCodec } from '@app/lib/split-router';+import { z } from 'zod';+import type { HomeTab } from './types';++export const homeTabSearch = {+ namespace: 'home',+ schema: z.object({ tab: z.enum(['signal', 'noise', 'reminders']) }),+ defaults: { tab: 'signal' as HomeTab },+};++export const homeTabSearchCodec = createSearchParamsCodec(homeTabSearch);diff --git a/apps/web/src/features/inbox-view/inbox-view-context.tsx b/apps/web/src/features/home/home-view-context.tsxsimilarity index 68%rename from apps/web/src/features/inbox-view/inbox-view-context.tsxrename to apps/web/src/features/home/home-view-context.tsxindex d4e9694cb5..356fa274b1 100644--- a/apps/web/src/features/inbox-view/inbox-view-context.tsx+++ b/apps/web/src/features/home/home-view-context.tsx@@ -33,39 +33,36 @@ import {type SetStoreFunction,type Store,} from 'solid-js/store';-import { useInboxCalendarPreview } from './inbox-calendar-preview';+import { useHomeCalendarPreview } from './home-calendar-preview';import {- type InboxPreviewNavigation,- inboxDetailSearch,- inboxPreviewTargetNavigation,-} from './inbox-preview-navigation';-import { inboxDetailParamsFromRoute, inboxPreviewTarget } from './inbox-route';-import { isInboxDocumentType } from './inbox-route-schema';-import { inboxTabSearch, inboxTabSearchCodec } from './inbox-tab-search';+ type HomePreviewNavigation,+ homeDetailSearch,+ homePreviewTargetNavigation,+} from './home-preview-navigation';+import { homeDetailParamsFromRoute, homePreviewTarget } from './home-route';+import { isHomeDocumentType } from './home-route-schema';+import { homeTabSearch, homeTabSearchCodec } from './home-tab-search';+import { createHomeViewPersistence, normalizeHomeFacets } from './persistence';import {- createInboxViewPersistence,- normalizeInboxFacets,-} from './persistence';-import {- inboxChannelRoute,- inboxDocumentRoute,- inboxPreviewRoute,- inboxSplitRoute,+ homeChannelRoute,+ homeDocumentRoute,+ homePreviewRoute,+ homeSplitRoute,} from './route';import type {- InboxGroupBy,- InboxTab,- InboxViewState,- InboxViewStateOptions,+ HomeGroupBy,+ HomeTab,+ HomeViewState,+ HomeViewStateOptions,} from './types';-type InboxViewProviderProps = ContextProviderProps & {- initialState?: InboxViewStateOptions;+type HomeViewProviderProps = ContextProviderProps & {+ initialState?: HomeViewStateOptions;};-export type InboxViewContext = {- state: Store<InboxViewState>;- setState: SetStoreFunction<InboxViewState>;+export type HomeViewContext = {+ state: Store<HomeViewState>;+ setState: SetStoreFunction<HomeViewState>;/** The block the route currently opens inline, if any. */previewTarget: Accessor<PreviewBlockTarget | undefined>;/** Re-aim a target when the selected row is opened again at the same URL. */@@ -76,37 +73,37 @@ export type InboxViewContext = {calendarRefocus: Accessor<number>;openPreview: (entity: PreviewSelection) => boolean;closePreview: () => void;- setTab: (tab: InboxTab) => void;+ setTab: (tab: HomeTab) => void;setFacets: (facets: FacetSelection) => void;};-function defaultGroupBy(tab: InboxTab): InboxGroupBy {+function defaultGroupBy(tab: HomeTab): HomeGroupBy {return tab === 'reminders' ? 'none' : 'date';}-export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<- InboxViewContext,- InboxViewProviderProps->('InboxView', (props) => {+export const [HomeViewProvider, useHomeView] = createAssertedContextProvider<+ HomeViewContext,+ HomeViewProviderProps+>('HomeView', (props) => {const panel = useSplitPanelOrThrow();const userId = useUserId();const navigate = useNavigate();const routeParams =- useParams<Parameters<typeof inboxDetailParamsFromRoute>[0]>();+ useParams<Parameters<typeof homeDetailParamsFromRoute>[0]>();const [channelSearch] = createSearchParams(channelsSearch);const [documentSearch] = createSearchParams(driveSearch);- const [tabSearch] = createSearchParams(inboxTabSearch);+ const [tabSearch] = createSearchParams(homeTabSearch);const selectPreview = createPreviewSelectionGuard();const initial = props.initialState ?? {};const initialTab = initial.tab ?? 'signal';const [state, setState] = makePersistedState(- createStore<InboxViewState>({+ createStore<HomeViewState>({tab: initialTab,search: initial.search ?? '',groupBy: initial.groupBy ?? defaultGroupBy(initialTab),- facets: normalizeInboxFacets(initial.facets),+ facets: normalizeHomeFacets(initial.facets),}),- createInboxViewPersistence({+ createHomeViewPersistence({handle: panel.handle,userId,restoreEntryState: props.initialState === undefined,@@ -130,9 +127,9 @@ export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<);const previewTarget = createMemo<PreviewBlockTarget | undefined>(() => {- const params = inboxDetailParamsFromRoute(routeParams);+ const params = homeDetailParamsFromRoute(routeParams);if (!params) return;- return inboxPreviewTarget(params, {+ return homePreviewTarget(params, {channel: channelSearch,document: documentSearch,});@@ -141,34 +138,34 @@ export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<search: Record<string, SerializedSearchParams | undefined>) => ({...search,- [inboxTabSearch.namespace]: inboxTabSearchCodec.serialize({+ [homeTabSearch.namespace]: homeTabSearchCodec.serialize({tab: state.tab,}),});const { calendarOpen, calendarRefocus, openCalendarEvent } =- useInboxCalendarPreview(withTab);+ useHomeCalendarPreview(withTab);const navigateDetail = (- { params, search }: InboxPreviewNavigation,+ { params, search }: HomePreviewNavigation,replace = false) => {const { blockType, previewId } = params;const target =blockType === 'channel'- ? { route: inboxChannelRoute, params: { channelId: previewId } }- : isInboxDocumentType(blockType)+ ? { route: homeChannelRoute, params: { channelId: previewId } }+ : isHomeDocumentType(blockType)? {- route: inboxDocumentRoute,+ route: homeDocumentRoute,params: { documentType: blockType, documentId: previewId },}- : { route: inboxPreviewRoute, params };+ : { route: homePreviewRoute, params };navigate(target, { replace, search: withTab(search) });};const navigateTarget = (target: PreviewBlockTarget, replace = false) =>- navigateDetail(inboxPreviewTargetNavigation(target), replace);+ navigateDetail(homePreviewTargetNavigation(target), replace);const closePreview = () =>navigate(- { route: inboxSplitRoute, params: {} },- { search: withTab(inboxDetailSearch()) }+ { route: homeSplitRoute, params: {} },+ { search: withTab(homeDetailSearch()) });const [previewNavigationRequest, setPreviewNavigationRequest] =createSignal(0);@@ -182,8 +179,8 @@ export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<if (current &&deepEqual(- inboxPreviewTargetNavigation(current),- inboxPreviewTargetNavigation(target)+ homePreviewTargetNavigation(current),+ homePreviewTargetNavigation(target))) {setPreviewNavigationRequest((count) => count + 1);@@ -199,13 +196,13 @@ export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<if (previous) navigateTarget(previous, true);elsenavigate(- { route: inboxSplitRoute, params: {} },- { replace: true, search: withTab(inboxDetailSearch()) }+ { route: homeSplitRoute, params: {} },+ { replace: true, search: withTab(homeDetailSearch()) });}));- const setTab = (tab: InboxTab) => {+ const setTab = (tab: HomeTab) => {if (state.tab === tab) return;setState(produce((draft) => {@@ -217,7 +214,7 @@ export const [InboxViewProvider, useInboxView] = createAssertedContextProvider<};const setFacets = (facets: FacetSelection) => {- setState('facets', reconcile(normalizeInboxFacets(facets)));+ setState('facets', reconcile(normalizeHomeFacets(facets)));};return {diff --git a/apps/web/src/features/inbox-view/inbox-view.tsx b/apps/web/src/features/home/home-view.tsxsimilarity index 76%rename from apps/web/src/features/inbox-view/inbox-view.tsxrename to apps/web/src/features/home/home-view.tsxindex dda7a69da1..99a3ee82a9 100644--- a/apps/web/src/features/inbox-view/inbox-view.tsx+++ b/apps/web/src/features/home/home-view.tsx@@ -14,20 +14,20 @@ import { ListEntityMetadataQueryProvider } from '@entity';import SpinnerIcon from '@phosphor/spinner.svg';import { createEffect, onMount, Show } from 'solid-js';import { HomeChatStart } from './components/HomeChatStart';+import { HomeList } from './components/HomeList';+import { HomeListLayout } from './components/HomeListLayout';import { HomeReturnBreadcrumb } from './components/HomeReturnBreadcrumb';-import { InboxListLayout } from './components/InboxHeader';-import { InboxList } from './components/InboxList';-import { InboxTabs } from './components/InboxTabs';-import { InboxViewProvider, useInboxView } from './inbox-view-context';-import { inboxCalendarRoute } from './route';-import type { InboxViewStateOptions } from './types';+import { HomeTabs } from './components/HomeTabs';+import { HomeViewProvider, useHomeView } from './home-view-context';+import { homeCalendarRoute } from './route';+import type { HomeViewStateOptions } from './types';-export type InboxViewProps = {+export type HomeViewProps = {/** Explicit navigation state. When present, it wins over entry restoration. */- initialState?: InboxViewStateOptions;+ initialState?: HomeViewStateOptions;};-function InboxFallback() {+function HomeFallback() {return (<div class="grid min-h-0 min-w-0 flex-1 place-items-center text-ink-muted"><SpinnerIcon aria-label="Loading Home" class="size-5 animate-spin" />@@ -46,10 +46,10 @@ function HomeListPane(props: {};return (- <InboxListLayout+ <HomeListLayouttabs={- <DebugSuspense name="InboxView.tabs">- <InboxTabs />+ <DebugSuspense name="HomeView.tabs">+ <HomeTabs /></DebugSuspense>}onNewChat={() => {@@ -57,18 +57,18 @@ function HomeListPane(props: {showContent();}}>- <DebugSuspense name="InboxView.list" fallback={<InboxFallback />}>- <InboxList+ <DebugSuspense name="HomeView.list" fallback={<HomeFallback />}>+ <HomeListhasPreview={props.hasPreview}onPreviewEntityChange={props.onPreviewEntityChange}onPreviewActivate={showContent}/></DebugSuspense>- </InboxListLayout>+ </HomeListLayout>);}-function InboxViewRoot() {+function HomeViewRoot() {const panel = useSplitPanelOrThrow();const {state,@@ -77,7 +77,7 @@ function InboxViewRoot() {calendarOpen,openPreview,closePreview,- } = useInboxView();+ } = useHomeView();createEffect(() => {if (state.tab !== 'reminders') return;@@ -104,13 +104,13 @@ function InboxViewRoot() {fallback={<div class="size-full min-h-0 bg-panel"><ViewShell.Root- asidePreferenceKey="inbox"+ asidePreferenceKey="home"aside={{ preserveDuringResize: false }}main={{ preferredWidth: 640 }}resizable><ViewShell.Aside class="flex flex-col bg-panel">- <DebugSuspense name="InboxView.list-pane">+ <DebugSuspense name="HomeView.list-pane"><HomeListPanehasPreview={previewTarget() !== undefined || calendarOpen()@@ -125,8 +125,8 @@ function InboxViewRoot() {the list stays mounted and a pending detail's effectswait until it resolves. */}<DebugSuspense- name="InboxView.outlet"- fallback={<InboxFallback />}+ name="HomeView.outlet"+ fallback={<HomeFallback />}><SplitRouter.Outletfallback={() => <HomeChatStart />}@@ -139,7 +139,7 @@ function InboxViewRoot() {><ViewShell.Root aside={false} main={{ min: 224 }}><ViewShell.Main>- <DebugSuspense name="InboxView.list-pane">+ <DebugSuspense name="HomeView.list-pane"><HomeListPanehasPreview={previewTarget() !== undefined || calendarOpen()@@ -159,9 +159,9 @@ function InboxViewRoot() {}/** The Calendar view aimed at an event, inside Home's inline preview chrome. */-function InboxCalendarRouteContent() {+function HomeCalendarRouteContent() {const panel = useSplitPanelOrThrow();- const { closePreview, calendarRefocus } = useInboxView();+ const { closePreview, calendarRefocus } = useHomeView();const [search] = createSearchParams(calendarSearch);return (@@ -171,28 +171,28 @@ function InboxCalendarRouteContent() {headerLeading={<HomeReturnBreadcrumb onReturn={closePreview} />}locationKey={() => `${search.eventId}:${search.occurrenceKey}`}>- <CalendarView route={inboxCalendarRoute} refocus={calendarRefocus} />+ <CalendarView route={homeCalendarRoute} refocus={calendarRefocus} /></PreviewFrame></div>);}-export function InboxCalendarRouteView() {+export function HomeCalendarRouteView() {return (- <DebugSuspense name="InboxView.calendar-route">- <InboxCalendarRouteContent />+ <DebugSuspense name="HomeView.calendar-route">+ <HomeCalendarRouteContent /></DebugSuspense>);}-function InboxDetailRouteContent() {+function HomeDetailRouteContent() {const panel = useSplitPanelOrThrow();const orchestrator = useGlobalBlockOrchestrator();const { previewTarget, previewNavigationRequest, closePreview } =- useInboxView();+ useHomeView();return (- <DebugSuspense name="InboxView.detail-content">+ <DebugSuspense name="HomeView.detail-content"><PreviewPaneltarget={previewTarget()}navigationRequest={previewNavigationRequest()}@@ -204,21 +204,21 @@ function InboxDetailRouteContent() {);}-export function InboxDetailRouteView() {+export function HomeDetailRouteView() {return (- <DebugSuspense name="InboxView.detail-route">- <InboxDetailRouteContent />+ <DebugSuspense name="HomeView.detail-route">+ <HomeDetailRouteContent /></DebugSuspense>);}-/** Composable heterogeneous Inbox built on the shared view and Soup primitives. */-export function InboxView(props: InboxViewProps) {+/** Composable heterogeneous Home built on the shared view and Soup primitives. */+export function HomeView(props: HomeViewProps) {return (- <DebugSuspense name="InboxView.root">- <InboxViewProvider initialState={props.initialState}>- <InboxViewRoot />- </InboxViewProvider>+ <DebugSuspense name="HomeView.root">+ <HomeViewProvider initialState={props.initialState}>+ <HomeViewRoot />+ </HomeViewProvider></DebugSuspense>);}diff --git a/apps/web/src/features/home/home.tsx b/apps/web/src/features/home/home.tsxdeleted file mode 100644index da13c9238b..0000000000--- a/apps/web/src/features/home/home.tsx+++ /dev/null@@ -1,147 +0,0 @@-import { ShowFeatureFlag } from '@app/lib/analytics/posthog';-import { DebugSuspense } from '@channel/DebugSuspense';-import { FloatRegionOrInline } from '@components/app/mobile/float-regions/FloatRegion';-import { DragDropWrapper } from '@core/component/AI/component/DragDrop';-import { ChatInputProvider } from '@core/component/AI/context';-import {- enableHomeRecommendations,- enableHomeView,-} from '@core/constant/featureFlags';-import { useUserContext } from '@core/context/user';-import { Navigate } from '@solidjs/router';-import { HomeBackfillProgress } from './home-backfill-progress';-import { HomeChatInput } from './home-chat-input';-import { HomeExamples } from './home-examples';-import { HomeGettingStartedLink } from './home-getting-started-link';-import { GettingStartedSection, RecommendedSection } from './home-hub';-import { useHomePreferences } from './home-prefs';-import { HomeSectionBoundary } from './home-section-boundary';--const MACRO_LOGO_PATH =- 'm6.25 4.038-2.242 0.8792v5.8184l-1.756-1.6582-2.242 0.8792v6.6766c0 0.2568 0.106 0.502 0.292 0.6784l2.794 2.6422 2.244-0.879v-5.8184l7.084 6.6974 2.244-0.879v-5.8184l7.086 6.6976 2.24-0.8792v-6.6766c0-0.2568-0.104-0.5022-0.292-0.6784l-8.124-7.6816-2.244 0.879v5.8184z';--function AnimatedHeroLogo(props: { class?: string }) {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- class={props.class}- display="block"- >- <defs>- <clipPath id="home-hero-logo-fill">- <rect- class="home-logo-fill-clip"- x="0"- y="0"- width="24"- height="24"- />- </clipPath>- </defs>- <path d={MACRO_LOGO_PATH} fill="currentColor" opacity="0.12" />- <path- d={MACRO_LOGO_PATH}- fill="currentColor"- clip-path="url(#home-hero-logo-fill)"- />- </svg>- );-}--function getGreeting() {- const hour = new Date().getHours();- if (hour < 12) return 'Good morning';- if (hour < 18) return 'Good afternoon';- return 'Good evening';-}--export function Home() {- return (- <DebugSuspense name="Home.root">- <ShowFeatureFlag flag={enableHomeView} fallback={<Navigate href="/" />}>- <ChatInputProvider>- <DragDropWrapper class="relative size-full">- <HomeContent />- </DragDropWrapper>- </ChatInputProvider>- </ShowFeatureFlag>- </DebugSuspense>- );-}--function HomeContent() {- const user = useUserContext();- const preferences = useHomePreferences();-- const firstName = () => {- const name = user.author();- return name.includes('@') ? name.split('@')[0] : name.split(' ')[0];- };-- const greeting = getGreeting();-- return (- <main class="relative flex h-full flex-col bg-surface">- <style>{- /*css*/ `- @keyframes home-hero-logo-fill {- from { transform: scaleX(0); }- to { transform: scaleX(1); }- }- @keyframes home-fade-in {- from { opacity: 0; transform: translateY(6px); }- to { opacity: 1; transform: translateY(0); }- }- .home-logo-fill-clip {- transform-box: fill-box;- transform-origin: left center;- animation: home-hero-logo-fill 550ms cubic-bezier(0.2, 0.8, 0.2, 1) 50ms both;- }- .home-content { animation: home-fade-in 280ms ease-out both; }- @media (prefers-reduced-motion: reduce) {- .home-logo-fill-clip, .home-content { animation: none; }- }- `- }</style>-- <div class="min-h-0 flex-1 overflow-y-auto">- <div class="home-content mx-auto flex w-full max-w-3xl flex-col gap-6 px-4 pb-6 pt-10 touch:pt-[calc(var(--mobile-content-inset-top,0px)+0.5rem)] touch:pb-(--mobile-content-inset-bottom) md:pt-16">- <header class="flex items-center gap-2.5">- <AnimatedHeroLogo class="size-6 shrink-0 text-accent" />- <h1 class="text-xl font-normal tracking-tight text-ink">- {greeting}, <span class="capitalize">{firstName()}</span>- </h1>- </header>-- <HomeSectionBoundary title="import">- <HomeBackfillProgress />- </HomeSectionBoundary>-- <ShowFeatureFlag flag={enableHomeRecommendations}>- <HomeSectionBoundary title="recommendations" fallback={null}>- <RecommendedSection />- </HomeSectionBoundary>- </ShowFeatureFlag>-- <HomeSectionBoundary title="getting started" fallback={null}>- <GettingStartedSection preferences={preferences} />- </HomeSectionBoundary>-- <HomeSectionBoundary title="examples">- <HomeExamples preferences={preferences} />- </HomeSectionBoundary>- </div>- </div>-- <DebugSuspense name="Home.accessory">- <FloatRegionOrInline region="accessory">- <div class="mx-auto w-full max-w-3xl shrink-0 px-4 pb-3 pointer-events-auto touch:px-(--mobile-chrome-gutter) touch:pb-0">- <HomeChatInput />- <HomeGettingStartedLink preferences={preferences} />- </div>- </FloatRegionOrInline>- </DebugSuspense>- </main>- );-}diff --git a/apps/web/src/features/home/inbox-start.tsx b/apps/web/src/features/home/inbox-start.tsxdeleted file mode 100644index 263cbd726a..0000000000--- a/apps/web/src/features/home/inbox-start.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { DragDropWrapper } from '@core/component/AI/component/DragDrop';-import { ChatInputProvider } from '@core/component/AI/context';-import { HomeRecommendedActions } from './components/home-recommended-actions';-import { HomeStartLayout } from './components/home-start-layout';-import { HomeChatInput } from './home-chat-input';--/** Desktop inbox landing pane, sharing the original Home composer and recommendations. */-export function InboxStart() {- return (- <ChatInputProvider>- <DragDropWrapper class="relative size-full">- <HomeStartLayout- composer={- <HomeChatInput- variant="default"- autoFocusOnMount={false}- placeholder="Work on anything"- />- }- suggestions={<HomeRecommendedActions />}- />- </DragDropWrapper>- </ChatInputProvider>- );-}diff --git a/apps/web/src/features/home/index.ts b/apps/web/src/features/home/index.tsdeleted file mode 100644index e331f58c5b..0000000000--- a/apps/web/src/features/home/index.ts+++ /dev/null@@ -1 +0,0 @@-export { Home } from './home';diff --git a/apps/web/src/features/inbox-view/persistence.ts b/apps/web/src/features/home/persistence.tssimilarity index 64%rename from apps/web/src/features/inbox-view/persistence.tsrename to apps/web/src/features/home/persistence.tsindex 77f46a65d7..ad360101f4 100644--- a/apps/web/src/features/inbox-view/persistence.ts+++ b/apps/web/src/features/home/persistence.ts@@ -10,14 +10,14 @@ import {import { createUserScopedStorage } from '@core/util/userScopedStorage';import type { Accessor } from 'solid-js';import { z } from 'zod';-import type { InboxViewState } from './types';+import type { HomeViewState } from './types';-export const INBOX_ENTRY_STATE_KEY = 'inbox.view';-export const INBOX_LIST_ENTRY_STATE_KEY = 'inbox.listState';+export const HOME_ENTRY_STATE_KEY = 'home.view';+export const HOME_LIST_ENTRY_STATE_KEY = 'home.listState';const homeFilterStorage = createUserScopedStorage('macro:home:filters:v1');/** Status is a single choice; an empty selection means All. */-export function normalizeInboxFacets(raw: unknown) {+export function normalizeHomeFacets(raw: unknown) {const facets = normalizeFacetSelection(raw);if (facets.read?.length !== 1 ||@@ -28,64 +28,62 @@ export function normalizeInboxFacets(raw: unknown) {return facets;}-const inboxEntryStateSchemaWithDefaults = z.object({+const homeEntryStateSchemaWithDefaults = z.object({version: z.literal(1).default(1),tab: z.enum(['signal', 'noise']).default('signal'),facets: z.record(z.string(), z.array(z.string())).optional(),});-type InboxEntryState = z.infer<typeof inboxEntryStateSchemaWithDefaults>;+type HomeEntryState = z.infer<typeof homeEntryStateSchemaWithDefaults>;-const inboxListEntryStateSchemaWithDefaults = z.object({+const homeListEntryStateSchemaWithDefaults = z.object({version: z.literal(1).default(1),focusKey: z.string().optional(),scrollOffset: z.number().finite().default(0),});-type InboxListEntryState = z.infer<- typeof inboxListEntryStateSchemaWithDefaults->;+type HomeListEntryState = z.infer<typeof homeListEntryStateSchemaWithDefaults>;-const DEFAULT_INBOX_LIST_ENTRY_STATE = {+const DEFAULT_HOME_LIST_ENTRY_STATE = {version: 1,focusKey: undefined,scrollOffset: 0,-} satisfies InboxListEntryState;+} satisfies HomeListEntryState;-export type InboxListStateSnapshot = {- focusKey: InboxListEntryState['focusKey'];- scrollOffset: InboxListEntryState['scrollOffset'];+export type HomeListStateSnapshot = {+ focusKey: HomeListEntryState['focusKey'];+ scrollOffset: HomeListEntryState['scrollOffset'];};-export const DEFAULT_INBOX_LIST_STATE: InboxListStateSnapshot = {+export const DEFAULT_HOME_LIST_STATE: HomeListStateSnapshot = {focusKey: undefined,scrollOffset: 0,};-function selectEntryState(state: InboxViewState): InboxEntryState {+function selectEntryState(state: HomeViewState): HomeEntryState {return {version: 1,tab: 'signal',- facets: normalizeInboxFacets(state.facets),+ facets: normalizeHomeFacets(state.facets),};}-function createInboxEntryStorage(options: {+function createHomeEntryStorage(options: {handle: EntryPersistenceHandle;restore: boolean;-}): PersistenceStorage<InboxViewState> {+}): PersistenceStorage<HomeViewState> {return createEntryPersistenceStorage({handle: options.handle,- key: INBOX_ENTRY_STATE_KEY,+ key: HOME_ENTRY_STATE_KEY,restore: (current, stored) => {if (!options.restore) return undefined;- const result = inboxEntryStateSchemaWithDefaults.safeParse(stored);+ const result = homeEntryStateSchemaWithDefaults.safeParse(stored);return {...current,tab: 'signal',facets:result.success && result.data.facets !== undefined- ? normalizeInboxFacets(result.data.facets)+ ? normalizeHomeFacets(result.data.facets): current.facets,};},@@ -93,7 +91,7 @@ function createInboxEntryStorage(options: {});}-export type CreateInboxViewPersistenceOptions = {+export type CreateHomeViewPersistenceOptions = {handle: EntryPersistenceHandle;userId: Accessor<string | undefined>;restoreEntryState?: boolean;@@ -103,20 +101,20 @@ export type CreateInboxViewPersistenceOptions = {function createHomeFilterStorage(options: {userId: Accessor<string | undefined>;restore: boolean;-}): PersistenceStorage<InboxViewState> {+}): PersistenceStorage<HomeViewState> {return {restore: (current) => {const userId = options.userId();if (!options.restore || !userId) return undefined;const raw = homeFilterStorage.read(userId);if (raw === null) return undefined;- const result = inboxEntryStateSchemaWithDefaults.safeParse(+ const result = homeEntryStateSchemaWithDefaults.safeParse(JSON.parse(raw));if (!result.success || result.data.facets === undefined) return undefined;return {...current,- facets: normalizeInboxFacets(result.data.facets),+ facets: normalizeHomeFacets(result.data.facets),};},write: (current) => {@@ -130,17 +128,17 @@ function createHomeFilterStorage(options: {};}-export function createInboxListEntryStorage(+export function createHomeListEntryStorage(handle: EntryPersistenceHandle-): PersistenceStorage<InboxListStateSnapshot> {+): PersistenceStorage<HomeListStateSnapshot> {return createEntryPersistenceStorage({handle,- key: INBOX_LIST_ENTRY_STATE_KEY,+ key: HOME_LIST_ENTRY_STATE_KEY,restore: (current, stored) => {- const result = inboxListEntryStateSchemaWithDefaults.safeParse(stored);+ const result = homeListEntryStateSchemaWithDefaults.safeParse(stored);const restored = result.success? result.data- : DEFAULT_INBOX_LIST_ENTRY_STATE;+ : DEFAULT_HOME_LIST_ENTRY_STATE;return {...current,@@ -148,7 +146,7 @@ export function createInboxListEntryStorage(scrollOffset: restored.scrollOffset,};},- select: (state): InboxListEntryState => ({+ select: (state): HomeListEntryState => ({version: 1,...(state.focusKey === undefined ? {} : { focusKey: state.focusKey }),scrollOffset: state.scrollOffset,@@ -157,16 +155,16 @@ export function createInboxListEntryStorage(}/** Shared persistence restores user filters, then the owning split entry. */-export function createInboxViewPersistence(- options: CreateInboxViewPersistenceOptions-): MakePersistedStateOptions<InboxViewState> {+export function createHomeViewPersistence(+ options: CreateHomeViewPersistenceOptions+): MakePersistedStateOptions<HomeViewState> {return {storages: [createHomeFilterStorage({userId: options.userId,restore: options.restorePreferences ?? true,}),- createInboxEntryStorage({+ createHomeEntryStorage({handle: options.handle,restore: options.restoreEntryState ?? true,}),diff --git a/apps/web/src/features/inbox-view/queries/home-date-buckets.test.ts b/apps/web/src/features/home/queries/home-date-buckets.test.tssimilarity index 100%rename from apps/web/src/features/inbox-view/queries/home-date-buckets.test.tsrename to apps/web/src/features/home/queries/home-date-buckets.test.tsdiff --git a/apps/web/src/features/inbox-view/queries/home-date-buckets.ts b/apps/web/src/features/home/queries/home-date-buckets.tssimilarity index 100%rename from apps/web/src/features/inbox-view/queries/home-date-buckets.tsrename to apps/web/src/features/home/queries/home-date-buckets.tsdiff --git a/apps/web/src/features/inbox-view/queries/inbox-item-filter.test.ts b/apps/web/src/features/home/queries/home-item-filter.test.tssimilarity index 62%rename from apps/web/src/features/inbox-view/queries/inbox-item-filter.test.tsrename to apps/web/src/features/home/queries/home-item-filter.test.tsindex 3547f81d51..2b6b1fda92 100644--- a/apps/web/src/features/inbox-view/queries/inbox-item-filter.test.ts+++ b/apps/web/src/features/home/queries/home-item-filter.test.ts@@ -1,6 +1,6 @@import type { SoupApiItem } from '@service-storage/generated/schemas';import { describe, expect, it } from 'vitest';-import { soupItemMatchesInboxTab } from './inbox-item-filter';+import { soupItemMatchesHomeTab } from './home-item-filter';function emailItem(overrides: { isSignal?: boolean } = {}): SoupApiItem {return {@@ -26,44 +26,44 @@ const signalEmail = emailItem({ isSignal: true });describe('signal tab', () => {it('rejects noise emails', () => {- expect(soupItemMatchesInboxTab(noiseEmail, 'signal')).toBe(false);+ expect(soupItemMatchesHomeTab(noiseEmail, 'signal')).toBe(false);});it('accepts signal emails', () => {- expect(soupItemMatchesInboxTab(signalEmail, 'signal')).toBe(true);+ expect(soupItemMatchesHomeTab(signalEmail, 'signal')).toBe(true);});it('rejects emails cached before the isSignal field shipped', () => {- expect(soupItemMatchesInboxTab(emailItem(), 'signal')).toBe(false);+ expect(soupItemMatchesHomeTab(emailItem(), 'signal')).toBe(false);});it('accepts non-email items', () => {- expect(soupItemMatchesInboxTab(taskItem, 'signal')).toBe(true);+ expect(soupItemMatchesHomeTab(taskItem, 'signal')).toBe(true);});});describe('noise tab', () => {it('accepts noise emails', () => {- expect(soupItemMatchesInboxTab(noiseEmail, 'noise')).toBe(true);+ expect(soupItemMatchesHomeTab(noiseEmail, 'noise')).toBe(true);});it('rejects signal emails', () => {- expect(soupItemMatchesInboxTab(signalEmail, 'noise')).toBe(false);+ expect(soupItemMatchesHomeTab(signalEmail, 'noise')).toBe(false);});it('rejects emails cached before the isSignal field shipped', () => {- expect(soupItemMatchesInboxTab(emailItem(), 'noise')).toBe(false);+ expect(soupItemMatchesHomeTab(emailItem(), 'noise')).toBe(false);});it('rejects non-email items', () => {- expect(soupItemMatchesInboxTab(taskItem, 'noise')).toBe(false);+ expect(soupItemMatchesHomeTab(taskItem, 'noise')).toBe(false);});});describe('reminders tab', () => {it('accepts only reminders', () => {- expect(soupItemMatchesInboxTab(reminderItem, 'reminders')).toBe(true);- expect(soupItemMatchesInboxTab(taskItem, 'reminders')).toBe(false);- expect(soupItemMatchesInboxTab(noiseEmail, 'reminders')).toBe(false);+ expect(soupItemMatchesHomeTab(reminderItem, 'reminders')).toBe(true);+ expect(soupItemMatchesHomeTab(taskItem, 'reminders')).toBe(false);+ expect(soupItemMatchesHomeTab(noiseEmail, 'reminders')).toBe(false);});});diff --git a/apps/web/src/features/inbox-view/queries/inbox-item-filter.ts b/apps/web/src/features/home/queries/home-item-filter.tssimilarity index 80%rename from apps/web/src/features/inbox-view/queries/inbox-item-filter.tsrename to apps/web/src/features/home/queries/home-item-filter.tsindex 3c93948926..8aed76be64 100644--- a/apps/web/src/features/inbox-view/queries/inbox-item-filter.ts+++ b/apps/web/src/features/home/queries/home-item-filter.ts@@ -1,10 +1,10 @@import type { SoupApiItem } from '@service-storage/generated/schemas';import { match } from 'ts-pattern';-import type { InboxTab } from '../types';+import type { HomeTab } from '../types';/**- * Item-level mirror of the inbox tabs' server-side membership, used as the- * inbox query's `meta.insertFilter`. Websocket-driven cache operations+ * Item-level mirror of the Home tabs' server-side membership, used as the+ * Home query's `meta.insertFilter`. Websocket-driven cache operations* (`insertSoupEntity`, `restoreSoupEntityToDoneFilteredQueries`) prepend into* every matching soup query and only this filter tells them which tab an item* belongs to — without it a noise email lands in the Signal feed (and vice@@ -14,9 +14,9 @@ import type { InboxTab } from '../types';* server response is never filtered through this, so a miss can only delay an* optimistic insert, not hide a row.*/-export function soupItemMatchesInboxTab(+export function soupItemMatchesHomeTab(item: SoupApiItem,- tab: InboxTab+ tab: HomeTab): boolean {return match(tab).with(diff --git a/apps/web/src/features/inbox-view/queries/home-pagination.ts b/apps/web/src/features/home/queries/home-pagination.tssimilarity index 100%rename from apps/web/src/features/inbox-view/queries/home-pagination.tsrename to apps/web/src/features/home/queries/home-pagination.tsdiff --git a/apps/web/src/features/inbox-view/queries/inbox-query.ts b/apps/web/src/features/home/queries/home-query.tssimilarity index 81%rename from apps/web/src/features/inbox-view/queries/inbox-query.tsrename to apps/web/src/features/home/queries/home-query.tsindex 282b3d1e6c..e5a38a26c4 100644--- a/apps/web/src/features/inbox-view/queries/inbox-query.ts+++ b/apps/web/src/features/home/queries/home-query.ts@@ -12,10 +12,10 @@ import {import type { SoupAstBody, SoupAstItemsQueryArgs } from '@queries/soup/items';import { startOfDay, subWeeks } from 'date-fns';import { match } from 'ts-pattern';-import { INBOX_FACETS, type InboxFacetContext } from '../inbox-facets';-import type { InboxTab } from '../types';+import { HOME_FACETS, type HomeFacetContext } from '../home-facets';+import type { HomeTab } from '../types';-export type InboxQueryCapabilities = {+export type HomeQueryCapabilities = {calendar: boolean;foreignEntities: boolean;notifiedSort: boolean;@@ -25,7 +25,7 @@ export type InboxQueryCapabilities = {function documentClause(expressions: TargetExpr[],- capabilities: InboxQueryCapabilities+ capabilities: HomeQueryCapabilities): TargetExpr {if (capabilities.snippets) return clause.and(...expressions);@@ -36,7 +36,7 @@ function documentClause(}function signalClause(- capabilities: InboxQueryCapabilities,+ capabilities: HomeQueryCapabilities,now: Date,userId: string | undefined): FacetClause {@@ -114,8 +114,8 @@ function remindersClause(): FacetClause {}function tabClause(- tab: InboxTab,- capabilities: InboxQueryCapabilities,+ tab: HomeTab,+ capabilities: HomeQueryCapabilities,now: Date,userId: string | undefined): FacetClause {@@ -126,11 +126,11 @@ function tabClause(.exhaustive();}-export type InboxViewContext = {- tab: InboxTab;+export type HomeViewContext = {+ tab: HomeTab;facets: FacetSelection;- facetContext: InboxFacetContext;- capabilities: InboxQueryCapabilities;+ facetContext: HomeFacetContext;+ capabilities: HomeQueryCapabilities;userId: string | undefined;};@@ -139,24 +139,24 @@ export type InboxViewContext = {* notification puts it, not where its content's last edit does — a comment* on a week-old task is today's news.*/-export const inboxTabIsNotificationFeed = (tab: InboxTab): boolean =>+export const homeTabIsNotificationFeed = (tab: HomeTab): boolean =>tab === 'signal' || tab === 'noise';/*** Whether to ask the server to sort (and, being a sort-as-filter, restrict)* these tabs by the viewer's latest notification. Gated behind a flag: the* candidate query is costly. Client-side date bucketing is not gated on it —- * see `inboxGroupTimestamp` — so a live notification still re-buckets its row+ * see `homeGroupTimestamp` — so a live notification still re-buckets its row* even while the server keeps sorting by content recency.*/-export const inboxTabOrdersByNotification = (- context: Pick<InboxViewContext, 'tab' | 'capabilities'>+export const homeTabOrdersByNotification = (+ context: Pick<HomeViewContext, 'tab' | 'capabilities'>): boolean =>- context.capabilities.notifiedSort && inboxTabIsNotificationFeed(context.tab);+ context.capabilities.notifiedSort && homeTabIsNotificationFeed(context.tab);-/** Builds the heterogeneous Soup AST for the composable Inbox view. */-export function buildInboxQuery(- context: InboxViewContext,+/** Builds the heterogeneous Soup AST for the composable Home view. */+export function buildHomeQuery(+ context: HomeViewContext,options: { now?: Date } = {}): SoupAstItemsQueryArgs {const base = compileClause(@@ -169,7 +169,7 @@ export function buildInboxQuery();const refinements = compileFacets(context.facets,- INBOX_FACETS,+ HOME_FACETS,context.facetContext);const body: SoupAstBody = mergeAst(base, refinements);@@ -182,7 +182,7 @@ export function buildInboxQuery(params: {expand: true,limit: 100,- sort_method: inboxTabOrdersByNotification(context)+ sort_method: homeTabOrdersByNotification(context)? 'notified_at': 'updated_at',sort_direction: context.tab === 'reminders' ? 'asc' : 'desc',diff --git a/apps/web/src/features/inbox-view/queries/inbox-results.test.ts b/apps/web/src/features/home/queries/home-results.test.tssimilarity index 94%rename from apps/web/src/features/inbox-view/queries/inbox-results.test.tsrename to apps/web/src/features/home/queries/home-results.test.tsindex bcddfaa06c..5ee70f4f46 100644--- a/apps/web/src/features/inbox-view/queries/inbox-results.test.ts+++ b/apps/web/src/features/home/queries/home-results.test.ts@@ -2,13 +2,13 @@ import type { EntityData, WithNotification } from '@entity';import { soupPageTimestamp } from '@queries/soup/page-timestamp';import { describe, expect, it, vi } from 'vitest';import { getHomePagination } from './home-pagination';-import { buildInboxQuery } from './inbox-query';+import { buildHomeQuery } from './home-query';import {groupHomeEntitiesByDate,- groupInboxEntitiesByDate,- inboxGroupTimestamp,+ groupHomeEntitiesByTabDate,+ homeGroupTimestamp,mergeHomeEntities,-} from './inbox-results';+} from './home-results';// The soup barrel these pull in transitively imports the websocket client// modules, which open real sockets at module scope and reject under jsdom.@@ -65,10 +65,10 @@ const withoutNotifiedSort = {capabilities: { ...capabilities, notifiedSort: false },};-describe('inbox sort method per tab', () => {+describe('home sort method per tab', () => {it('orders the notification tabs by latest notification', () => {for (const tab of ['signal', 'noise'] as const) {- expect(buildInboxQuery({ ...context, tab }).params.sort_method).toBe(+ expect(buildHomeQuery({ ...context, tab }).params.sort_method).toBe('notified_at');}@@ -76,26 +76,26 @@ describe('inbox sort method per tab', () => {it('keeps recency ordering on the other tabs', () => {expect(- buildInboxQuery({ ...context, tab: 'reminders' }).params.sort_method+ buildHomeQuery({ ...context, tab: 'reminders' }).params.sort_method).toBe('updated_at');});it('keeps recency ordering everywhere while the notified sort is off', () => {for (const tab of ['signal', 'noise', 'reminders'] as const) {expect(- buildInboxQuery({ ...withoutNotifiedSort, tab }).params.sort_method+ buildHomeQuery({ ...withoutNotifiedSort, tab }).params.sort_method).toBe('updated_at');}});});-describe('inbox date buckets', () => {+describe('home date buckets', () => {it('buckets a notified row by its notification on the notification tabs', () => {const signal = { tab: 'signal' as const, capabilities };- expect(inboxGroupTimestamp(staleTaskFreshComment, signal)).toBe(+ expect(homeGroupTimestamp(staleTaskFreshComment, signal)).toBe('2026-09-02T17:00:00Z');- const groups = groupInboxEntitiesByDate(+ const groups = groupHomeEntitiesByTabDate([freshEmail, staleTaskFreshComment],signal,now@@ -106,13 +106,13 @@ describe('inbox date buckets', () => {it('falls back to content recency without a stamp and on the other tabs', () => {expect(- inboxGroupTimestamp(freshEmail, { tab: 'signal', capabilities })+ homeGroupTimestamp(freshEmail, { tab: 'signal', capabilities })).toBe('2026-09-02T16:00:00Z');const reminders = { tab: 'reminders' as const, capabilities };- expect(inboxGroupTimestamp(staleTaskFreshComment, reminders)).toBe(+ expect(homeGroupTimestamp(staleTaskFreshComment, reminders)).toBe('2026-08-31T19:00:00Z');- const groups = groupInboxEntitiesByDate(+ const groups = groupHomeEntitiesByTabDate([freshEmail, staleTaskFreshComment],reminders,now@@ -132,14 +132,12 @@ describe('inbox date buckets', () => {tab: 'signal' as const,capabilities: withoutNotifiedSort.capabilities,};- expect(inboxGroupTimestamp(staleTaskFreshComment, signal)).toBe(+ expect(homeGroupTimestamp(staleTaskFreshComment, signal)).toBe('2026-09-02T17:00:00Z');// A row without a stamp still falls back to content recency.- expect(inboxGroupTimestamp(freshEmail, signal)).toBe(- '2026-09-02T16:00:00Z'- );- const groups = groupInboxEntitiesByDate(+ expect(homeGroupTimestamp(freshEmail, signal)).toBe('2026-09-02T16:00:00Z');+ const groups = groupHomeEntitiesByTabDate([freshEmail, staleTaskFreshComment],signal,now@@ -172,7 +170,7 @@ describe('Home activity and notifications', () => {expect(rows.map((row) => row.id)).toEqual(['newer', 'task', 'older']);expect(rows[2].sortTs).toBe('2026-09-01T12:00:00Z');expect(- groupInboxEntitiesByDate(+ groupHomeEntitiesByTabDate(rows,signal,now,diff --git a/apps/web/src/features/inbox-view/queries/inbox-results.ts b/apps/web/src/features/home/queries/home-results.tssimilarity index 86%rename from apps/web/src/features/inbox-view/queries/inbox-results.tsrename to apps/web/src/features/home/queries/home-results.tsindex c4c8ac9feb..98b8956731 100644--- a/apps/web/src/features/inbox-view/queries/inbox-results.ts+++ b/apps/web/src/features/home/queries/home-results.ts@@ -12,14 +12,11 @@ import {homeDateBucketRank,homeTimestamp,} from './home-date-buckets';-import {- type InboxViewContext,- inboxTabIsNotificationFeed,-} from './inbox-query';+import { type HomeViewContext, homeTabIsNotificationFeed } from './home-query';-type InboxOrderContext = Pick<InboxViewContext, 'tab' | 'capabilities'>;+type HomeOrderContext = Pick<HomeViewContext, 'tab' | 'capabilities'>;-export const inboxSortTimestamp = (entity: EntityData) =>+export const homeSortTimestamp = (entity: EntityData) =>entity.sortTs ?? entity.updatedAt ?? entity.createdAt;/**@@ -31,20 +28,20 @@ export const inboxSortTimestamp = (entity: EntityData) =>* sort is gated for cost, but client bucketing is free. Rows without a stamp,* and the other tabs, fall back to content recency.*/-export const inboxGroupTimestamp = (+export const homeGroupTimestamp = (entity: EntityData,- context: InboxOrderContext+ context: HomeOrderContext) =>- (inboxTabIsNotificationFeed(context.tab) ? entity.notifiedAt : undefined) ??- inboxSortTimestamp(entity);+ (homeTabIsNotificationFeed(context.tab) ? entity.notifiedAt : undefined) ??+ homeSortTimestamp(entity);-export function groupInboxEntitiesByDate<T extends EntityData>(+export function groupHomeEntitiesByTabDate<T extends EntityData>(entities: T[],- context: InboxOrderContext,+ context: HomeOrderContext,now = new Date(),getTimestamp: (entity: EntityData) => DateValue | null | undefined = (entity- ) => inboxGroupTimestamp(entity, context)+ ) => homeGroupTimestamp(entity, context)): SoupGroup<T>[] {return groupSoupEntities(entities, {getGroupId: (entity) => dateBucket(getTimestamp(entity), now).key,@@ -77,13 +74,13 @@ const latestTimestamp = (export function mergeHomeEntities(notifications: EntityWithRawNotifications<EntityData>[],recents: EntityWithRawNotifications<EntityData>[],- context: InboxOrderContext+ context: HomeOrderContext): EntityWithRawNotifications<EntityData>[] {return deduplicateItems<EntityWithRawNotifications<EntityData>>([...notifications.map((entity) => ({...entity,- sortTs: inboxGroupTimestamp(entity, context),+ sortTs: homeGroupTimestamp(entity, context),})),// Cache inserts from other users are not the viewer's own activity....recentsdiff --git a/apps/web/src/features/inbox-view/queries/inbox-search.ts b/apps/web/src/features/home/queries/home-search.tssimilarity index 92%rename from apps/web/src/features/inbox-view/queries/inbox-search.tsrename to apps/web/src/features/home/queries/home-search.tsindex 25fb8f5ddf..ac93f2a1e2 100644--- a/apps/web/src/features/inbox-view/queries/inbox-search.ts+++ b/apps/web/src/features/home/queries/home-search.ts@@ -8,10 +8,10 @@ import type {EntityFilters,NotificationFilters,} from '@service-search/generated/models';-import type { InboxTab, InboxTypeFilter } from '../types';-import type { InboxQueryCapabilities, InboxViewContext } from './inbox-query';+import type { HomeTab, HomeTypeFilter } from '../types';+import type { HomeQueryCapabilities, HomeViewContext } from './home-query';-const tabTypes: Record<InboxTab, ReadonlySet<InboxTypeFilter>> = {+const tabTypes: Record<HomeTab, ReadonlySet<HomeTypeFilter>> = {signal: new Set(['documents','tasks',@@ -38,10 +38,10 @@ function readFilter(selection: FacetSelection): boolean | undefined {}function resolveTypes(- tab: InboxTab,+ tab: HomeTab,selection: FacetSelection,- capabilities: InboxQueryCapabilities-): ReadonlySet<InboxTypeFilter> {+ capabilities: HomeQueryCapabilities+): ReadonlySet<HomeTypeFilter> {const selected = new Set(selection.type ?? []);const requested =selected.size === 0@@ -58,9 +58,9 @@ function resolveTypes();}-/** Mirrors Inbox tab/type/read semantics for service-backed search. */-export function buildInboxSearchRequest(- context: InboxViewContext,+/** Mirrors Home tab/type/read semantics for service-backed search. */+export function buildHomeSearchRequest(+ context: HomeViewContext,search: SoupSearchRequest): SearchSoupQueryArgs {const types = resolveTypes(context.tab, context.facets, context.capabilities);diff --git a/apps/web/src/features/inbox-view/queries/use-inbox-query.test.ts b/apps/web/src/features/home/queries/use-home-query.test.tssimilarity index 97%rename from apps/web/src/features/inbox-view/queries/use-inbox-query.test.tsrename to apps/web/src/features/home/queries/use-home-query.test.tsindex 19a0fa994e..86d36fadc1 100644--- a/apps/web/src/features/inbox-view/queries/use-inbox-query.test.ts+++ b/apps/web/src/features/home/queries/use-home-query.test.ts@@ -5,8 +5,8 @@ import { soupPageTimestamp } from '@queries/soup/page-timestamp';import { createRoot, createSignal } from 'solid-js';import { createStore } from 'solid-js/store';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import type { InboxViewState } from '../types';-import { type InboxDataSource, useInboxDataSource } from './use-inbox-query';+import type { HomeViewState } from '../types';+import { type HomeDataSource, useHomeDataSource } from './use-home-query';vi.mock('@app/features/soup', async () => ({...(await import('@app/features/soup/filters')),@@ -121,19 +121,19 @@ function mount(.mockReturnValueOnce(activity.query);return createRoot((cleanup) => {dispose = cleanup;- const [state, setState] = createStore<InboxViewState>({+ const [state, setState] = createStore<HomeViewState>({tab: 'signal',search: '',groupBy: 'none',facets: {},});- const source = useInboxDataSource(state);+ const source = useHomeDataSource(state);return { source, setState };});}-const rows = (source: InboxDataSource) =>+const rows = (source: HomeDataSource) =>source.items().flatMap((row) => (row.kind === 'entity' ? [row.entity] : []));-const ids = (source: InboxDataSource) => rows(source).map((row) => row.id);+const ids = (source: HomeDataSource) => rows(source).map((row) => row.id);describe('Home data source', () => {beforeEach(() => {diff --git a/apps/web/src/features/inbox-view/queries/use-inbox-query.ts b/apps/web/src/features/home/queries/use-home-query.tssimilarity index 87%rename from apps/web/src/features/inbox-view/queries/use-inbox-query.tsrename to apps/web/src/features/home/queries/use-home-query.tsindex e5534b1b3e..e87c05767e 100644--- a/apps/web/src/features/inbox-view/queries/use-inbox-query.ts+++ b/apps/web/src/features/home/queries/use-home-query.ts@@ -39,38 +39,38 @@ import {signalFilter,} from '../../next-soup/filters/inbox-filters';import { scheduledRemindersFilter } from '../../next-soup/filters/predicates';-import { INBOX_FACETS, type InboxFacetContext } from '../inbox-facets';-import type { InboxTab, InboxViewState } from '../types';+import { HOME_FACETS, type HomeFacetContext } from '../home-facets';+import type { HomeTab, HomeViewState } from '../types';import { homeClock, homeTimestamp } from './home-date-buckets';+import { soupItemMatchesHomeTab } from './home-item-filter';import { getHomePagination } from './home-pagination';-import { soupItemMatchesInboxTab } from './inbox-item-filter';import {- buildInboxQuery,- type InboxQueryCapabilities,- type InboxViewContext,-} from './inbox-query';+ buildHomeQuery,+ type HomeQueryCapabilities,+ type HomeViewContext,+} from './home-query';import {groupHomeEntitiesByDate,- groupInboxEntitiesByDate,- inboxSortTimestamp,+ groupHomeEntitiesByTabDate,+ homeSortTimestamp,mergeHomeEntities,-} from './inbox-results';-import { buildInboxSearchRequest } from './inbox-search';+} from './home-results';+import { buildHomeSearchRequest } from './home-search';-export type InboxDataSourceItem = SoupRow<WithNotification<EntityData>>;+export type HomeDataSourceItem = SoupRow<WithNotification<EntityData>>;-export type InboxDataSource = ListDataSource<InboxDataSourceItem> & {+export type HomeDataSource = ListDataSource<HomeDataSourceItem> & {warning: () => string | undefined;};-export type InboxDataSourceInput = Pick<- InboxViewState,+export type HomeDataSourceInput = Pick<+ HomeViewState,'tab' | 'search' | 'groupBy' | 'facets'>;function matchesCapabilities(entity: EntityData,- capabilities: InboxQueryCapabilities+ capabilities: HomeQueryCapabilities): boolean {if (entity.type === 'calendar_event') return capabilities.calendar;if (entity.type === 'foreign') return capabilities.foreignEntities;@@ -82,7 +82,7 @@ function matchesCapabilities(function matchesTab(entity: EntityData,- tab: InboxTab,+ tab: HomeTab,notifications: () => UnifiedNotification[]): boolean {const notDone = () =>@@ -103,7 +103,7 @@ function matchesTab(}return (- new Date(inboxSortTimestamp(entity) ?? 0).getTime() >=+ new Date(homeSortTimestamp(entity) ?? 0).getTime() >=subWeeks(startOfDay(new Date()), 2).getTime());})@@ -112,9 +112,9 @@ function matchesTab(.exhaustive();}-/** Shared feed membership for the Inbox list and its sidebar unread indicator. */-export function useInboxEntitiesQuery(- state: Pick<InboxDataSourceInput, 'tab' | 'facets'>+/** Shared feed membership for the Home list and its sidebar unread indicator. */+export function useHomeEntitiesQuery(+ state: Pick<HomeDataSourceInput, 'tab' | 'facets'>) {const notificationSource = useGlobalNotificationSource();const userId = useUserId();@@ -122,9 +122,9 @@ export function useInboxEntitiesQuery(const foreignEntities = useFeatureFlag(enableSupportedSoupForeignEntities);const notifiedSort = useFeatureFlag(enableInboxNotifiedSort);- const facetContext = (): InboxFacetContext => ({ notificationSource });+ const facetContext = (): HomeFacetContext => ({ notificationSource });- const capabilities = (): InboxQueryCapabilities => ({+ const capabilities = (): HomeQueryCapabilities => ({calendar: isFeatureEnabled(enableCalendarUi),foreignEntities: foreignEntities().enabled,notifiedSort: notifiedSort().enabled,@@ -133,7 +133,7 @@ export function useInboxEntitiesQuery(});const viewContext = createMemo(- (): InboxViewContext => ({+ (): HomeViewContext => ({tab: state.tab,facets: state.facets,facetContext: facetContext(),@@ -142,7 +142,7 @@ export function useInboxEntitiesQuery(}));- const queryArgs = createMemo(() => buildInboxQuery(viewContext()));+ const queryArgs = createMemo(() => buildHomeQuery(viewContext()));const query = useSoupAstItemsQuery(queryArgs, () => {// Capture the tab alongside the query args so the insert gate stays bound@@ -153,7 +153,7 @@ export function useInboxEntitiesQuery(enabled: true,showSupportedForeignEntities: foreignEntities().enabled,meta: {- insertFilter: (item) => soupItemMatchesInboxTab(item, tab),+ insertFilter: (item) => soupItemMatchesHomeTab(item, tab),},};});@@ -207,16 +207,14 @@ export function useInboxEntitiesQuery(};}-export function useInboxDataSource(- state: InboxDataSourceInput-): InboxDataSource {+export function useHomeDataSource(state: HomeDataSourceInput): HomeDataSource {const {query,viewContext,filterEntities,attachNotifications,transformEntities,- } = useInboxEntitiesQuery(state);+ } = useHomeEntitiesQuery(state);const [now, setNow] = createSignal(homeClock());onMount(() => {@@ -274,7 +272,7 @@ export function useInboxDataSource(const search = createSearchState({text: () => state.search,localPool,- buildRequest: (request) => buildInboxSearchRequest(viewContext(), request),+ buildRequest: (request) => buildHomeSearchRequest(viewContext(), request),});const rawEntities = createMemo<EntityData[]>((previous) => {@@ -346,12 +344,7 @@ export function useInboxDataSource(const readSelection = { read: activeReadFacets };for (const entity of transformed) {if (- testFacets(- readSelection,- INBOX_FACETS,- entity,- context.facetContext- )+ testFacets(readSelection, HOME_FACETS, entity, context.facetContext)) {admittedIds.add(entity.id);}@@ -365,7 +358,7 @@ export function useInboxDataSource(items: transformed.filter((entity) =>admittedIds.has(entity.id) &&- testFacets(selection, INBOX_FACETS, entity, context.facetContext)+ testFacets(selection, HOME_FACETS, entity, context.facetContext)),};},@@ -393,13 +386,13 @@ export function useInboxDataSource();};- const items = createMemo<InboxDataSourceItem[]>(() => {- let result: InboxDataSourceItem[];+ const items = createMemo<HomeDataSourceItem[]>(() => {+ let result: HomeDataSourceItem[];if (state.groupBy === 'date' && !search.isSearching()) {result = buildGroupedSoupRows(mergeRecents()? groupHomeEntitiesByDate(entities().items, new Date(now()))- : groupInboxEntitiesByDate(entities().items, viewContext())+ : groupHomeEntitiesByTabDate(entities().items, viewContext()));} else {result = buildFlatSoupRows(entities().items);@@ -481,5 +474,5 @@ export function useInboxDataSource(mergeRecents() ? recentQuery.refresh() : undefined,]);},- } satisfies InboxDataSource;+ } satisfies HomeDataSource;}diff --git a/apps/web/src/features/inbox-view/queries/use-inbox-unread.test.ts b/apps/web/src/features/home/queries/use-home-unread.test.tssimilarity index 97%rename from apps/web/src/features/inbox-view/queries/use-inbox-unread.test.tsrename to apps/web/src/features/home/queries/use-home-unread.test.tsindex f5c2cf7ab4..f6b61bb591 100644--- a/apps/web/src/features/inbox-view/queries/use-inbox-unread.test.ts+++ b/apps/web/src/features/home/queries/use-home-unread.test.ts@@ -10,8 +10,8 @@ import { unreadFilterFn } from '@entity/utils/filter';import type { UnifiedNotification } from '@notifications/types';import { createMemo, createRoot, createSignal } from 'solid-js';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import type { InboxTab } from '../types';-import { useInboxEntitiesQuery } from './use-inbox-query';+import type { HomeTab } from '../types';+import { useHomeEntitiesQuery } from './use-home-query';const mocks = vi.hoisted(() => ({features: (): boolean => true,@@ -119,10 +119,10 @@ function withNotifications<T extends EntityData>(return { ...entity, notifications };}let dispose: (() => void) | undefined;-function setup(tab: InboxTab = 'signal') {+function setup(tab: HomeTab = 'signal') {return createRoot((cleanup) => {dispose = cleanup;- return useInboxEntitiesQuery({ tab, facets: {} });+ return useHomeEntitiesQuery({ tab, facets: {} });});}@@ -138,7 +138,7 @@ afterEach(() => {vi.useRealTimers();});-describe('Inbox unread presence', () => {+describe('Home unread presence', () => {it('stops at the first qualifying row and scopes its notifications only once', () => {const inbox = setup();const first = vi.fn(() => [notification('first')]);@@ -305,7 +305,7 @@ describe('Inbox unread presence', () => {}));createRoot((cleanup) => {dispose = cleanup;- const inbox = useInboxEntitiesQuery({ tab: 'signal', facets: {} });+ const inbox = useHomeEntitiesQuery({ tab: 'signal', facets: {} });const unread = createMemo(() => inbox.hasUnreadEntity(entities));expect(unread()).toBe(true);setStates(['seen', 'unseen']);diff --git a/apps/web/src/features/home/route.tsx b/apps/web/src/features/home/route.tsxindex bf0faf1775..32ab533368 100644--- a/apps/web/src/features/home/route.tsx+++ b/apps/web/src/features/home/route.tsx@@ -1,23 +1,199 @@-import { defineRoute } from '@app/lib/split-router';+import type { CalendarPeriodView } from '@app/features/calendar/types';import {- usePageViewTracking,+ CALENDAR_SEARCH_NAMESPACE,+ calendarPeriodParams,+ calendarPeriodPath,+ calendarSearch,+} from '@app/features/calendar-view/calendar-url';+import { channelsSearch } from '@app/features/channels-view/channels-route';+import { channelDetailRoute } from '@app/features/channels-view/route';+import { driveSearch } from '@app/features/drive-view/primitives/drive-search';+import { driveRootDocumentRoute } from '@app/features/drive-view/route';+import {+ createSearchParams,+ defineRoute,+ routeParams,+ type SplitRouterEntry,+ useParams,+} from '@app/lib/split-router';+import { URL_PARAMS as CHANNEL_URL_PARAMS } from '@block-channel/constants';+import { URL_PARAMS as MARKDOWN_URL_PARAMS } from '@block-md/constants';+import { URL_PARAMS as PDF_URL_PARAMS } from '@block-pdf/constants';+import {+ NewAppView,+ RedirectSplit,withAuth,} from '@components/app/split-layout/split-router/app-route-shell';-import { lazy } from 'solid-js';+import { isTouchDevice } from '@core/mobile/isTouchDevice';+import { lazy, Show } from 'solid-js';+import { URL_PARAMS as EMAIL_URL_PARAMS } from '../email-thread/core/location';+import { getViewPreset } from '../next-soup/sidebar/soup-filter-presets';+import { HomeEntityDetailRouteView } from './components/HomeEntityDetailRouteView';+import {+ homeCalendarLegacyTarget,+ homeDetailParamsFromRoute,+ homePreviewLegacyTarget,+} from './home-route';+import {+ HOME_PREVIEW_SEARCH_NAMESPACES,+ type HomePreviewRouteParams,+ homeBaseBlockType,+ homePreviewRouteParams,+} from './home-route-schema';+import {+ HomeCalendarRouteView,+ HomeDetailRouteView,+ HomeView,+} from './home-view';-const Home = lazy(async () => ({- default: (await import('.')).Home,+const SoupView = lazy(async () => ({+ default: (await import('../next-soup/soup-view/soup-view')).SoupView,}));+type HomeDetailParams = Partial<HomePreviewRouteParams> & {+ channelId?: string;+ documentType?: string;+ documentId?: string;+ period?: CalendarPeriodView;+};++function LegacyHomeView() {+ const preset = getViewPreset('home');+ return (+ <SoupView+ viewName={isTouchDevice() ? 'Notifications' : 'Home'}+ initialFilters={preset?.filters}+ initialClientFilters={preset?.clientFilters}+ initialGroupBy={preset?.groupBy}+ disableLocalSearch+ />+ );+}++function HomeLegacyRouteView() {+ const params = useParams<HomeDetailParams>();+ const [channelSearch] = createSearchParams(channelsSearch);+ const [documentSearch] = createSearchParams(driveSearch);+ const [eventSearch] = createSearchParams(calendarSearch);+ const legacyTarget = () => {+ const { period } = params;+ if (period) return homeCalendarLegacyTarget(period, eventSearch);+ const detail = homeDetailParamsFromRoute(params);+ if (!detail) return;+ return homePreviewLegacyTarget(detail, {+ channel: channelSearch,+ document: documentSearch,+ });+ };++ return (+ <Show when={legacyTarget()} fallback={<LegacyHomeView />}>+ {(target) => <RedirectSplit to={target()} />}+ </Show>+ );+}+export const HomeRouteView = withAuth(() => {- usePageViewTracking('home');- return <Home />;+ const params = useParams<HomeDetailParams>();+ const detailRequested = () =>+ homeDetailParamsFromRoute(params) !== undefined ||+ typeof params.period === 'string';++ return (+ <NewAppView+ id="home"+ composableOnTouch+ detailDesktopOnly+ detailRequested={detailRequested}+ detailFallback={<HomeLegacyRouteView />}+ fallback={<LegacyHomeView />}+ >+ <HomeView />+ </NewAppView>+ );+});++/** The Calendar view inline in Home, at the Calendar route's own period path and search. */+export const homeCalendarRoute = defineRoute({+ id: 'home-calendar',+ path: 'calendar/:period',+ params: calendarPeriodParams,+ serializeParams: ({ period }) => ({ period: calendarPeriodPath(period) }),+ component: HomeCalendarRouteView,+ search: [CALENDAR_SEARCH_NAMESPACE],+});++export const homeChannelRoute = defineRoute({+ ...channelDetailRoute,+ id: 'home-channel',+ path: 'channel/:channelId',+ component: HomeEntityDetailRouteView,+});++export const homeDocumentRoute = defineRoute({+ ...driveRootDocumentRoute,+ id: 'home-document',+ component: HomeEntityDetailRouteView,+ externalSearch: (entry: Readonly<SplitRouterEntry>) => {+ const type = routeParams<{ documentType?: string }>(+ entry.location.route+ ).documentType;+ if (+ type === 'md' ||+ type === 'task' ||+ type === 'snippet' ||+ type === 'skill'+ ) {+ return Object.values(MARKDOWN_URL_PARAMS);+ }+ if (type === 'pdf') return Object.values(PDF_URL_PARAMS);+ return type === 'spreadsheet' ? [MARKDOWN_URL_PARAMS.commentId] : [];+ },+ remountKey: ({ documentType, documentId }) =>+ `${homeBaseBlockType(documentType)}:${documentId}`,+});+export const homePreviewRoute = defineRoute({+ id: 'home-preview',+ path: ':blockType/:previewId',+ params: homePreviewRouteParams,+ component: HomeDetailRouteView,+ search: HOME_PREVIEW_SEARCH_NAMESPACES,+ // Blocks read their own location keys from the URL, as they do in Drive.+ externalSearch: (entry: Readonly<SplitRouterEntry>) => {+ const type = routeParams<{ blockType?: string }>(+ entry.location.route+ ).blockType;+ if (type === 'channel') return Object.values(CHANNEL_URL_PARAMS);+ if (type === 'email') return Object.values(EMAIL_URL_PARAMS);+ if (+ type === 'md' ||+ type === 'task' ||+ type === 'snippet' ||+ type === 'skill'+ ) {+ return Object.values(MARKDOWN_URL_PARAMS);+ }+ if (type === 'pdf') return Object.values(PDF_URL_PARAMS);+ return type === 'spreadsheet' ? [MARKDOWN_URL_PARAMS.commentId] : [];+ },+ remountKey: ({ blockType, previewId }) =>+ `${homeBaseBlockType(blockType)}:${previewId}`,+ claim: ({ blockType, previewId }) => ({+ namespace: 'block',+ id: `${homeBaseBlockType(blockType)}:${previewId}`,+ }),});-export const homeRoute = defineRoute({+export const homeSplitRoute = defineRoute({id: 'view-home',path: 'home',component: HomeRouteView,search: '*' as const,- claim: () => ({ namespace: 'component', id: 'home' }),+ // The period path is matched before the block pattern can claim `calendar`.+ children: [+ homeCalendarRoute,+ homeChannelRoute,+ homeDocumentRoute,+ homePreviewRoute,+ ],});diff --git a/apps/web/src/features/home/types.ts b/apps/web/src/features/home/types.tsnew file mode 100644index 0000000000..2f69aad690--- /dev/null+++ b/apps/web/src/features/home/types.ts@@ -0,0 +1,28 @@+import type { FacetSelection } from '@app/features/soup/filters/facets/types';++export type HomeTab = 'signal' | 'noise' | 'reminders';++export type HomeGroupBy = 'date' | 'type' | 'none';++export type HomeViewState = {+ tab: HomeTab;+ search: string;+ groupBy: HomeGroupBy;+ facets: FacetSelection;+};++export type HomeViewStateOptions = Partial<HomeViewState>;++export type HomeTypeFilter =+ | 'documents'+ | 'tasks'+ | 'email'+ | 'channels'+ | 'chats'+ | 'agents'+ | 'projects'+ | 'github'+ | 'reminders'+ | 'calendar';++export type HomeReadFilter = 'unread' | 'read';diff --git a/apps/web/src/features/home/use-home-recommendations.ts b/apps/web/src/features/home/use-home-recommendations.tsindex 16dde9b233..c7d93a2eca 100644--- a/apps/web/src/features/home/use-home-recommendations.ts+++ b/apps/web/src/features/home/use-home-recommendations.ts@@ -105,7 +105,7 @@ export function useHomeRecommendations() {{ activate: true, preferNewSplit: true });})- .otherwise(() => navigate(LIST_VIEW_PATHS.inbox));+ .otherwise(() => navigate(LIST_VIEW_PATHS.home));};const retry = () => {diff --git a/apps/web/src/features/inbox-view/inbox-tab-search.ts b/apps/web/src/features/inbox-view/inbox-tab-search.tsdeleted file mode 100644index fa6770bf2d..0000000000--- a/apps/web/src/features/inbox-view/inbox-tab-search.ts+++ /dev/null@@ -1,11 +0,0 @@-import { createSearchParamsCodec } from '@app/lib/split-router';-import { z } from 'zod';-import type { InboxTab } from './types';--export const inboxTabSearch = {- namespace: 'inbox',- schema: z.object({ tab: z.enum(['signal', 'noise', 'reminders']) }),- defaults: { tab: 'signal' as InboxTab },-};--export const inboxTabSearchCodec = createSearchParamsCodec(inboxTabSearch);diff --git a/apps/web/src/features/inbox-view/route.tsx b/apps/web/src/features/inbox-view/route.tsxdeleted file mode 100644index 2b350013dd..0000000000--- a/apps/web/src/features/inbox-view/route.tsx+++ /dev/null@@ -1,199 +0,0 @@-import type { CalendarPeriodView } from '@app/features/calendar/types';-import {- CALENDAR_SEARCH_NAMESPACE,- calendarPeriodParams,- calendarPeriodPath,- calendarSearch,-} from '@app/features/calendar-view/calendar-url';-import { channelsSearch } from '@app/features/channels-view/channels-route';-import { channelDetailRoute } from '@app/features/channels-view/route';-import { driveSearch } from '@app/features/drive-view/primitives/drive-search';-import { driveRootDocumentRoute } from '@app/features/drive-view/route';-import {- createSearchParams,- defineRoute,- routeParams,- type SplitRouterEntry,- useParams,-} from '@app/lib/split-router';-import { URL_PARAMS as CHANNEL_URL_PARAMS } from '@block-channel/constants';-import { URL_PARAMS as MARKDOWN_URL_PARAMS } from '@block-md/constants';-import { URL_PARAMS as PDF_URL_PARAMS } from '@block-pdf/constants';-import {- NewAppView,- RedirectSplit,- withAuth,-} from '@components/app/split-layout/split-router/app-route-shell';-import { isTouchDevice } from '@core/mobile/isTouchDevice';-import { lazy, Show } from 'solid-js';-import { URL_PARAMS as EMAIL_URL_PARAMS } from '../email-thread/core/location';-import { getViewPreset } from '../next-soup/sidebar/soup-filter-presets';-import { InboxEntityDetailRouteView } from './components/InboxEntityDetailRouteView';-import {- inboxCalendarLegacyTarget,- inboxDetailParamsFromRoute,- inboxPreviewLegacyTarget,-} from './inbox-route';-import {- INBOX_PREVIEW_SEARCH_NAMESPACES,- type InboxPreviewRouteParams,- inboxBaseBlockType,- inboxPreviewRouteParams,-} from './inbox-route-schema';-import {- InboxCalendarRouteView,- InboxDetailRouteView,- InboxView,-} from './inbox-view';--const SoupView = lazy(async () => ({- default: (await import('../next-soup/soup-view/soup-view')).SoupView,-}));--type InboxDetailParams = Partial<InboxPreviewRouteParams> & {- channelId?: string;- documentType?: string;- documentId?: string;- period?: CalendarPeriodView;-};--function LegacyInboxView() {- const preset = getViewPreset('inbox');- return (- <SoupView- viewName={isTouchDevice() ? 'Notifications' : 'Home'}- initialFilters={preset?.filters}- initialClientFilters={preset?.clientFilters}- initialGroupBy={preset?.groupBy}- disableLocalSearch- />- );-}--function InboxLegacyRouteView() {- const params = useParams<InboxDetailParams>();- const [channelSearch] = createSearchParams(channelsSearch);- const [documentSearch] = createSearchParams(driveSearch);- const [eventSearch] = createSearchParams(calendarSearch);- const legacyTarget = () => {- const { period } = params;- if (period) return inboxCalendarLegacyTarget(period, eventSearch);- const detail = inboxDetailParamsFromRoute(params);- if (!detail) return;- return inboxPreviewLegacyTarget(detail, {- channel: channelSearch,- document: documentSearch,- });- };-- return (- <Show when={legacyTarget()} fallback={<LegacyInboxView />}>- {(target) => <RedirectSplit to={target()} />}- </Show>- );-}--export const InboxRouteView = withAuth(() => {- const params = useParams<InboxDetailParams>();- const detailRequested = () =>- inboxDetailParamsFromRoute(params) !== undefined ||- typeof params.period === 'string';-- return (- <NewAppView- id="inbox"- composableOnTouch- detailDesktopOnly- detailRequested={detailRequested}- detailFallback={<InboxLegacyRouteView />}- fallback={<LegacyInboxView />}- >- <InboxView />- </NewAppView>- );-});--/** The Calendar view inline in Home, at the Calendar route's own period path and search. */-export const inboxCalendarRoute = defineRoute({- id: 'inbox-calendar',- path: 'calendar/:period',- params: calendarPeriodParams,- serializeParams: ({ period }) => ({ period: calendarPeriodPath(period) }),- component: InboxCalendarRouteView,- search: [CALENDAR_SEARCH_NAMESPACE],-});--export const inboxChannelRoute = defineRoute({- ...channelDetailRoute,- id: 'inbox-channel',- path: 'channel/:channelId',- component: InboxEntityDetailRouteView,-});--export const inboxDocumentRoute = defineRoute({- ...driveRootDocumentRoute,- id: 'inbox-document',- component: InboxEntityDetailRouteView,- externalSearch: (entry: Readonly<SplitRouterEntry>) => {- const type = routeParams<{ documentType?: string }>(- entry.location.route- ).documentType;- if (- type === 'md' ||- type === 'task' ||- type === 'snippet' ||- type === 'skill'- ) {- return Object.values(MARKDOWN_URL_PARAMS);- }- if (type === 'pdf') return Object.values(PDF_URL_PARAMS);- return type === 'spreadsheet' ? [MARKDOWN_URL_PARAMS.commentId] : [];- },- remountKey: ({ documentType, documentId }) =>- `${inboxBaseBlockType(documentType)}:${documentId}`,-});-export const inboxPreviewRoute = defineRoute({- id: 'inbox-preview',- path: ':blockType/:previewId',- params: inboxPreviewRouteParams,- component: InboxDetailRouteView,- search: INBOX_PREVIEW_SEARCH_NAMESPACES,- // Blocks read their own location keys from the URL, as they do in Drive.- externalSearch: (entry: Readonly<SplitRouterEntry>) => {- const type = routeParams<{ blockType?: string }>(- entry.location.route- ).blockType;- if (type === 'channel') return Object.values(CHANNEL_URL_PARAMS);- if (type === 'email') return Object.values(EMAIL_URL_PARAMS);- if (- type === 'md' ||- type === 'task' ||- type === 'snippet' ||- type === 'skill'- ) {- return Object.values(MARKDOWN_URL_PARAMS);- }- if (type === 'pdf') return Object.values(PDF_URL_PARAMS);- return type === 'spreadsheet' ? [MARKDOWN_URL_PARAMS.commentId] : [];- },- remountKey: ({ blockType, previewId }) =>- `${inboxBaseBlockType(blockType)}:${previewId}`,- claim: ({ blockType, previewId }) => ({- namespace: 'block',- id: `${inboxBaseBlockType(blockType)}:${previewId}`,- }),-});--export const inboxSplitRoute = defineRoute({- id: 'view-inbox',- path: 'inbox',- component: InboxRouteView,- search: '*' as const,- // The period path is matched before the block pattern can claim `calendar`.- children: [- inboxCalendarRoute,- inboxChannelRoute,- inboxDocumentRoute,- inboxPreviewRoute,- ],-});diff --git a/apps/web/src/features/inbox-view/types.ts b/apps/web/src/features/inbox-view/types.tsdeleted file mode 100644index 88ff7deba6..0000000000--- a/apps/web/src/features/inbox-view/types.ts+++ /dev/null@@ -1,28 +0,0 @@-import type { FacetSelection } from '@app/features/soup/filters/facets/types';--export type InboxTab = 'signal' | 'noise' | 'reminders';--export type InboxGroupBy = 'date' | 'type' | 'none';--export type InboxViewState = {- tab: InboxTab;- search: string;- groupBy: InboxGroupBy;- facets: FacetSelection;-};--export type InboxViewStateOptions = Partial<InboxViewState>;--export type InboxTypeFilter =- | 'documents'- | 'tasks'- | 'email'- | 'channels'- | 'chats'- | 'agents'- | 'projects'- | 'github'- | 'reminders'- | 'calendar';--export type InboxReadFilter = 'unread' | 'read';diff --git a/apps/web/src/features/next-soup/actions/make-mark-done-action.test.ts b/apps/web/src/features/next-soup/actions/make-mark-done-action.test.tsindex 2c958c51f6..ee57d619bb 100644--- a/apps/web/src/features/next-soup/actions/make-mark-done-action.test.ts+++ b/apps/web/src/features/next-soup/actions/make-mark-done-action.test.ts@@ -286,7 +286,7 @@ describe('makeMarkDoneAction', () => {it('keeps whole-channel inbox writes ID-based to exclude thread rows', async () => {mocks.graphqlSoupEnabled.mockReturnValue(true);- mocks.splitHandle.content.mockReturnValue({ id: 'inbox' });+ mocks.splitHandle.content.mockReturnValue({ id: 'home' });mocks.resolveMarkEntitiesDoneVariables.mockReturnValue({emailIds: [],notificationIds: ['channel-notification'],@@ -312,7 +312,7 @@ describe('makeMarkDoneAction', () => {it('uses the canonical message entity for inbox channel-thread rows', async () => {mocks.graphqlSoupEnabled.mockReturnValue(true);- mocks.splitHandle.content.mockReturnValue({ id: 'inbox' });+ mocks.splitHandle.content.mockReturnValue({ id: 'home' });mocks.resolveMarkEntitiesDoneVariables.mockReturnValue({emailIds: [],notificationIds: ['thread-notification'],diff --git a/apps/web/src/features/next-soup/actions/make-mark-done-action.ts b/apps/web/src/features/next-soup/actions/make-mark-done-action.tsindex 67866fb9ce..021bd369f2 100644--- a/apps/web/src/features/next-soup/actions/make-mark-done-action.ts+++ b/apps/web/src/features/next-soup/actions/make-mark-done-action.ts@@ -29,11 +29,11 @@ import type {// Valid list views where the mark done should be allowed to runconst VALID_MARK_DONE_LIST_VIEWS: `${ListView}-${string}`[] = [- 'inbox-signal',- 'inbox-noise',+ 'home-signal',+ 'home-noise',// Marking a pending reminder done cancels it before it fires — same as the// standalone Reminders view's Scheduled tab below.- 'inbox-reminders',+ 'home-reminders','mail-important','mail-all','mail-noise',@@ -112,8 +112,8 @@ export const makeMarkDoneAction = (options: MakeMarkDoneOptions) => {// rework how notifications are sent to not be under just the 'channel'// entityconst scopeChannelNotificationsToEntity = () =>- splitPanel?.handle.content().id === 'inbox' ||- splitPanel?.handle.referredFrom() === 'inbox';+ splitPanel?.handle.content().id === 'home' ||+ splitPanel?.handle.referredFrom() === 'home';const { notificationSource, hotkeyGroup } = options;const mutation = useUndoableMutation<diff --git a/apps/web/src/features/next-soup/actions/use-block-entity-commands.ts b/apps/web/src/features/next-soup/actions/use-block-entity-commands.tsindex dc3483d748..1acf13ae2f 100644--- a/apps/web/src/features/next-soup/actions/use-block-entity-commands.ts+++ b/apps/web/src/features/next-soup/actions/use-block-entity-commands.ts@@ -129,7 +129,7 @@ export const useBlockEntityCommands = (// use-soup-navigation-hotkeys.const canUseMarkDoneHotkey = () => {const referredFrom = splitPanel?.handle.referredFrom();- return referredFrom === 'inbox' || referredFrom === 'mail';+ return referredFrom === 'home' || referredFrom === 'mail';};// The canvas block binds 'h' to its hand tool in this same scopediff --git a/apps/web/src/features/next-soup/route.tsx b/apps/web/src/features/next-soup/route.tsxindex c1932d01f6..18ecb696a4 100644--- a/apps/web/src/features/next-soup/route.tsx+++ b/apps/web/src/features/next-soup/route.tsx@@ -39,7 +39,7 @@ export const RecentRouteView = withAuth(() => {when={enabled()}fallback={<Show when={posthog.flagsLoaded()}>- <RedirectSplit to={{ type: 'component', id: 'inbox' }} />+ <RedirectSplit to={{ type: 'component', id: 'home' }} /></Show>}>diff --git a/apps/web/src/features/next-soup/sidebar/soup-filter-presets.test.ts b/apps/web/src/features/next-soup/sidebar/soup-filter-presets.test.tsindex a8aaf6c988..e7e04ededa 100644--- a/apps/web/src/features/next-soup/sidebar/soup-filter-presets.test.ts+++ b/apps/web/src/features/next-soup/sidebar/soup-filter-presets.test.ts@@ -136,7 +136,7 @@ describe('calendar event scoping', () => {getViewPreset('mail', 'important')?.filters.include?.calendarEventId).toEqual([nilId]);expect(- getViewPreset('inbox', 'all')?.filters.include?.calendarEventId+ getViewPreset('home', 'all')?.filters.include?.calendarEventId).toEqual([nilId]);});@@ -159,7 +159,7 @@ describe('calendar event scoping', () => {describe('inbox view presets', () => {it('opts the signal tab into reminders', () => {- const filters = getViewPreset('inbox', 'signal')?.filters;+ const filters = getViewPreset('home', 'signal')?.filters;const ast = compileToAst(queryStateFrom(filters!));// Reminders are off server-side unless a query names them; this is the ask.@@ -169,7 +169,7 @@ describe('inbox view presets', () => {it('leaves the signal tab alone when the reminders flag is off', () => {mocks.remindersEnabled = false;- const filters = getViewPreset('inbox', 'signal')?.filters;+ const filters = getViewPreset('home', 'signal')?.filters;const ast = compileToAst(queryStateFrom(filters!));// No `remf` at all, so an unflagged user never hits the reminders service.@@ -177,7 +177,7 @@ describe('inbox view presets', () => {});it('opts the signal tab into alarmed calendar events', () => {- const filters = getViewPreset('inbox', 'signal')?.filters;+ const filters = getViewPreset('home', 'signal')?.filters;const ast = compileToAst(queryStateFrom(filters!));// Referencing `calf` lifts the nil-id exclusion; only events with a@@ -190,7 +190,7 @@ describe('inbox view presets', () => {it('keeps calendar events nil-scoped when the calendar flag is off', () => {mocks.calendarUiEnabled = false;- const filters = getViewPreset('inbox', 'signal')?.filters;+ const filters = getViewPreset('home', 'signal')?.filters;const ast = compileToAst(queryStateFrom(filters!));expect(ast.calf).toEqual({@@ -200,7 +200,7 @@ describe('inbox view presets', () => {it('leaves every other inbox tab without reminders', () => {for (const tab of ['noise', 'all']) {- const filters = getViewPreset('inbox', tab)?.filters;+ const filters = getViewPreset('home', tab)?.filters;const ast = compileToAst(queryStateFrom(filters!));expect(ast.remf, `${tab} should not request reminders`).toBeUndefined();}@@ -324,10 +324,10 @@ describe('inbox view presets', () => {it('orders the notification tabs by latest notification', () => {// The sort is also a filter (rows without a notification are absent),// which matches what Signal and Noise already mean.- const signal = getViewPreset('inbox', 'signal');+ const signal = getViewPreset('home', 'signal');expect(signal?.clientFilters).toEqual({ and: ['inbox'] });expect(signal?.sortMethod).toBe('notified_at');- const noise = getViewPreset('inbox', 'noise');+ const noise = getViewPreset('home', 'noise');expect(noise?.clientFilters).toEqual({ and: ['noise'] });expect(noise?.sortMethod).toBe('notified_at');});@@ -335,10 +335,10 @@ describe('inbox view presets', () => {it('keeps recency ordering on the other tabs', () => {// The inbox client sort id is not an API sort method, so these must name// their server sort or the API would fall back to created_at.- const all = getViewPreset('inbox', 'all');+ const all = getViewPreset('home', 'all');expect(all?.clientFilters).toEqual({ and: ['explicit-noise'] });expect(all?.sortMethod).toBe('updated_at');- const reminders = getViewPreset('inbox', 'reminders');+ const reminders = getViewPreset('home', 'reminders');expect(reminders?.clientFilters).toEqual({ and: ['reminders-not-done'] });expect(reminders?.sortMethod).toBe('updated_at');});diff --git a/apps/web/src/features/next-soup/sidebar/soup-filter-presets.ts b/apps/web/src/features/next-soup/sidebar/soup-filter-presets.tsindex cea4766de3..211edd18c2 100644--- a/apps/web/src/features/next-soup/sidebar/soup-filter-presets.ts+++ b/apps/web/src/features/next-soup/sidebar/soup-filter-presets.ts@@ -187,7 +187,7 @@ export const VIEW_TAB_PRESETS: Record<ListView, ViewTabConfig> = {}),},},- inbox: {+ home: {default: 'signal',tabs: {// Signal and Noise order by when the viewer was last notified aboutdiff --git a/apps/web/src/features/next-soup/soup-view/empty-states.tsx b/apps/web/src/features/next-soup/soup-view/empty-states.tsxindex 4daaec92a0..935a4315d7 100644--- a/apps/web/src/features/next-soup/soup-view/empty-states.tsx+++ b/apps/web/src/features/next-soup/soup-view/empty-states.tsx@@ -159,7 +159,7 @@ export function EmptyState(props: {connect-email gate — its empty copy is the same with or without alinked inbox. */}<Match- when={props.listView === 'inbox' && soup.activeTab() === 'reminders'}+ when={props.listView === 'home' && soup.activeTab() === 'reminders'}><EmptyStatePanelgraphic={EmptyStateInboxTrayGraphic}@@ -187,7 +187,7 @@ export function EmptyState(props: {/></Match>- <Match when={props.listView === 'inbox' && !emailActive()}>+ <Match when={props.listView === 'home' && !emailActive()}><EmptyStatePanelgraphic={EmptyStateInboxTrayGraphic}title="Your inbox is empty"@@ -213,7 +213,7 @@ export function EmptyState(props: {/></Match>- <Match when={props.listView === 'inbox' && emailActive()}>+ <Match when={props.listView === 'home' && emailActive()}>{(() => {// Each inbox tab filters to a different slice, so the empty copy// should match: Signal is the important stuff, Noise is explicitlydiff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-filters-bar.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-filters-bar.tsxindex 4d6e5c605b..cfe8cff8f4 100644--- a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-filters-bar.tsx+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-filters-bar.tsx@@ -36,9 +36,9 @@ export function SoupFiltersBar(props: { variant?: 'default' | 'tag' }) {const isTagView = createMemo(() => props.variant === 'tag');// The inbox hides sort (it's fixed to updated_at for this view).- const isInboxView = createMemo(() => {+ const isHomeView = createMemo(() => {const content = panel.handle.content();- return content.type === 'component' && content.id === 'inbox';+ return content.type === 'component' && content.id === 'home';});const CollapsibleGroup = () => (@@ -66,14 +66,14 @@ export function SoupFiltersBar(props: { variant?: 'default' | 'tag' }) {when={!isSearchView() && !isTagView()}fallback={<Show when={isTagView()} fallback={<SearchFiltersRow />}>- <Show when={!isInboxView()}>+ <Show when={!isHomeView()}><SoupViewContextSort /></Show><CollapsibleGroup /></Show>}>- <Show when={!isInboxView()}>+ <Show when={!isHomeView()}><SoupViewContextSort /></Show><CollapsibleGroup />diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-context-sort.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-context-sort.tsxindex f7268c7a96..54fbf4f81f 100644--- a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-context-sort.tsx+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-context-sort.tsx@@ -55,7 +55,7 @@ export const SoupViewContextSort = () => {return (<Switch>- <Match when={isComponentListView('inbox')}>+ <Match when={isComponentListView('home')}><InboxSort {...openProps()} /></Match><Match when={isComponentListView('agents')}>diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsxindex f13b815a1f..759bc6db8d 100644--- a/apps/web/src/features/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx@@ -65,7 +65,7 @@ import { useTagFilter } from './tag-filter';export type { FilterCategory, FilterOption } from './filter-categories';// Filter categories by view-const INBOX_FILTER_CATEGORIES: FilterCategory[] = [+const HOME_FILTER_CATEGORIES: FilterCategory[] = [{id: 'type',label: 'Type',@@ -117,7 +117,7 @@ const INBOX_FILTER_CATEGORIES: FilterCategory[] = [];const isInboxTypeFilterId = (id: string) => {- for (const category of INBOX_FILTER_CATEGORIES) {+ for (const category of HOME_FILTER_CATEGORIES) {if (category.options.find((o) => o.id === id)) return true;}@@ -361,7 +361,7 @@ export function buildContactLabel(}export const VIEW_FILTER_CATEGORIES: Record<ListView, FilterCategory[]> = {- inbox: INBOX_FILTER_CATEGORIES,+ home: HOME_FILTER_CATEGORIES,// No refinements yet: the touched-by-me query rejects channel/email// filter trees, so the inbox categories can't be offered wholesale.recent: [],@@ -451,9 +451,9 @@ export const UnifiedFilterDropdown = (return content.id;});- const isInboxView = () => currentView() === 'inbox';+ const isHomeView = () => currentView() === 'home';const githubLinkStatus = useGithubLinkStatusQuery({- enabled: () => currentView() === 'inbox',+ enabled: () => currentView() === 'home',});const categories = createMemo(() => {@@ -465,7 +465,7 @@ export const UnifiedFilterDropdown = (// inapplicable there.if (view === 'documents' && activeTab() === 'folders') return [];- if (view !== 'inbox') return viewCategories;+ if (view !== 'home') return viewCategories;return filterInboxGithubPrOption(viewCategories,@@ -506,8 +506,8 @@ export const UnifiedFilterDropdown = (const query =typeof filter.query === 'function' ? filter.query(ctx) : filter.query;- if (currentView() === 'inbox' && isInboxTypeFilterId(optionId)) {- const baseQuery = getViewPreset('inbox', activeTab())?.filters;+ if (currentView() === 'home' && isInboxTypeFilterId(optionId)) {+ const baseQuery = getViewPreset('home', activeTab())?.filters;if (!baseQuery) {return;@@ -806,7 +806,7 @@ export const UnifiedFilterDropdown = (categories().length > 0 ||isTasksView() ||isCompaniesView() ||- isInboxView() ||+ isHomeView() ||showTagsFilter()}>@@ -837,7 +837,7 @@ export const UnifiedFilterDropdown = (<Dropdown.Content class={cn('min-w-32')}><Dropdown.Group>- <Show when={isInboxView()}>+ <Show when={isHomeView()}><ReadStatusSubmenuvalue={readFilter()}onChange={setReadFilter}@@ -849,7 +849,7 @@ export const UnifiedFilterDropdown = (!isDocumentsView() &&!isTasksView() &&!isCompaniesView() &&- !isInboxView()+ !isHomeView()}fallback={<>diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/use-filter-refinements.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/use-filter-refinements.tsxindex 4b93a0a217..5753563d63 100644--- a/apps/web/src/features/next-soup/soup-view/filters-bar/use-filter-refinements.tsx+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/use-filter-refinements.tsx@@ -45,7 +45,7 @@ import {// Filter IDs that are set by tabs and should not be shown as removable chipsconst TAB_ONLY_FILTERS = new Set([- 'inbox',+ 'home','noise','explicit-noise','channels',@@ -615,7 +615,7 @@ export function useFilterRefinements() {const filterId = id as FilterID;const wasActive = soup.predicates.isActive(filterId);const isInboxTypeFilter =- currentView() === 'inbox' && categoryId === 'type';+ currentView() === 'home' && categoryId === 'type';const isDocumentTypeFilter =currentView() === 'documents' && categoryId === 'type';const previousDocumentTypeIds = isDocumentTypeFilter@@ -675,7 +675,7 @@ export function useFilterRefinements() {: [{ id, shouldBeActive }];});const isInboxTypeFilter =- currentView() === 'inbox' && categoryId === 'type';+ currentView() === 'home' && categoryId === 'type';const isDocumentTypeFilter =currentView() === 'documents' && categoryId === 'type';const previousDocumentTypeIds = isDocumentTypeFilter@@ -1065,7 +1065,7 @@ export function useFilterRefinements() {const getInboxTypeQuery = (activeTypeIds: string[]): Query | undefined => {const preset = currentPreset();- if (currentView() !== 'inbox' || !preset) return undefined;+ if (currentView() !== 'home' || !preset) return undefined;let targetQuery: Query = {};for (const id of activeTypeIds) {diff --git a/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx b/apps/web/src/features/next-soup/soup-view/soup-view-context.tsxindex b3188bce11..6b54720478 100644--- a/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx+++ b/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx@@ -284,7 +284,7 @@ const resolveTabId = (// `useVisibleViewTabs`): restoring the inbox onto Reminders with the flag// off would leave a hidden tab active, still querying reminders.if (- view === 'inbox' &&+ view === 'home' &&remembered === 'reminders' &&!isFeatureEnabled(enableReminders)) {@@ -654,7 +654,7 @@ export const SoupViewContextProvider: FlowComponent<() =>soup.grouping.activeGroupId() === 'date' &&// The inbox shouldn't have any date-grouping on mobile/tablet.- !(activeListView() === 'inbox' && isTouchDevice())+ !(activeListView() === 'home' && isTouchDevice()));const groupByField = createMemo((): GroupByField | undefined => {@@ -783,7 +783,7 @@ export const SoupViewContextProvider: FlowComponent<// the root sender, anyone who replied, or anyone @-mentioned — via the// `channelThreadParticipantId` filter, since soup otherwise only surfaces// whole channels.- const isInboxView = () => activeListView() === 'inbox';+ const isHomeView = () => activeListView() === 'home';const applyInboxFilter = (state: QueryState): QueryState => {const inboxes = inboxFilter();@@ -798,7 +798,7 @@ export const SoupViewContextProvider: FlowComponent<};const applyInboxThreadFilter = (state: QueryState): QueryState => {- if (!isInboxView()) {+ if (!isHomeView()) {return {...state,include: { ...state.include, channelThreadId: [NIL_UUID] },@@ -819,7 +819,7 @@ export const SoupViewContextProvider: FlowComponent<// Unread/read/all filter for the inbox: injects the per-entity-type seen// filters ('all' leaves them unset). Matches the experimental inbox.const applyInboxReadFilter = (state: QueryState): QueryState => {- if (!isInboxView()) return state;+ if (!isHomeView()) return state;const filter = readFilter();if (filter === 'all') return state;const seen = filter === 'read';@@ -846,7 +846,7 @@ export const SoupViewContextProvider: FlowComponent<// its place.const entityMatchesInboxReadFilter = (entity: EntityData): boolean => {const filter = readFilter();- if (filter === 'all' || !isInboxView()) return true;+ if (filter === 'all' || !isHomeView()) return true;const isUnread = unreadFilterFn(entity);return ((filter === 'unread' ? isUnread : !isUnread) ||@@ -971,7 +971,7 @@ export const SoupViewContextProvider: FlowComponent<// when completely migratedconst attachNotifications = (entity: EntityData) =>withEntityNotifications(entity, notificationSource, {- scopeChannelThreads: isInboxView(),+ scopeChannelThreads: isHomeView(),});// Active tag option ids and combine mode, used to gate optimistic websocket@@ -1138,7 +1138,7 @@ export const SoupViewContextProvider: FlowComponent<const scope = `${activeListView()}:${activeTab()}:${filter}`;const ids = prev?.scope === scope ? new Set(prev.ids) : new Set<string>();- if (filter !== 'all' && isInboxView()) {+ if (filter !== 'all' && isHomeView()) {const wantUnread = filter === 'unread';for (const entity of items()) {if (unreadFilterFn(entity) === wantUnread) ids.add(entity.id);diff --git a/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx b/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsxindex 5418804bc4..4126f31d16 100644--- a/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx+++ b/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx@@ -145,7 +145,7 @@ export const SoupViewCreateButton = () => {// one thing you make from that list rather than triage into it.const createView = createMemo(() => {const view = currentView();- if (view === 'inbox' && soupView?.activeTab() === 'reminders') {+ if (view === 'home' && soupView?.activeTab() === 'reminders') {return 'reminders';}return view;diff --git a/apps/web/src/features/next-soup/soup-view/soup-view-tabs.tsx b/apps/web/src/features/next-soup/soup-view/soup-view-tabs.tsxindex ce4850399f..6975083fd2 100644--- a/apps/web/src/features/next-soup/soup-view/soup-view-tabs.tsx+++ b/apps/web/src/features/next-soup/soup-view/soup-view-tabs.tsx@@ -62,8 +62,8 @@ export const useVisibleViewTabs = () => {const remindersFlag = useFeatureFlag(enableReminders);return (view: TabbedListView): TabItem[] =>- view === 'inbox' && !remindersFlag().enabled- ? VIEW_TAB_LISTS.inbox.filter((tab) => tab.value !== 'reminders')+ view === 'home' && !remindersFlag().enabled+ ? VIEW_TAB_LISTS.home.filter((tab) => tab.value !== 'reminders'): VIEW_TAB_LISTS[view];};diff --git a/apps/web/src/features/next-soup/soup-view/soup-view.tsx b/apps/web/src/features/next-soup/soup-view/soup-view.tsxindex 75fb059884..171ecfd251 100644--- a/apps/web/src/features/next-soup/soup-view/soup-view.tsx+++ b/apps/web/src/features/next-soup/soup-view/soup-view.tsx@@ -40,7 +40,7 @@ import {SoupViewTabs,useApplyPreset,} from '@app/features/next-soup/soup-view/soup-view-tabs';-import { useIsInboxView } from '@app/features/next-soup/soup-view/use-is-inbox-view';+import { useIsHomeView } from '@app/features/next-soup/soup-view/use-is-home-view';import { CompanyKanban } from '@app/features/next-soup/soup-view/views/companies/CompanyKanban';import { CompanyListEntity } from '@app/features/next-soup/soup-view/views/companies/CompanyListEntity';import { ResponsiveCompanyListHeader } from '@app/features/next-soup/soup-view/views/companies/CompanyListHeader';@@ -284,7 +284,7 @@ export const SoupView = (props: SoupViewProps) => {const soup = useSoup();const panel = useSplitPanelOrThrow();const soupView = useSoupView();- const isInboxView = useIsInboxView();+ const isHomeView = useIsHomeView();const entryState = panel.handle.currentEntryState();const contentId = panel.handle.content().id;@@ -367,7 +367,7 @@ export const SoupView = (props: SoupViewProps) => {// persisted back when the control was reachable: honoring it would pin// the list to an order the user can no longer change.let initialSortIds =- contentId === 'inbox'+ contentId === 'home'? ['updated_at']: (initialCrmView?.sort ?? sortPref());if (initialSortIds.length === 0) {@@ -696,7 +696,7 @@ export const SoupView = (props: SoupViewProps) => {when={!isTouchDevice() &&ENABLE_UNIFIED_LIST_AI_INPUT &&- !isInboxView() &&+ !isHomeView() &&!isBoardRendered() &&!isComponentListView('search')}@@ -922,7 +922,7 @@ const SoupViewListContent = (props: SoupViewListProps) => {// legacy block registry can import Soup while the entity barrel is loading.// Keeping component and geometry together prevents mismatched row layouts.const rowsByView: Partial<Record<ListView, SoupRowEntry>> = {- inbox: { component: InboxListEntity, family: 'card' },+ home: { component: InboxListEntity, family: 'card' },tasks: { component: TaskListEntity, family: 'row' },companies: { component: CompanyListEntity, family: 'row' },};diff --git a/apps/web/src/features/next-soup/soup-view/tab-lists.ts b/apps/web/src/features/next-soup/soup-view/tab-lists.tsindex 545a62b4ec..1492d1c7b6 100644--- a/apps/web/src/features/next-soup/soup-view/tab-lists.ts+++ b/apps/web/src/features/next-soup/soup-view/tab-lists.ts@@ -4,7 +4,7 @@ import type { TabItem } from '@core/component/Tabs';/** Views that have tab definitions. Shared between VIEW_TAB_LISTS and VIEW_TAB_PRESETS. */export type TabbedListView = Extract<ListView,- | 'inbox'+ | 'home'| 'agents'| 'mail'| 'documents'@@ -17,7 +17,7 @@ export type TabbedListView = Extract</** Tab definitions for each list view. */export const VIEW_TAB_LISTS: Record<TabbedListView, TabItem[]> = {- inbox: [+ home: [{ value: 'signal', label: 'Signal' },{ value: 'noise', label: 'Noise' },{ value: 'all', label: 'All' },diff --git a/apps/web/src/features/next-soup/soup-view/use-is-inbox-view.ts b/apps/web/src/features/next-soup/soup-view/use-is-home-view.tssimilarity index 82%rename from apps/web/src/features/next-soup/soup-view/use-is-inbox-view.tsrename to apps/web/src/features/next-soup/soup-view/use-is-home-view.tsindex d15d345eaf..391ee56094 100644--- a/apps/web/src/features/next-soup/soup-view/use-is-inbox-view.ts+++ b/apps/web/src/features/next-soup/soup-view/use-is-home-view.ts@@ -1,7 +1,7 @@import { isListViewID } from '@app/constants/list-views';import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';-export function useIsInboxView() {+export function useIsHomeView() {const panel = useSplitPanelOrThrow();const currentView = () => {@@ -10,5 +10,5 @@ export function useIsInboxView() {return isListViewID(id) ? id : undefined;};- return () => currentView() === 'inbox';+ return () => currentView() === 'home';}diff --git a/apps/web/src/features/next-soup/soup-view/use-soup-navigation-hotkeys.ts b/apps/web/src/features/next-soup/soup-view/use-soup-navigation-hotkeys.tsindex 0ea75fb471..629c49a118 100644--- a/apps/web/src/features/next-soup/soup-view/use-soup-navigation-hotkeys.ts+++ b/apps/web/src/features/next-soup/soup-view/use-soup-navigation-hotkeys.ts@@ -190,7 +190,7 @@ export const useSoupNavigationHotkeys = (return (contentType === 'component' ||contentType === 'project' ||- referredFrom === 'inbox' ||+ referredFrom === 'home' ||referredFrom === 'mail');};diff --git a/apps/web/src/features/next-soup/utils.test.ts b/apps/web/src/features/next-soup/utils.test.tsindex 4805d6d52a..a1c70128ce 100644--- a/apps/web/src/features/next-soup/utils.test.ts+++ b/apps/web/src/features/next-soup/utils.test.ts@@ -6,10 +6,10 @@ import {import { isTouchDevice } from '@core/mobile/isTouchDevice';import { afterEach, describe, expect, it, vi } from 'vitest';import {- inboxCalendarNavigation,- inboxPreviewNavigation,-} from '../inbox-view/inbox-preview-navigation';-import { inboxPreviewTarget } from '../inbox-view/inbox-route';+ homeCalendarNavigation,+ homePreviewNavigation,+} from '../home/home-preview-navigation';+import { homePreviewTarget } from '../home/home-route';vi.mock('@core/mobile/isTouchDevice', () => ({isTouchDevice: vi.fn(() => false),@@ -664,7 +664,7 @@ describe('calendar view navigation', () => {}),});expect(- inboxCalendarNavigation(target, 'timeGridWeek')?.search.calendar+ homeCalendarNavigation(target, 'timeGridWeek')?.search.calendar).toEqual({eventId: ['event-1'],occurrenceKey: ['2026-09-23T22:00:00+00:00'],@@ -820,7 +820,7 @@ describe('Inbox calendar preview navigation', () => {endDate: '2025-01-02',};expect(- inboxCalendarNavigation(+ homeCalendarNavigation({ eventId: 'event-1', occurrenceKey: 'occurrence-1', range },'timeGridWeek')@@ -836,13 +836,13 @@ describe('Inbox calendar preview navigation', () => {},},});- expect(inboxCalendarNavigation({}, 'timeGridWeek')).toBeUndefined();+ expect(homeCalendarNavigation({}, 'timeGridWeek')).toBeUndefined();});});describe('Inbox channel preview navigation', () => {it('preserves explicit message targets on whole-channel selections', () => {- const result = inboxPreviewNavigation({+ const result = homePreviewNavigation({type: 'channel',id: 'channel-1',target: { messageId: 'message-1', threadId: 'thread-1' },@@ -857,12 +857,12 @@ describe('Inbox channel preview navigation', () => {});it('keeps untargeted channels at latest', () => {expect(- inboxPreviewNavigation({ type: 'channel', id: 'channel-1' }).search+ homePreviewNavigation({ type: 'channel', id: 'channel-1' }).search).toEqual({ channels: undefined });});it('names markdown subtypes in the path', () => {expect(- inboxPreviewNavigation({+ homePreviewNavigation({type: 'document',id: 'task-1',fileType: 'md',@@ -1283,14 +1283,14 @@ describe('getDocumentCommentTarget', () => {});it('carries the comment through the Inbox preview route', () => {- const result = inboxPreviewNavigation(+ const result = homePreviewNavigation(documentRow([commentNotification('n1', 'comment-1')]) as never);expect(result.params).toEqual({ blockType: 'md', previewId: 'doc-1' });expect(result.search.drive).toEqual({commentId: ['comment-1'],});- const target = inboxPreviewTarget(result.params, {+ const target = homePreviewTarget(result.params, {channel: { messageId: '', threadId: '' },document: { commentId: 'comment-1' },});diff --git a/apps/web/src/features/notifications/tests/channel-notification-navigation.test.ts b/apps/web/src/features/notifications/tests/channel-notification-navigation.test.tsindex 45088f6bef..8f36a3f8a3 100644--- a/apps/web/src/features/notifications/tests/channel-notification-navigation.test.ts+++ b/apps/web/src/features/notifications/tests/channel-notification-navigation.test.ts@@ -81,7 +81,7 @@ function setup(location: 'preview' | 'split' | 'closed') {location === 'split'? { type: 'channel', id: 'channel' }: { type: 'component', id: 'channels' },- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);});const [first, other] = layout.splits();diff --git a/apps/web/src/features/reminders/route.tsx b/apps/web/src/features/reminders/route.tsxindex c2ac02659d..4ea8a4f566 100644--- a/apps/web/src/features/reminders/route.tsx+++ b/apps/web/src/features/reminders/route.tsx@@ -14,7 +14,7 @@ const SoupView = lazy(async () => ({export const RemindersRouteView = withAuth(() => {if (!isFeatureEnabled(enableReminders))- return <RedirectSplit to={{ type: 'component', id: 'inbox' }} />;+ return <RedirectSplit to={{ type: 'component', id: 'home' }} />;usePageViewTracking('reminders');const preset = getViewPreset('reminders');return (diff --git a/apps/web/src/lib/constants/defaultRoute.ts b/apps/web/src/lib/constants/defaultRoute.tsindex b2eafe1c26..9c94fdd1f5 100644--- a/apps/web/src/lib/constants/defaultRoute.ts+++ b/apps/web/src/lib/constants/defaultRoute.ts@@ -1,4 +1,4 @@-export const DEFAULT_ROUTE = '/inbox';+export const DEFAULT_ROUTE = '/home';/*** Where leaving onboarding lands when no deep link was preserved (`?next=`)diff --git a/apps/web/src/lib/constants/docs-links.ts b/apps/web/src/lib/constants/docs-links.tsindex 488b0b3e1b..98c5e33f14 100644--- a/apps/web/src/lib/constants/docs-links.ts+++ b/apps/web/src/lib/constants/docs-links.ts@@ -8,7 +8,7 @@ export const DOCS_BASE = 'https://docs.macro.com';* docs page yet, so callers should render no link for them.*/export const LIST_VIEW_DOCS_URL: Partial<Record<ListView, string>> = {- inbox: `${DOCS_BASE}/product/inbox`,+ home: `${DOCS_BASE}/product/inbox`,agents: `${DOCS_BASE}/product/agents`,mail: `${DOCS_BASE}/product/email`,documents: `${DOCS_BASE}/product/docs`,diff --git a/apps/web/src/lib/constants/list-views.test.ts b/apps/web/src/lib/constants/list-views.test.tsindex 256c80b3a3..e30868f83e 100644--- a/apps/web/src/lib/constants/list-views.test.ts+++ b/apps/web/src/lib/constants/list-views.test.ts@@ -36,6 +36,6 @@ describe('soupItemMatchesListView', () => {});it('inbox admits rows regardless of touch', () => {- expect(soupItemMatchesListView(documentItem(), 'inbox')).toBe(true);+ expect(soupItemMatchesListView(documentItem(), 'home')).toBe(true);});});diff --git a/apps/web/src/lib/constants/list-views.ts b/apps/web/src/lib/constants/list-views.tsindex 520c33a282..c99b3b1251 100644--- a/apps/web/src/lib/constants/list-views.ts+++ b/apps/web/src/lib/constants/list-views.ts@@ -8,7 +8,7 @@ import type {import { match } from 'ts-pattern';export const LIST_VIEWS = [- 'inbox',+ 'home','recent','agents','mail',@@ -25,7 +25,7 @@ export const LIST_VIEWS = [export type ListView = (typeof LIST_VIEWS)[number];export const LIST_VIEW_PATHS = {- inbox: '/inbox',+ home: '/home',recent: '/recent',agents: '/agents',mail: '/mail',@@ -40,7 +40,7 @@ export const LIST_VIEW_PATHS = {} as const satisfies Record<ListView, string>;export const LIST_VIEW_ID = {- inbox: 'inbox',+ home: 'home',recent: 'recent',agents: 'agents',mail: 'mail',@@ -57,13 +57,13 @@ export const LIST_VIEW_ID = {export const isListViewID = (id: string | null | undefined): id is ListView => {if (!id) return false;- return LIST_VIEWS.includes(id as 'inbox');+ return LIST_VIEWS.includes(id as 'home');};/*** List views whose entities are taggable, so their filter bar surfaces the tag* filter. Mirrors TAGGABLE_ENTITY_TYPES (document/task/thread/project/chat/- * call). Channels, companies, and the mixed inbox are omitted.+ * call). Channels, companies, and the mixed home feed are omitted.*/export const TAGGABLE_LIST_VIEWS: ReadonlySet<ListView> = new Set<ListView>(['documents',@@ -109,7 +109,7 @@ export const soupItemMatchesListView = (.with('channels', () => item.tag === 'channel').with('calls', () => item.tag === 'call').with('folders', () => item.tag === 'project')- .with('inbox', 'search', undefined, () => true)+ .with('home', 'search', undefined, () => true)// Membership in the recent view is "did I touch it", not a type check:// only rows that carry a touch timestamp (from the touched_by_me page)// or an outstanding optimistic own-touch belong. Without this, anydiff --git a/apps/web/src/lib/constants/routerBase.ts b/apps/web/src/lib/constants/routerBase.tsindex 83da13bc49..c045d5ccab 100644--- a/apps/web/src/lib/constants/routerBase.ts+++ b/apps/web/src/lib/constants/routerBase.ts@@ -6,7 +6,7 @@ export const ROUTER_BASE_CONCAT = isTauri() ? '/' : '/app/';/*** Strip the router base from a `location.pathname` (which includes it, e.g.- * `/app/component/inbox`) so it can be compared to — and reused with — the+ * `/app/home`) so it can be compared to — and reused with — the* base-relative paths that `navigate()` and route definitions use.*/export const toBaseRelative = (pathname: string): string => {diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/core/BlockLink.test.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/core/BlockLink.test.tsxindex 7893bab8ff..d3933e6534 100644--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/core/BlockLink.test.tsx+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/core/BlockLink.test.tsx@@ -50,7 +50,7 @@ function setup() {onTestFinished(dispose);return createSplitLayout(orchestrator, [{ type: 'component', id: 'channels' },- { type: 'component', id: 'inbox' },+ { type: 'component', id: 'home' },]);});const [chat, inbox] = manager.splits();diff --git a/apps/web/src/lib/core/constant/SettingsState.test.tsx b/apps/web/src/lib/core/constant/SettingsState.test.tsxindex c95392f519..586f937e6a 100644--- a/apps/web/src/lib/core/constant/SettingsState.test.tsx+++ b/apps/web/src/lib/core/constant/SettingsState.test.tsx@@ -34,7 +34,7 @@ vi.mock('@app/signal/splitLayout', () => ({globalSplitManager: () => ({splits: () => [...(mocks.otherSplit- ? [{ id: 'app-split', content: { type: 'component', id: 'inbox' } }]+ ? [{ id: 'app-split', content: { type: 'component', id: 'home' } }]: []),...(mocks.hasSettingsSplit? [@@ -65,7 +65,7 @@ vi.mock('@components/app/split-layout/layout', () => ({vi.mock('@solidjs/router', () => ({useNavigate: () => mocks.navigate,useLocation: () => ({- pathname: '/app/component/inbox',+ pathname: '/app/home',search: '?keep=1',hash: '#position',}),@@ -304,10 +304,9 @@ describe('settings entry points', () => {mocks.hasSettingsSplit = true;mocks.solo = true;state.closeSettings();- expect(mocks.navigate).toHaveBeenLastCalledWith(- '/component/inbox?keep=1#position',- { replace: true }- );+ expect(mocks.navigate).toHaveBeenLastCalledWith('/home?keep=1#position', {+ replace: true,+ });});it('restores the app and docks the selected page without constructing a split URL', async () => {@@ -319,10 +318,9 @@ describe('settings entry points', () => {expect(mocks.navigate).toHaveBeenCalledWith('/settings/connected');mocks.solo = true;await state.moveSettingsToSplit('Billing');- expect(mocks.navigate).toHaveBeenLastCalledWith(- '/component/inbox?keep=1#position',- { replace: true }- );+ expect(mocks.navigate).toHaveBeenLastCalledWith('/home?keep=1#position', {+ replace: true,+ });expect(mocks.managerOpenWithSplit).toHaveBeenCalledWith(expect.objectContaining({entryMetadata: {@@ -337,7 +335,7 @@ describe('settings entry points', () => {mocks.hasSettingsSplit = true;const { state } = mountSettings();state.restoreMobileDeepLink();- expect(mocks.navigate).toHaveBeenCalledWith('/inbox', { replace: true });+ expect(mocks.navigate).toHaveBeenCalledWith('/home', { replace: true });mocks.otherSplit = true;state.restoreMobileDeepLink();expect(mocks.removeSplit).toHaveBeenCalledWith('settings-split');diff --git a/apps/web/src/lib/core/constant/featureFlags.ts b/apps/web/src/lib/core/constant/featureFlags.tsindex 1b00312ac9..1de9f35b8d 100644--- a/apps/web/src/lib/core/constant/featureFlags.ts+++ b/apps/web/src/lib/core/constant/featureFlags.ts@@ -527,20 +527,6 @@ export function isAutoUpdateUiEnabled(): boolean {return !isFeatureEnabled(disableAutoUpdateUi);}-export const enableHomeView = defineFlag({- key: 'enable-home-view',- default: onInDev,-});--// AI-generated recommendations on Home. Keep the whole data-owning component-// behind this gate so disabled users do not fetch notifications or start AI-// projections. Override locally with VITE_ENABLE_HOME_RECOMMENDATIONS.-export const enableHomeRecommendations = defineFlag({- key: 'enable-home-recommendations',- env: 'ENABLE_HOME_RECOMMENDATIONS',- default: onInDev,-});-export const enableNewPricing = defineFlag({key: 'enable-new-pricing',env: 'ENABLE_NEW_PRICING',diff --git a/apps/web/src/lib/core/email-link/return-layout.test.ts b/apps/web/src/lib/core/email-link/return-layout.test.tsindex 1fcff9d84d..625fe305e6 100644--- a/apps/web/src/lib/core/email-link/return-layout.test.ts+++ b/apps/web/src/lib/core/email-link/return-layout.test.ts@@ -26,17 +26,17 @@ describe('inbox link return layout', () => {it('round-trips the settings return layout alongside it', () => {rememberInboxLinkReturn(LINK_ID, {url: '/settings/connections',- settingsReturnTo: '/component/inbox/md/doc-1',+ settingsReturnTo: '/home/md/doc-1',});expect(consumeInboxLinkReturn(LINK_ID)).toEqual({url: '/settings/connections',- settingsReturnTo: '/component/inbox/md/doc-1',+ settingsReturnTo: '/home/md/doc-1',});});it('clears the stash so a second read finds nothing', () => {- rememberInboxLinkReturn(LINK_ID, { url: '/component/inbox' });+ rememberInboxLinkReturn(LINK_ID, { url: '/home' });consumeInboxLinkReturn(LINK_ID);@@ -44,13 +44,13 @@ describe('inbox link return layout', () => {});it('ignores a stash left behind by a different flow', () => {- rememberInboxLinkReturn('abandoned-link', { url: '/component/inbox' });+ rememberInboxLinkReturn('abandoned-link', { url: '/home' });expect(consumeInboxLinkReturn(LINK_ID)).toBeUndefined();});it('drops a mismatched stash rather than leaving it to match later', () => {- rememberInboxLinkReturn('abandoned-link', { url: '/component/inbox' });+ rememberInboxLinkReturn('abandoned-link', { url: '/home' });consumeInboxLinkReturn(LINK_ID);@@ -69,7 +69,7 @@ describe('inbox link return layout', () => {});expect(() =>- rememberInboxLinkReturn(LINK_ID, { url: '/component/inbox' })+ rememberInboxLinkReturn(LINK_ID, { url: '/home' })).not.toThrow();});diff --git a/apps/web/src/lib/core/hotkey/tokens.ts b/apps/web/src/lib/core/hotkey/tokens.tsindex e321d93279..f3f5674a65 100644--- a/apps/web/src/lib/core/hotkey/tokens.ts+++ b/apps/web/src/lib/core/hotkey/tokens.ts@@ -118,7 +118,6 @@ export const TOKENS = {goTo: {home: 'sidebar.goTo.home',gettingStarted: 'sidebar.goTo.gettingStarted',- inbox: 'sidebar.goTo.inbox',recent: 'sidebar.goTo.recent',activity: 'sidebar.goTo.activity',calendar: 'sidebar.goTo.calendar',diff --git a/apps/web/src/lib/queries/ai/homeRecommendations.ts b/apps/web/src/lib/queries/ai/homeRecommendations.tsindex 24d30e058e..c420aa4a6b 100644--- a/apps/web/src/lib/queries/ai/homeRecommendations.ts+++ b/apps/web/src/lib/queries/ai/homeRecommendations.ts@@ -17,7 +17,6 @@ export const recommendedActions = ['review','discuss',] as const;-export type RecommendedAction = (typeof recommendedActions)[number];/** Surface at most this many items — keep the list short and high-signal. */export const MAX_RECOMMENDATIONS = 3;diff --git a/apps/web/src/lib/queries/soup/calendar-entity.test.ts b/apps/web/src/lib/queries/soup/calendar-entity.test.tsindex d7430fc52e..92af1e8238 100644--- a/apps/web/src/lib/queries/soup/calendar-entity.test.ts+++ b/apps/web/src/lib/queries/soup/calendar-entity.test.ts@@ -1,8 +1,8 @@import {groupHomeEntitiesByDate,- inboxGroupTimestamp,+ homeGroupTimestamp,mergeHomeEntities,-} from '@app/features/inbox-view/queries/inbox-results';+} from '@app/features/home/queries/home-results';import type { Notification } from '@entity/types/notification';import type { SoupApiItem } from '@service-storage/generated/schemas';import { afterEach, describe, expect, it, vi } from 'vitest';@@ -139,7 +139,7 @@ describe('calendar reminder dates in Home', () => {it('keeps content recency when no reminder timestamp is available', () => {const entity = mapApiSoupItemToEntity(calendarItem([]));expect(entity.notifiedAt).toBeUndefined();- expect(inboxGroupTimestamp(entity, context)).toBe(recentSync);+ expect(homeGroupTimestamp(entity, context)).toBe(recentSync);});it('preserves own-activity ordering and non-notification tabs', () => {@@ -150,7 +150,7 @@ describe('calendar reminder dates in Home', () => {expect(mergeHomeEntities([entity], [entity], context)[0].sortTs).toBe(recentSync);- expect(inboxGroupTimestamp(entity, { ...context, tab: 'reminders' })).toBe(+ expect(homeGroupTimestamp(entity, { ...context, tab: 'reminders' })).toBe(recentSync);});diff --git a/apps/web/src/lib/queries/soup/normalized-cache/operations.test.ts b/apps/web/src/lib/queries/soup/normalized-cache/operations.test.tsindex 7b75f28183..630dc6d347 100644--- a/apps/web/src/lib/queries/soup/normalized-cache/operations.test.ts+++ b/apps/web/src/lib/queries/soup/normalized-cache/operations.test.ts@@ -731,7 +731,7 @@ describe('optimisticUpdateSoupItemUpdatedAt', () => {// -- Normalized grouped cache tests ---import { soupItemMatchesInboxTab } from '@app/features/inbox-view/queries/inbox-item-filter';+import { soupItemMatchesHomeTab } from '@app/features/home/queries/home-item-filter';import type { Query } from '@app/features/next-soup/filters/filter-store/types';import {soupItemMatchesProjectMembership,@@ -1631,7 +1631,7 @@ describe('restoreSoupEntityToDoneFilteredQueries', () => {* queries both carry `emailView: 'inbox'`, so a websocket notification for a* cached noise email restored the row into the Signal feed (and vice versa)* until an unrelated refetch corrected it. The inbox now attaches- * `soupItemMatchesInboxTab` as each tab query's `insertFilter`.+ * `soupItemMatchesHomeTab` as each tab query's `insertFilter`.*/describe('inbox tab gate (Signal vs Noise)', () => {function inboxEmailItem(id: string, isSignal: boolean): SoupApiItem {@@ -1650,7 +1650,7 @@ describe('inbox tab gate (Signal vs Noise)', () => {];testQueryClient.setQueryDefaults(key, {meta: {- insertFilter: (item: SoupApiItem) => soupItemMatchesInboxTab(item, tab),+ insertFilter: (item: SoupApiItem) => soupItemMatchesHomeTab(item, tab),},});const data: InfiniteData<SoupAstItemsFlatPage, unknown> = {diff --git a/apps/web/tests/e2e/local-sidebar.spec.ts b/apps/web/tests/e2e/local-sidebar.spec.tsindex bddfe9cb42..233b0ec16c 100644--- a/apps/web/tests/e2e/local-sidebar.spec.ts+++ b/apps/web/tests/e2e/local-sidebar.spec.ts@@ -9,7 +9,7 @@ import {} from './helpers/local-app';const SIDEBAR_LIST_VIEWS = [- { id: 'inbox', label: 'Inbox', tabs: ['Signal', 'Noise', 'All'] },+ { id: 'home', label: 'Home', tabs: ['Signal', 'Noise', 'All'] },{ id: 'search', label: 'Search', tabs: [] },{id: 'agents',@@ -44,7 +44,7 @@ test.describe('local sidebar views', () => {test(`opens ${view.label} from the sidebar`, async ({ page }) => {await gotoApp(page,- view.id === 'documents' ? '/component/inbox' : '/component/documents'+ view.id === 'documents' ? '/home' : '/component/documents');await openSidebarView(page, view.id);diff --git a/docs/AGENT_GUIDE/login.md b/docs/AGENT_GUIDE/login.mdindex 43d4d0dea4..e55a31576a 100644--- a/docs/AGENT_GUIDE/login.md+++ b/docs/AGENT_GUIDE/login.md@@ -13,7 +13,7 @@the user's inbox (locally: Mailpit).5. First login auto-creates the user, seeds onboarding content (a "Macro Support x <name>"channel, a "Macro how to guide" doc favorite, three sample tasks), and lands on- `/app/component/inbox`. The starter documents share a personal `docs` tag; the+ `/app/home`. The starter documents share a personal `docs` tag; theguide's `#` example is an inline mention of that same tag. A tag attachmentfailure does not block the remaining content; signup retries repair tagswithout resetting task priorities. The guide waits until its tag IDs resolve.@@ -46,7 +46,7 @@ and [repeatable iOS smoke test](../../apps/web/tests/native/ios/README.md).## Known crash on first landing (local)-Immediately after login the app navigates to `/app/component/inbox` and can throw a+Immediately after login the app navigates to `/app/home` and can throw afull-screen error dialog: **"Something went terribly wrong — Cannot read properties ofundefined (reading 'id')"**. Console shows `Failed to init email link on login` with a 404 on`GET /auth/link/github/status` and a 400 on `POST /email/email/init`. This is cosmetic-ish anddiff --git a/docs/AGENT_GUIDE/navigation.md b/docs/AGENT_GUIDE/navigation.mdindex c85264d7bc..71e1906ea6 100644--- a/docs/AGENT_GUIDE/navigation.md+++ b/docs/AGENT_GUIDE/navigation.md@@ -15,12 +15,12 @@ Switching tabs or navigating an in-app route is not a back/forward-cache restore| Route | Surface || --- | --- |-| `/app` | Redirects to inbox |+| `/app` | Redirects to Home || `/app/welcome` | Login page (when unauthenticated) || `/app/invite?token=<token>` | GTM invite welcome page ("Welcome, <first name>", Continue → signup). Links come from the staff portal, last 48h, and grant the first month of Premium free once the account is created || `/app/internal/invite-links` | Macro staff only (`@macro.com`): create GTM invite links and track opens, signups, and subscriptions |-| `/app/inbox` | Desktop: Home (notifications + recent activity); mobile: Notifications soup |-| `/app/inbox/<block-type>/<uuid>` | Home with an item opened inline; `<block-type>` may be an alias such as `task`; a targeted channel message uses `sN.channels.messageId` (and optionally `sN.channels.threadId`) and a document comment `sN.drive.commentId`; a calendar row renders the Calendar view inline at `/app/inbox/calendar/<month-or-week-or-day>` with the event, occurrence, and locator range in `sN.calendar.*` |+| `/app/home` | Desktop: Home (notifications + recent activity); mobile: Notifications soup |+| `/app/home/<block-type>/<uuid>` | Home with an item opened inline; `<block-type>` may be an alias such as `task`; a targeted channel message uses `sN.channels.messageId` (and optionally `sN.channels.threadId`) and a document comment `sN.drive.commentId`; a calendar row renders the Calendar view inline at `/app/home/calendar/<month-or-week-or-day>` with the event, occurrence, and locator range in `sN.calendar.*` || `/app/mail` | Email client || `/app/mail/<uuid>` | Email with a thread opened inline; a targeted message uses `sN.email-detail.messageId` || `/app/channels` | Channels list |@@ -39,7 +39,6 @@ Switching tabs or navigating an in-app route is not a back/forward-cache restore| `/app/calls` | Calls list || `/app/companies` | Customers (CRM; needs a team) || `/app/activity` | Activity heatmap + feed |-| `/app/home` | Assistant (AI-first landing) || `/app/calendar/<month-or-week-or-day>` | Calendar; the focused event, its occurrence, and the locator range use `sN.calendar.*` || `/app/<document-type>/<uuid>` | Legacy document URL (including `md`, `pdf`, `canvas`, `spreadsheet`, and the other Drive document types); redirects to `/app/drive/<document-type>/<uuid>` || `/app/documents`, `/app/files` | Legacy Files views; redirect to `/app/drive` |@@ -53,7 +52,7 @@ Switching tabs or navigating an in-app route is not a back/forward-cache restore| `/app/debug/<component>` | Registered debug views (for example `icon-gallery`, `md`, or `agent-ui`); existing environment gates apply. `/app/component/<component>` remains a compatibility alias for these views |When an event opens inline from Home, changing the Calendar period stays under-`/app/inbox/calendar/`, updates the period segment, and re-focuses that event.+`/app/home/calendar/`, updates the period segment, and re-focuses that event.Back/Forward restores the period and its event locator from `sN.calendar.*`.Home uses the shared channel and file details for channel conversations and@@ -61,7 +60,7 @@ supported documents, with a **Home** breadcrumb that returns to the list. Achannel message or thread target stays in its conversation. Document commenttargets, spreadsheets, unknown items, and other unsupported block types retainthe legacy inline preview so their navigation still works. The URL shape stays-`/app/inbox/<block-type>/<uuid>` in either rendering mode.+`/app/home/<block-type>/<uuid>` in either rendering mode.On touch devices, documents (including tasks) open in legacy blocks rather thaninline Drive details. Canonical `/app/drive/.../<document-type>/<uuid>` links also@@ -81,7 +80,7 @@ pane routes remain accepted. Known app-view URLs under `/app/component/` redirecto their canonical paths above; legacy composers keep their existing paths. Split-specific view state uses positionallynamespaced query parameters such as `s0.drive.sort=created_at`; route identityand breadcrumb nesting remain in the path. Home, Email, Tasks, and Channels-store the selected tab under `sN.inbox.tab`, `sN.mail.tab`, `sN.tasks.tab`,+store the selected tab under `sN.home.tab`, `sN.mail.tab`, `sN.tasks.tab`,and `sN.channels.tab`, respectively. Channels also stores the phone listselection as `sN.channels.mobileTab`. Omitted tab keys mean each view's default;changing tabs updates the URL, and browser Back/Forward restores the selection@@ -191,7 +190,7 @@ stay centered and the preview body fills the remaining height below the divider.new split, including when Search is already active. This left-click menu sharesits surface and item styling with the sidebar right-click menus, in both thecompact rail and expanded sidebar.-- Nav: `Go to Assistant`, `Go to Getting Started`, `Go to Home`, `Go to Recent`, `Go to Activity`.+- Nav: `Go to Home`, `Go to Getting Started`, `Go to Recent`, `Go to Activity`.- Workspace: `Go to Email`, `Go to Channels`, `Go to Calls`, `Go to Files`, `Go to Tasks`,`Go to Calendar`, `Go to Agents`, `Go to Customers`.- Then `Favorites` (pinned items) and `Latest` (recent channels/DMs with an `Unread` switch).@@ -245,7 +244,7 @@ logical split has no sidebar close button; mobile chrome is unchanged.A lone non-list content split still shows a header X labeled **Return to list**,which returns that split to the most recent list in its history, preservingthat list’s state. If there is no prior list, it replaces the current entry with-inbox. Excluded background panels do not count toward close eligibility.+Home. Excluded background panels do not count toward close eligibility.These buttons and Home items activate on primary-buttonpress; keyboard activation remains supported. Home, Chat, Email,Tasks, and other views using the shared inner@@ -456,8 +455,7 @@ Shared Mail restart rules still apply.- `c` then `d`/`t`/`e`/`m`/`a` — create doc / task / email / channel / AI chat.Single-letter shortcuts only work when no editor has focus; press `Escape` first.- `/` — search everything. `j`/`k` — move in lists. `e` — mark done.-- `g` then `h` — Home (inbox); `g` then `i` remains an alias. Assistant is- available through its sidebar link or the `Go to Assistant` command.+- `g` then `h` — Home; `g` then `i` remains an alias.- In Email and Tasks search, `Escape` returns focus to the list and keeps the query.Use the search field's clear button to clear it.- Splits: `` ` `` split, `Shift+H`/`Shift+L` move focus, `Shift+Esc` maximize.diff --git a/docs/AGENT_GUIDE/surfaces.md b/docs/AGENT_GUIDE/surfaces.mdindex b94b4d7daf..99a813e630 100644--- a/docs/AGENT_GUIDE/surfaces.md+++ b/docs/AGENT_GUIDE/surfaces.md@@ -85,7 +85,7 @@ that entity's last operation in the batch. Emitted `SoupUpdated` items are non-nIf viewer-scoped hydration finds no item, the backend logs and omits that update;it does not imply deletion. Only explicit `GraphqlCacheDeletion` events remove records.-## Home (desktop) / Notifications (mobile) — `/app/component/inbox`+## Home (desktop) / Notifications (mobile) — `/app/home`Every form factor waits for new-app-views flag readiness before choosing thenew view or its legacy fallback. With the flag enabled, touch devices render@@ -1123,7 +1123,7 @@ closing a document without edits must not add an event.Requires authentication and the `enable-activity-feed` flag. Direct navigation andrestored splits wait for flags to load; when disabled, they redirect to Home-(`/app/component/inbox`) without loading the activity feed.+(`/app/home`) without loading the activity feed.When checking Activity, enable GraphQL Soup as well as the activity flag. Verifythat an initial visit resolves entity names in both the feed and Most active,@@ -1231,11 +1231,11 @@ starts at the main page; explicit links (for example Account) open theirsection directly. Existing settings URLs open the requested section in the sheetand restore the underlying app route. The header stays visible while formsscroll, including with the keyboard open. On desktop, `/app/settings/<tab>`-opens settings fullscreen, while `/app/inbox/~/settings/<tab>` docks it beside-Inbox. **Open fullscreen** pushes a standalone settings URL; browser Back+opens settings fullscreen, while `/app/home/~/settings/<tab>` docks it beside+Home. **Open fullscreen** pushes a standalone settings URL; browser Backrestores the preceding split layout. **Move to split** restores the app layoutand docks the selected tab, while closing a docked settings pane minimizes it.-A direct fullscreen link returns to Inbox when there is no prior app layout.+A direct fullscreen link returns to Home when there is no prior app layout.Left nav: General → `Account` (profile, delete account), `API Keys` (create /list / delete personal keys; the secret is shown only once and is sent as