Repository navigation
refactor(app-shell)!: remove the unmounted AppSidebar (objectui#5817) - #10617
Conversation
AppSidebar had no mount point in this repository (ConsoleLayout renders UnifiedSidebar) and was deprecated under objectui#5720. The maintainer ruled it can go now, provided the console's function is unaffected. - Delete layout/AppSidebar.tsx and its own two test files. - Drop only the AppSidebar halves of the shared sidebar tests and of the two source scans that read the file; every UnifiedSidebar case keeps its assertions. - Remove the export from the layout barrel and the package entry. - Correct the comments, docs and pending changeset sentences that the removal makes false. - Add an export-absence pin and a minor changeset stated as breaking. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33C
… (objectui#5817) The zero-app branch note in AppContent.systemHubRoutes read the sidebars' sys-* cluster as rendering only with no active app. That was AppSidebar's fallback cluster; with it gone, say which sidebar reaches the branch and keep the AppSidebar fact as history. Comment only. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33C
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Rendered by an isolated review subagent spawned by the ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Fixes #5817
Clause-②: yes
What this does
Removes
AppSidebarfrom@object-ui/app-shell. Nothing in this repository mounted it:ConsoleLayoutrendersUnifiedSidebar. objectui#5720 deprecated it after a census; the maintainer has now ruled it can go without waiting for a major release, provided the objectstack console's function is not affected (relayed on the card in comment5805876559).packages/app-shell/src/layout/AppSidebar.tsxand its own tests (AppSidebar.derivedAreaVisibility.test.tsx,appSidebarSettingsTargets.test.tsx).AppSidebarexport fromlayout/index.tsand from the package entrysrc/index.ts. Nothing else in either barrel moved.AppSidebarcase fromsystemNavDatasourcesHop,systemNavObjectsHopandsystemNavSettingsTarget. EveryUnifiedSidebarcase is byte-identical to the base. The two CONTROL cases are code-identical; one comment in each changed from "the two assertions above" to "the assertions above". No shared fixture had to become a local helper: the mocks are shared setup, and their code is unchanged (two of their doc comments were corrected).AppSidebarrows were removed: the app-switcher Home row inhomeAffordancesFollowDeclaration-7256.test.ts, and theAppSidebarfile inresidue-namespaces-3546.test.tsx. In the i18n scan,layout.systemNav.datasourcesis now pinned at its survivingUnifiedSidebarcall site.packages/app-shell/src/__tests__/appSidebarRemoved-5817.test.ts: the component file is gone, and neither barrel namesAppSidebarin code (comments masked). It has a control onUnifiedSidebar. It follows the shape ofrootLandingHasOneResolver-10042.test.ts..changeset/5817-remove-app-sidebar.md:'@object-ui/app-shell': minor(fixed group, nevermajor), stated as breaking in migration terms: useUnifiedSidebar, including the gating difference objectui#5720 recorded.appsidebar-deprecated-5720.md,6335-starred-apps-nav-exclusion.md,6507-boot-gate-redirect-splash.md,6661-app-launcher-nav-menu-renderers.md, and3743-retire-system-hub-card-wall.md(its "both sidebars" and "sidebar header and user menu" links wereAppSidebar's).⛔ No behaviour change to
UnifiedSidebar,ConsoleLayoutor any mounted component.UnifiedSidebar.tsxchanged in comments only.Measurements taken before deleting
M1, census.
AppSidebarin code only in:There is no production import, no lazy import, and no route or registry key.
origin/main(a08e059c61): no import ofAppSidebar. Its mentions are:packages/spec/liveness/app.json;packages/spec/src/ui/app.zod.ts.Its
packages/consoleis the prebuilt@object-ui/consoleSPA.AppSidebar org:objectstack-aireturned a total count of 52 and 52 items. The known filepackages/app-shell/src/layout/AppSidebar.tsxwas among them, which is the known-hit control. The only hit outside objectui and objectstack is a comment inobjectstack-ai/hotcrmsrc/sales/apps/crm.app.ts. That comment says itsbranding.logorenders throughAppSidebar.tsx. It is not an import.dist/index.d.ts, closure plus app-shelltscbuild:layout/index.jsre-export list namesAppSidebar, anddist/layout/index.d.tsre-exports it;grep -c AppSidebaranswers 0 in both files.M2, the console is not affected.
ConsoleLayoutmountsUnifiedSidebaras its sidebar andAppHeader(withAppSwitcher) as its navbar. The M1 scan finds no route, lazy import or registry key that reachesAppSidebar. The following are green:tsc,vite build,build:plugin);M5, i18n.
check:i18n-keysis green. The sweep that reads the other direction,check:i18n-dead-keys, is report-only and wired into no workflow. After the removal it adds ten keys with no call site:layout.appSwitcher.{addApp, appsAvailable, editApp, editNavigation, home, manageAllApps, noAppsConfigured, systemConsole}anduser.settings;sidebar.searchNavigation.No gate asks for their removal, so the packs are untouched.
M4, prose. Comments were edited only where the deletion made them false. Each edit is text only.
ExpressionProvider.tsx(the JSDoc example now wrapsUnifiedSidebar);console/AppContent.tsx(the add-app clause);ConsoleShell.tsxandbootRedirectCoverage.test.tsx(theSystemRedirectrationale keepsSettingsViewonly);StarredApps.tsx;FavoritesProvider.tsx;UnifiedSidebar.tsx(four pointers toAppSidebar);ActionResultDialog.tsxand its test;nav-menu-renderer.tsx(the same three providers are now named asUnifiedSidebar's, which wires them identically);ExpressionProvider.visibleFaultDiagnostic.test.ts(thehasActionHandler: falsewiring is now credited toAppSchemaRendererwithoutonAction, becauseUnifiedSidebarwirestrue);UnifiedSidebar.derivedAreaVisibility.test.tsx;navItemVisibleEvaluated.test.tsx;AppContent.noAppsCta.test.tsx;AppContent.pseudoRouteSegments.test.tsx;AuthProvider.tsx,UserMenu.tsxandsignOut-client-cache-purge-5198.test.tsx;useRecordEditable.principalScope.test.tsx(it quotes theAuthProvidersentence, kept in step);MePermissionsProvider.capabilitiesReported.test.tsx;app-creation-types.test.ts;AppContent.tsx(two present-tense "both sidebars" clauses),AppManagementPage.tsx(the call-shape example is nowAppSwitcher), andAppContent.systemHubRoutes.test.tsx(the zero-app branch note);content/docs/guide/console-architecture.md.CHANGELOG.mdis published history;ROADMAP.mdentries are completed history;docs/audits/2026-06-ui-testability.mdis a dated audit;AppSidebar.systemFallbackNavigationbullet in apps/consoleAppContent.tsxis an explicitly dated reading ("when this redirect landed");residue-namespaces-3546.test.tsxwere measured at that slice's branch point;homeAffordancesFollowDeclaration-7256.test.tsdescribes the original defect, so a note was added beside the table instead;QuickActions.tsx,QuickActions.settingsTarget.test.tsx,AppContent.noAppsCta.test.tsx(the objectui#3590 retarget) andAppContent.pseudoRouteSegments.test.tsxnarrate what those issues changed at the time;AppContent.noAppComponentRoutes.test.tsxmeans the two nav entries, and it is still true.Verification
Suites ran on the tree of
4a4e58d9e. The final head0bec5284eadds one comment-only edit toAppContent.systemHubRoutes.test.tsx; that file and the new pin were re-run green on0bec5284e, as were the cheap gates.pnpm --filter '@object-ui/app-shell^...' build, then app-shelltscbuild (dist completeness: 934 emitted files verified): exit 0.tsc,vite build,build:plugin): exit 0. It first needed six console-only dependencies built (plugin-gantt,plugin-map,plugin-markdown,plugin-timeline,plugin-tree,test-support); on the first trytsccould not resolve them, which was a missing prerequisite, not a failure.AppSidebarstring.check:eager-closure,check:eager-locale-cataloguesandcheck:sdui-registration-pinsall exit 0.type-checkfor@object-ui/app-shell,@object-ui/i18nand@object-ui/consoleexits 0. Counted with--listFiles, the app-shell test tsconfig includes the new pin and the edited scans.pnpm exec vitest run packages/app-shell/in 6 shards: 797 files (1 skipped), 8062 tests passed, 9 skipped, every shard exit 0;pnpm exec vitest run apps/console/: 117 files, 1288 tests passed;packages/i18n/,packages/auth/and the i18n, unreferenced-sources, line-citation and skills-paths script tests: 102 files, 1824 tests passed;0bec5284e, all exit 0:check-changeset-presence,check-changeset-no-major,check-changeset-fixed;check:new-line-citations(0 new citations);check:control-bytes;check:changeset-claims(report-only; each of the six flagged paragraphs was read, and none is falsified by this change);check:i18n-keys,check:test-path-roots;governed(NOT GOVERNED).4a4e58d9e:check:i18n-drift,check:unreferenced-sources,check:phantom-deps,check:unused-deps,check:self-import,check:esm-specifiers,check:pending-changeset-literals;check:readme-exports, green once the unrelatedcliandplugin-aiwere built (the first run stopped on their missing type entries);check-changeset-overwrite(report-only; it lists the five corrected changesets with unchanged declarations).Lintcheck-run is green on this head.)api-extractorconfig or.d.tssnapshot gate exists in this repo.HEAD, viaablation-replace.mjswith the trap restore:grep -c AppSidebaranswered 1 in each barrel).HEADand an emptygit diff HEAD. The pin then read 4 passed.pnpm testand E2E, reason: CI owns them;permissions,plugin-detailandtypes, reason: their edits are test comments only, and the edited files ran green;Acceptance notes
objectstack liveness ledger,
packages/spec/liveness/app.json. One line for each row that citesAppSidebaras read evidence. The citations are pinned at@940ba24, so they still resolve as addresses; what goes stale is their standing as evidence of a live reader.label: live readers areAppSwitcher(resolveKeyedI18nLabel(activeApp.label, t)for the pill, and each row of the switcher list),ConsoleLayout(appLabelfeedingAppHeaderand theAppShellbrandingtitle), andHomeAppsStrip(launcher tiles).description: the live reader is apps/consoleAppManagementPage(the system/apps list line and search filter). The ledger's "rendered under the active app's title" presentation has no successor: no mounted chrome shows the active app's description.AppCardreads it but has no in-repo mount point.icon: live readers areAppSwitcher(getIcon(app.icon)on each switcher row) andHomeAppsStrip(getIcon(app.icon)).branding: the row covers logo, primaryColor, accentColor and favicon.primaryColoris live:ConsoleLayouthandsactiveApp.branding.primaryColortoAppShell, anduseAppShellBranding(layoutAppShell.tsx) sets the brand CSS variables.branding.logohas no other runtime reader. Only authoring surfaces read it: plugin-designerEditAppPage(prefill) and theBrandingEditor/AppCreationWizardpreviews.AppSchemaRendererreads the top-levellogo, notbranding.logo.active: live readers areAppSwitcherandUnifiedSidebar(thea.active !== falsefilter and active-app lookup) andfilterActiveApps(utilsappRoute.ts, used byHomePageandapp-launcher-renderer). The row's note also cites anAppSidebarcomment.hidden: live readers areAppSwitcherandUnifiedSidebar(a.hidden !== true) andfilterActiveApps.navigation[].id: live readers areUnifiedSidebaruseNavOrder(reorder persistence by id),useNavPins(pinnedNavIds),NavigationRenderer(the sortable id and pin toggles) andnav-menu-renderer(row keys and the active row).navigation[].visible: the live reader isUnifiedSidebarevalVis, which isevaluateVisibility(expr, evaluator)handed toNavigationRendererand tohasVisibleNavigationItems;nav-menu-rendererwires it the same way.NavigationRendereris already cited on the row.areas[].id: the live reader isUnifiedSidebar(activeAreaIdelection and the switcherkey).areas[].label: the live reader isUnifiedSidebar(resolveInlineI18nLabel(area.label, language)).areas[].icon: the live reader isUnifiedSidebar(getIcon(area.icon)).areas[].navigation: the live reader isUnifiedSidebar(activeArea?.navigationandhasVisibleNavigationItems(area.navigation, …)).AppSchemaRendereris already cited on the row._note: it lists "app-shell AppSidebar/ConsoleLayout/ContextSelectors" among objectui's consumers.packages/spec/src/ui/app.zod.tsnamesAppSidebarin therecordIdtemplate-variable note and in theAREA_ORDER_RETIREDnote.UnifiedSidebaralso iteratesareasin the order they are authored.Other notes:
branding.logois authored but no longer rendered by anything that ships. The console never mounted its only reader, so this gap predates this PR. Authors still write it: plugin-designer'sBrandingEditor, the published 17.6.0 CHANGELOG ("To show a logo, set it on the app schema'sbranding.logoinstead") and hotcrm'scrm.app.tsall do. The seat owns the ledger card (5805876559).ObjectViewtype export tosrc/index.ts. This PR removes one line in the layout-chrome export block of that file. The lines are disjoint; a conflict is resolved by merge commit.console/home/AppCard.tsxis exported but not mounted in-repo.Session:
https://claude.ai/code/session_01BP8CMtACxTdLjqR6rhd33CGenerated by Claude Code