Repository navigation
fix(apps): close app pages a user may not open and isolate slow app columns - #644
Merged
Merged
Conversation
…olumns Two gaps from checking #625 against its acceptance criteria. App pages by URL. The page route only checked that an app with extensions had some page for the user, so once a user could open one page, any declared route of the app opened by URL, including the entry route of a page whose permission the user lacks. The app summary now carries `deniedRoutes`: entry routes of pages the user may not open that no page they may open shares. The route refuses them and opens an app with extensions at the first page the user may open. Other routes stay reachable from inside the app's pages. The decision moves into `appPageRoute`, which is now tested. Host table columns. All apps answered their columns one after another under the request's 10 s budget, so one slow app ran the request out and every app's column turned unavailable. Apps now answer side by side, each within its own 6 s deadline inside the request; a late or oversized answer leaves only that app's columns unavailable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Closed
6 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Part of closing #625. I checked every acceptance criterion against code and tests; these two gaps needed code.
App pages by URL (#625: pages only for permitted users)
The page route
apps.$installationId.{-$routeId}only checked that an app with extensions had some page for the user. Once a user could open one page, every declared route of the app opened by URL, including the entry route of a page whose permission the user lacks.deniedRoutes: the entry routes of the app's pages the user may not open, which no page they may open shares. The route refuses them.overview.appPageRoute(web/src/lib/AppUi/page-access.ts), which is now unit-tested.Operations stay permission-checked on the server either way; this closes the page itself.
Host table columns (#625: malformed, late or oversized answers)
readAppHostTablesasked all apps one after another under the request's 10 s budget. One slow app could run the whole request out, and then every app's column showed as unavailable.APP_HOST_TABLE.appTimeoutMs) inside the request.Tests
page-access.test.ts: first permitted page, in-app routes, a denied page route by URL, no page or a search slot for an app with extensions, slot-only apps.extensions.test.ts:deniedRouteswith and without the page key.ui-host-table.test.ts: one app that never answers and one whose answer is too large leave only their own columns unavailable, while a third app's column arrives well inside the request. This test fails without the change.bun run typecheck;oxlint, both configs, on the changed files;bun test --isolatefor lib/AppUi, server/AppRuntime, features/AppUi, layouts, QuickSearch, ProxyHostManagement, routes and architecture: 678 pass.🤖 Generated with Claude Code