Skip to content

fix(apps): resolve app page links and route gates consistently #663

Backlog

Description

@RentnerKev

Problem

Wrong page for overview.

  • 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.

Found in the app platform audit of 2026-11-30.

Activity

  1. added
    bug
    area: ui
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions