This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(app-shell): the app report index lists the reports its navigation ships, module contributions included - #13283
Merged
objectstack-fleet[bot] merged 1 commit intoOct 20, 2026
Conversation
… ships, module contributions included Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB
Contributor
✅ 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
|
This was referenced Oct 20, 2026
objectstack-fleet
Bot
deleted the
claude/issue-13273-app-report-index-contributions
branch
October 20, 2026 19:47
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13273
Clause-②: no
What changed
The app's report index (
/apps/APP/reports) listed only the reports whose_packageIdis the app's own. A module that contributes report entries to the app throughnavigationContributionsowns its reports, and the served navigation merges those entries into the app's groups with no package stamp, so the module's reports were missing. On HotCRM the admin saw 7 of 10 reports and the service agent saw 2 of 5.appShippedReports(packages/app-shell/src/views/appReportIndex.ts) now lists the union of:type: 'report'entry of the app's served navigation names, at any depth.Each report name is listed once. The owned document wins, and otherwise the first served document is used. A navigation entry that names a report the report list does not hold is left out, because it could not be opened. The dataset read gate (
mayOpenReport) is unchanged and applies to the whole union.The navigation walk is the ⌘K palette's
flattenNavigation, moved fromCommandPalette.tsxintoappReportIndex.tsand imported back by the palette. The palette and the index now read the navigation through one walk instead of two.appReportIndex.tsis an internal module that the package entry does not re-export, so the package gains no new export. The docblock now says what the index lists.The palette's behaviour does not change: it already showed nav-named reports through their own entries and drops them from
useAppReportEntries's list by name.Tests
New:
packages/app-shell/src/views/__tests__/AppReportIndex.navContributions-13273.test.tsx. It renders the realMetadataProvider,MePermissionsProvider,ExpressionProviderandI18nProvider.Ablation (measured on
7fee29f8d5): I deleted the linetake((report) => named.has(report.name as string));withablation-replace.mjs. The anchor count went from 1 to 0 and the blob from4afe46b9ad24to4a841cc83333. Result:Tests 3 failed | 1 passed (4). (a), (b) and (c) went red and the control (d) stayed green. The restore was proven by blob hash: after restore the file is4afe46b9ad24, which equals the HEAD blob, andgit diff HEADis empty.Runs on
7fee29f8d5(vitest--maxWorkers=1, under the shared lock):AppReportIndex-13020.test.tsx:Tests 12 passed (12).CommandPalette.*.test.tsx, 7 files), both index tests andappRouteChunks-12980.test.ts:Test Files 10 passed (10),Tests 58 passed (58).unsavedEditsLeave.census-13253,openPathObjectReaders-12811,navEntryDataSource-13029,HomeLayout.searchOpensPalette-12601,adr0054-ratchet):Tests 38 passed (38).pnpm --filter '@object-ui/app-shell^...' build, thenpnpm --filter @object-ui/app-shell type-check: exit 0.tsconfig.test.jsonlists the new test file.check:*gates pluscheck-hand-rolled-comment-mask.mjs) andcheck-changeset-fixed.mjs: all exit 0.eslint --no-inline-config, 0 errors and 12 warnings, all pre-existing. The 3no-explicit-anywarnings on the walk moved here fromCommandPalette.tsxwith it.--print-configresolves each one), and the JSON output counts 3 files.eslint.config.jssets noparserOptions.projectorprojectService), so this diff cannot change the lint verdict of any file it does not touch.Declared to CI: the full
packages/app-shell/test directory. I did not run whole-directory runs locally.Acceptance notes
visibleexpressions to the navigation union, just as it never applied them to owned reports. The palette applies them only to its own nav entries.SearchResultsPage.tsxkeeps its own private copy offlattenNavigation. It is outside this card's file surface, and I left it untouched.Generated by Claude Code