Skip to content

Commit a150b5c

Browse files
committed
test(console): the agent-chat route-table harness inherits the landing module's predicate
Claude-Session: https://claude.ai/code/session_01QsR2jVL7fzYGjxa3ani6k8 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c00ef9e commit a150b5c

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎.changeset/29750-native-push-route-hosted.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ What changes:
1414

1515
- The listener resolves the route with the same resolver the inbox bell and Home use for that notification. An app-relative route is hosted under the app the person is in or last had open; an `/apps/...` route passes through unchanged.
1616
- With no app open yet (a tap that starts the app), the route goes to the router as given, and the Console's unmatched-route page hosts it under the default app once the app list has loaded: the app the person last had open while it is still active, else the first active app. The same page handles an app-relative path that arrives as the page's first URL, which the shell sends when it re-creates its web view at a held route or when no listener answered.
17-
- A path whose first segment names a Console route served outside an app (`/home`, `/dev`, `/studio`, ...) still redirects to `/`, as before. A path such as `/foo/bar` that names no Console route now opens `/apps/<default app>/foo/bar` instead of Home.
17+
- A path whose first segment names a Console route served outside an app (`/home`, `/dev`, `/studio`, ...) still redirects to `/`, as before. A path such as `/foo/bar` that names no Console route now opens `/apps/APP/foo/bar` (APP being that default app) instead of Home.
1818
- `@object-ui/app-shell` exports `resolveNotificationTarget`, its `NotificationTarget` type and `CONSOLE_ROOT_SEGMENTS` from the package root.
1919

2020
What to do: nothing.

‎ui/apps/console/src/__tests__/App.agentChatLink-10640.test.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ vi.mock('@object-ui/auth', async (importOriginal) => ({
107107

108108
// ── Everything else App.tsx imports but this card does not touch ─────────
109109
vi.mock('../components/ProtectedRoute', () => ({ ProtectedRoute: passthrough }));
110-
vi.mock('../components/RootLandingRedirect', () => ({ RootLandingRedirect: stub('root-landing') }));
110+
// objectstack#29750: the catch-all reads `isAppListConclusive` from here.
111+
vi.mock('../components/RootLandingRedirect', async (importOriginal) => ({
112+
...(await importOriginal<Record<string, unknown>>()),
113+
RootLandingRedirect: stub('root-landing'),
114+
}));
111115
vi.mock('../components/SetupRoute', () => ({ SetupRoute: stub('setup-route') }));
112116
vi.mock('../components/MetadataHmrReloader', () => ({ MetadataHmrReloader: () => null }));
113117
vi.mock('../AppContent', () => ({

‎ui/apps/console/src/__tests__/App.nativeShellMode-29039.test.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ vi.mock('../AppContent', () => ({
100100
ConsolePermissionsRequest: () => null,
101101
}));
102102
vi.mock('../components/ProtectedRoute', () => ({ ProtectedRoute: passthrough }));
103-
vi.mock('../components/RootLandingRedirect', () => ({ RootLandingRedirect: stub('root-landing') }));
103+
// objectstack#29750: the catch-all reads `isAppListConclusive` from here.
104+
vi.mock('../components/RootLandingRedirect', async (importOriginal) => ({
105+
...(await importOriginal<Record<string, unknown>>()),
106+
RootLandingRedirect: stub('root-landing'),
107+
}));
104108
vi.mock('../components/SetupRoute', () => ({ SetupRoute: stub('setup-route') }));
105109
vi.mock('../components/FormPage', () => ({ FormPage: stub('form-page') }));
106110
vi.mock('../components/InternalFormRoute', () => ({ InternalFormRoute: stub('internal-form-route') }));

0 commit comments

Comments
 (0)