Skip to content

Commit bd04651

Browse files
committed
docs(app-shell): rewrite three docblocks this branch falsified (#3666)
The two sidebars' `sys-datasources` entry now names the canonical `…/metadata/datasource` route, so three comments claiming the setup left-nav points at the legacy alias became false as of the previous commit. Rewritten as positive statements of what is true now. Per #3656, none of them re-plants the alias URL in a denial sentence — a comment that says "no longer points at X" keeps a grep for X returning the very hit the rewrite was meant to clear. `console/AppContent.tsx` is a comment-only change: the two alias route declarations, and every other line of code, are untouched. Its #3610 history is preserved and extended rather than replaced — #3610 declined to re-point the navigation because a zero-app-only spelling would have given the alias a second canonical destination, and #3660 re-pointed it at the shared route, so that reasoning still holds. Fixes #3666 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt
1 parent 6ca05d4 commit bd04651

3 files changed

Lines changed: 24 additions & 19 deletions

File tree

packages/app-shell/src/console/AppContent.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -646,16 +646,19 @@ export function AppContent({ extraRoutes, extraRoutesNoApp }: AppContentProps =
646646
branch below. They are NOT a second copy of the page: both render
647647
`LegacyMetadataRedirect`, which forwards onto the canonical
648648
`metadata/:type…` routes declared just above. Declaring them here
649-
is what makes the zero-app console's own fallback navigation work:
650-
`sys-datasources` points straight at
651-
`…/component/metadata/resource?type=datasource`, and `sys-objects`
652-
arrives via the host's `system/metadata/:type` → same alias
653-
rewrite. Both pass `isMetadataRoute` (a `metadata` path segment —
654-
a substring test until #3638) and so land in THIS branch, which declared no
655-
`component/…` route at all — every one of them rendered a blank
656-
screen. Kept as a mirror rather than re-pointed navigation because
657-
the alias already has exactly one canonical destination; adding a
658-
zero-app-only spelling would create a second. */}
649+
is what stopped the zero-app console rendering a blank screen: the
650+
fallback navigation then aimed `sys-datasources` at an alias, and
651+
carried `sys-objects` onto one via the host's
652+
`system/metadata/:type` rewrite. Both pass `isMetadataRoute` (a
653+
`metadata` path segment — a substring test until #3638) and so land
654+
in THIS branch, which declared no `component/…` route at all —
655+
every one of them rendered a blank screen. #3610 mirrored the
656+
routes rather than re-point that navigation, because inventing a
657+
zero-app-only spelling would have given the alias a second
658+
canonical destination. #3660 re-pointed it anyway — at the shared
659+
`metadata/:type` routes above, so no second spelling was created —
660+
which leaves these two serving bookmarks and external links, the
661+
arrivals that can never be re-pointed. */}
659662
<Route path="component/metadata/directory" element={<LegacyMetadataRedirect mode="directory" />} />
660663
<Route path="component/metadata/resource/*" element={<LegacyMetadataRedirect mode="resource" />} />
661664
{extraRoutesNoApp}

packages/app-shell/src/views/metadata-admin/datasource/DatasourceResourcePage.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
* registered into the metadata-admin engine (`registerMetadataResource`) and
66
* reached via the engine route `…/metadata/datasource`.
77
*
8-
* Two legacy spellings still arrive here, both as redirects onto that engine
9-
* route rather than routes of their own (objectui#3639): the setup left-nav
10-
* "Datasources" item points at `…/component/metadata/resource?type=datasource`
11-
* (rewritten by `LegacyMetadataRedirect`), and the console host forwards
12-
* `…/system/metadata/datasource` (rewritten by its own `MetadataRedirect`).
8+
* The setup left-nav "Datasources" item names that engine route directly
9+
* (objectui#3660). Two legacy spellings still arrive here as well, both as
10+
* redirects onto the same engine route rather than routes of their own: the
11+
* console host forwards `…/system/metadata/datasource` (rewritten by its own
12+
* `MetadataRedirect`), and the older aliases `AppContent` declares for
13+
* bookmarks and external links are rewritten by `LegacyMetadataRedirect`.
1314
*
1415
* datasource is a *side-effectful* metadata type: its records are managed by
1516
* the framework `datasource-admin` service (secret encryption + connection-pool

packages/app-shell/src/views/metadata-admin/datasource/register.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
* (engine route + registry slot + shell), reachable at the engine route
99
* `…/metadata/datasource`, instead of a separate hand-written System page.
1010
*
11-
* The setup left-nav "Datasources" item still points at the older
12-
* `…/component/metadata/resource?type=datasource` spelling. That is a legacy
13-
* *alias*, not this engine route: it renders `LegacyMetadataRedirect`, which
14-
* 302s onto `…/metadata/datasource` (objectui#3639).
11+
* The setup left-nav "Datasources" item names that engine route directly
12+
* (objectui#3660). The older alias spellings `AppContent` still declares are
13+
* redirects onto it rather than routes of their own — kept so bookmarks and
14+
* external links keep resolving — but no navigation in this repo is routed
15+
* through them any more.
1516
*/
1617

1718
import { registerMetadataResource } from '../registry';

0 commit comments

Comments
 (0)