Skip to content

Commit 36954c6

Browse files
committed
[maintainer] refactor(app-shell): move the Interfaces nav rail out of StudioDesignSurface.tsx (slice 3)
Move-only (ruling #24586 A): the Interfaces pillar's navigation rail (NavTree, NavTreeGroup, ContributedNavRows, OffNavSections, the two rail contexts, navKindName, navOpenedItems, KIND_ICON / navIcon) moves byte for byte into views/studio-design/InterfacesNavRail.tsx. Only imports and eleven `export`s change. The two by-path readers gain the new module, and two test comments now name PackageSwitcher.tsx, where slice 2 moved the text they cite. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzedfGwVcebpN5t3ETE
1 parent eee4149 commit 36954c6

7 files changed

Lines changed: 518 additions & 465 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
internal: move-only — the Studio Interfaces pillar's navigation rail moves out of `StudioDesignSurface.tsx` into its own module (#29988, slice 3)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
No behaviour change. The rail Studio's Interfaces pillar draws for an app's navigation (the nav tree and its groups, the rows a customization package contributes, the off-nav sections for pages, dashboards, reports and views, the two rail contexts, the kind names and kind icons) now lives in `views/studio-design/InterfacesNavRail.tsx`. The moved code is byte-identical apart from its imports and eleven `export`s; `StudioDesignSurface.tsx` imports it from there. The package's public exports are unchanged.

‎ui/packages/app-shell/src/__tests__/homeRecoveryRedirectsFollowDeclaration-7373.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ const RECOVERY_SITES: ReadonlyArray<{
139139
alsoReads: [
140140
'packages/app-shell/src/views/studio-design/StudioNavItemInspector.tsx',
141141
'packages/app-shell/src/views/studio-design/PackageSwitcher.tsx',
142+
'packages/app-shell/src/views/studio-design/InterfacesNavRail.tsx',
142143
],
143144
site: 'Studio: deleted-package eviction + header Home',
144145
expression: /const homePath = useHomePath\(\)/,

‎ui/packages/app-shell/src/views/metadata-admin/PackagesPage.confirmFlows-11784.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ describe('PackageDetailSheet — no native dialog on these three paths (objectui
392392
describe('Console Packages page — a delete there stays on the page (objectui#11784)', () => {
393393
/**
394394
* Studio's return to its landing after a delete is the Studio HOST's
395-
* (`PackageSwitcher`'s eviction in `StudioDesignSurface.tsx`), not the
395+
* (`PackageSwitcher`'s eviction in `PackageSwitcher.tsx`), not the
396396
* sheet's. The same sheet serves this console page, whose `onChanged` only
397397
* reloads the list; `/studio` is not a destination here.
398398
*/

0 commit comments

Comments
 (0)