This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(app-shell): a member who may read none of an app's objects lands on one access page - #13347
Merged
Merged
Conversation
…on one access page The app root's landing asked the object-read prune only to drop object entries, so an app whose objects the member cannot read landed on its dashboard and drew a grid of refusals. When every object entry the app names is unreadable, the landing now renders the app-level empty state with a "no readable object" reason that says to ask an administrator for a permission set. Claude-Session: https://claude.ai/code/session_01TpToTVFniSfCoKfhPL16Nz Co-authored-by: Claude <noreply@anthropic.com>
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
|
Contributor
Author
席位核对ACCEPT ·
Generated by Claude Code |
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.
Requested by Tesla · project thread
Part of objectstack-ai/objectstack#25338
Clause-②: yes
Metadata-protocol: none
What changes
A member who may read none of the objects an app names landed on the app's dashboard (the object-read prune only drops
type: 'object'entries, so the dashboard entry survived) and saw a grid of "You don't have access" tiles. The app root's landing now asks the prune's own verdict,useNavMemberGates().can, over every object entry the app names, at every depth and in every area. When the app names at least one object and the member may read none of them, it renders the existingAppNoAccessEmptyState(objectui#12079) with a newreason="no-readable-object":A member who may grant access also gets the Setup link, as with the no-navigation reason. One readable object, or an app that names no object at all, lands exactly as before.
appServesNoNavigation.ts: new pure predicateappNamesOnlyUnreadableObjects(app, can).AppNoAccessEmptyState.tsx:reasonprop (defaultno-navigation, unchanged copy),data-reasonon the description.AppContent.tsxAppRootLanding: one early return before the landing is chosen. No hooks follow it.cannever answers for a pending read, becauseMePermissionsProviderrenders its fallback until it holds an answer.@object-ui/i18n: two keys in all 10 locales.The companion objectstack PR (same branch name) lets Create User grant a permission set in the same step, so an administrator can avoid this state in the first place.
Verification
AppContent.noReadableObjectLanding-25338.test.tsx, 4/4: none readable gives the empty state at/apps/crm; one readable lands on the dashboard; an app naming no object lands on the dashboard; an object named only underareasthat is readable lands on the dashboard.if (false && …)), the first case goes red ("may read none of the named objects: the app-level empty state, not the dashboard"); restored, green.AppContent.*,AppNoAccess*andpackages/i18ntests: 115 files, 1556 passed, 13 skipped.check:i18n-keys,check:i18n-drift,check:i18n-dead-keys,check:vi-mock-*(3),check:changeset-claims,check:pending-changeset-literals,check:control-bytes,check:new-line-citations,check:test-path-roots,check:unreferenced-sourcesall exit 0. eslint on the changed files: 0 errors.app-shelltype-check(this checkout has no built@object-ui/*dist, so every workspace import is unresolved; no error is in the changed lines beyond that) andcheck:eager-locale-catalogues(needs a built console bundle). CI covers both.Out of scope
"Whom to ask" is the generic "an administrator": the app carries no owner or contact field to name a person.
🤖 Generated with Claude Code
https://claude.ai/code/session_01TpToTVFniSfCoKfhPL16Nz