You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(apps): resolve app page links and route gates consistently #663
appUiDefaultRoute (web/src/lib/AppUi/bridge.ts:120-122) prefers overview. The sidebar (useApplicationNavigationLogic.ts:77) and quick search (useQuickSearchLogic.ts:231-232) drop routeId for that route.
appPageRoute (web/src/lib/AppUi/page-access.ts:23) resolves a missing routeId to pages[0] for apps with extensions. With pages [checks, overview], the Overview link opens Checks and the active marker highlights Overview.
useAppCatalogLogic.ts:172-177 already handles this correctly.
Route gates have gaps.
deniedRoutes is built only from refused app.page entries (web/src/lib/AppUi/extensions.ts:187-190). A host action route the user may not use still opens as a page by URL if the app has another allowed page.
appPageRoute does not require the navigation slot for slot-only apps (page-access.ts:20-25).
Host action dialogs follow app navigate messages without the denied check (useAppHostActionDialogLogic.ts:30); the page route does check it.
All of these are presentation gates. Every operation is still authorized on the server (web/src/server/AppRuntime/ui/access.server.ts:133-146).
Proposal
Add one helper for the default page route and use it in the sidebar, quick search and the page route.
Add refused row action routes to deniedRoutes.
Require the navigation slot for slot-only apps.
Check deniedRoutes for navigate in every app host.
Acceptance
Tests for an app with pages [checks, overview], a refused row action route opened by URL, and a navigate to a denied route from a host action dialog.
Activity