Skip to content

feat(apps): add the extension target catalog and native app page navigation - #630

Merged
RentnerKev merged 3 commits into
mainfrom
rentner/feat/app-extension-targets
Nov 29, 2026
Merged

RentnerKev merged 3 commits into
mainfrom
rentner/feat/app-extension-targets

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

First slice of RentnerProxy/platform#625: the extension target catalog v1 and its first target, app.page. Apps can now choose where their pages appear instead of always getting one framed entry in the apps group.

"x-rentnerproxy-extensions": {
  "version": "1.0.0",
  "extensions": [
    {
      "target": "app.page",
      "id": "checks",
      "title": { "en": "Health checks", "de": "Prüfungen" },
      "permission": "monitoring-read",
      "entry": "checks",
      "navigation": { "group": "operations", "icon": "activity" }
    }
  ]
}
  • Navigation
    • A declared page appears in the group it names, with an icon from a fixed platform set (36 lucide icons).
    • It is shown only to users who hold its permission key.
    • Several pages of one app highlight by route.
  • Search: Ctrl+K finds declared pages by their title or by the app name.
  • No implicit page: an app that declares extensions gets no navigation entry or page beyond what it declares. Its route and the catalog's Open link follow its pages, and Open starts at the first page.
  • Slot-only apps are unchanged: Greeting 1.0.x and Monitoring 1.0.0 still get one entry in the apps group.
  • Inventory robustness: before this change, one inventory entry the web could not parse, or one unknown slot string, hid every app. Now only that entry, or only that slot, is skipped.

Design notes

  • Why the OpenAPI document, not the manifest. The manifest's ui member is closed, and signed catalogs embed manifests. A new ui.extensions member would make older platforms reject the entire catalog. x-rentnerproxy-extensions sits next to x-rentnerproxy-ui and x-rentnerproxy-native-ui, which older platforms ignore.
  • No protocol bump. The document carries its own catalog version. The web reads any 1.x document and reports the lower of the app's version and the platform's version as extensionCatalog.
    • Unknown targets and unknown optional members are skipped, so a later 1.x catalog degrades gracefully.
    • Without a readable 1.x document the app keeps its slot behavior.
  • Core stays thin.
    • The core bounds the document the same way it bounds the native presentation: an object of at most 8 KiB. That limit keeps 256 maximal apps inside the 8 MiB inventory budget, and the existing budget test now includes it.
    • Authorization does not depend on this document. Operations keep their x-rentnerproxy-access checks, and page permissions only decide what the shell offers.
  • What comes next on feat(apps): add a versioned extension target catalog and declarative host table extensions #625: the declarative host table column, the row action, and the remote rendering prototype will land in follow-up PRs. The SDK schema and the Marketplace checks follow in RentnerProxy/app-sdk.

Test plan

  • bun --check typecheck, oxlint, and type-aware oxlint on the changed files.
  • Web tests:
    • extension resolution (lib/AppUi/extensions.test.ts)
    • summaries with per-key page filtering
    • inventory isolation and slot filtering
    • pages in their declared groups with icon and highlight
    • search by page title, and a page that disappears before it opens
    • the existing app UI, catalog, navigation preference, mobile navigation and proxy host suites (354 tests)
  • Rust tests in a Kiri container as root, toolchain 1.99.1: app_manager::ui, 27 passed, including the root-only package load and the full inventory budget.
  • cargo clippy --all-targets --all-features -D warnings and cargo fmt --check.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Apps can now provide multiple navigable pages, with localized titles, icons, and navigation groups.
    • Quick Search can find apps and their pages, and open the selected destination.
    • Installed-app links and navigation now open the appropriate app page, with active pages highlighted.
    • Pages respect app permissions; apps without page declarations retain a navigation fallback.
  • Bug Fixes
    • Invalid app entries and unsupported navigation slots no longer prevent other valid apps from appearing.

…gation

Apps can now declare where they extend the platform in a new OpenAPI
member, x-rentnerproxy-extensions, starting with the app.page target.
A declared page appears in the navigation group the app names, with an
icon from a fixed platform set, only for users who hold its permission
key, and in the command search. An app that declares extensions gets no
navigation entry or page beyond what it declares.

- The core reads the document like the native presentation: a bounded
  object (8 KiB, which keeps 256 maximal apps inside the inventory
  budget) passed through for the web to validate.
- The web reads any 1.x catalog leniently: unknown targets, invalid
  entries, repeated IDs, undeclared routes or permission keys and pages
  beyond the limit are skipped one by one. Without a readable 1.x
  document an app keeps its slot behavior, so a navigation-slot app
  still gets one entry in the apps group.
- One inventory entry the web cannot read, or a slot it does not render,
  no longer hides every other app.
- The catalog opens an app at its first declared page and offers no
  Open link for an app that declares extensions without pages.

The declarations live in the OpenAPI document rather than the manifest:
the manifest's ui member is closed, so older platforms would reject the
whole signed catalog for one app that used a new member there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RentnerKev RentnerKev added this to the v1.0.0-beta.4 milestone Nov 29, 2026
@RentnerKev RentnerKev added enhancement New feature or request area: ui Web interface components, routes, styling, and localization. labels Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • core/Cargo.lock is excluded by !**/*.lock, !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The change adds bounded extension metadata to app packages, resolves catalog pages using route and permission declarations, and exposes those pages in app summaries. The web UI uses them in application navigation, Quick Search, catalog links, and app routes.

Changes: App Extension Pages

Layer / File(s) Summary
Load and validate extension declarations
core/src/app_manager/ui/package.rs, core/tests/private/app_ui_package.rs, web/src/server/AppRuntime/ui/transport.server.ts, web/src/tests/server/AppRuntime/ui.test.ts
Package loading reads native UI and extension objects only when they are objects within their 8 KiB limits. Web transport filters unsupported slots and invalid app entries. Tests cover size limits, metadata retention, and transport filtering.
Resolve permitted app pages
web/src/config/app-extensions.config.ts, web/src/lib/AppUi/contract.ts, web/src/lib/AppUi/extensions.ts, web/src/server/AppRuntime/ui/access.server.ts, web/src/tests/lib/AppUi/extensions.test.ts, web/src/tests/server/AppRuntime/ui-summaries.test.ts, web/src/tests/features/AppUi/*, web/src/tests/lib/AppUi/bridge.test.ts, web/src/tests/fixtures/app-runtime-reference/greeting-host.ts
The App UI contract adds page metadata and catalog configuration. The resolver validates documents and entries, applies page limits and permission filtering, and adds pages to app summaries. Tests and fixtures cover resolution and summary output.
Render declared pages in navigation
web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/*, web/src/features/AppUi/Components/AppExtensionIcon.tsx, web/src/tests/layouts/AuthenticatedLayout/Components/ApplicationShell/application-shell.test.tsx
Navigation groups now render declared app pages with their routes, localized titles, configured icons, and active states. Tests cover page grouping, links, and active-page behavior.
Open and search app pages
web/src/features/AppCatalog/*, web/src/features/QuickSearch/Hooks/useQuickSearchLogic.ts, web/src/lib/QuickSearch/Types/quick-search.types.ts, web/src/routes/_authenticated/apps.$installationId.{-$routeId}.tsx, web/src/tests/features/AppCatalog/catalog-install-ui.test.tsx, web/src/tests/features/QuickSearch/quick-search-ui.test.tsx
Catalog links and Quick Search can open declared page routes. Quick Search checks that a page still exists before navigating. The app route handles catalog apps as page-based and retains slot behavior for apps without a catalog.

Estimated code review effort: 4 (Complex) | ~50 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant summarize
  participant appUiPages
  participant useApplicationNavigationLogic
  participant useQuickSearchLogic
  summarize->>appUiPages: app metadata and authorized permission keys
  appUiPages-->>summarize: catalog version and permitted pages
  summarize-->>useApplicationNavigationLogic: AppUiSummary with pages
  summarize-->>useQuickSearchLogic: AppUiSummary with pages
Loading

Possibly related issues

Possibly related PRs

  • RentnerProxy/platform#523: Establishes the app UI contract and hosting path that this change extends with declared pages for navigation and search.
  • RentnerProxy/platform#541: Modifies the same Apps navigation and app route surfaces that this change uses to open declared pages.
Merge Risk: Low · up to d9d58 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(apps): add the extension target catalog and native app page navigation" matches the main change: a versioned extension catalog in the OpenAPI document with the first target app.page, a…
Description check Passed The description follows the template's main sections: Summary, design notes, and a test plan. The Related issue section is covered by the link to #625 in the summary, but it is no…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(apps): add the extension target catalog and native app page navigation" matches the main change: a versioned extension catalog in the OpenAPI document with the first target app.page, and native app pages appearing in navigation. It is specific and follows conventional commit style. It omits search and the bounded-document limits, which is acceptable.

Full details: Description check

Explanation

The description follows the template's main sections: Summary, design notes, and a test plan. The Related issue section is covered by the link to #625 in the summary, but it is not in the template's Related issue section format. The Type of change checklist is missing, as are the Checklist items, Breaking changes, and Screenshots sections. Its test plan does not state whether existing tests pass. The description is mostly complete, so the check passes, but the author should add the missing template sections.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 67b3273 and 9ae6be1.

Files selected for processing: 27

  • core/src/app_manager/ui/package.rs
  • core/tests/private/app_ui_package.rs
  • web/src/config/app-extensions.config.ts
  • web/src/features/AppCatalog/Components/InstalledAppCard.tsx
  • web/src/features/AppCatalog/Hooks/useAppCatalogLogic.ts
  • web/src/features/AppCatalog/Types/app-catalog.types.ts
  • web/src/features/AppUi/Components/AppExtensionIcon.tsx
  • web/src/features/QuickSearch/Hooks/useQuickSearchLogic.ts
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/Hooks/useApplicationNavigationLogic.ts
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/Types/application-navigation.types.ts
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/index.tsx
  • web/src/lib/AppUi/contract.ts
  • web/src/lib/AppUi/extensions.ts
  • web/src/lib/QuickSearch/Types/quick-search.types.ts
  • web/src/routes/_authenticated/apps.$installationId.{-$routeId}.tsx
  • web/src/server/AppRuntime/ui/access.server.ts
  • web/src/server/AppRuntime/ui/transport.server.ts
  • web/src/tests/features/AppCatalog/catalog-install-ui.test.tsx
  • web/src/tests/features/AppUi/app-ui-frame.test.tsx
  • web/src/tests/features/AppUi/native-app-ui.test.tsx
  • web/src/tests/features/QuickSearch/quick-search-ui.test.tsx
  • web/src/tests/fixtures/app-runtime-reference/greeting-host.ts
  • web/src/tests/layouts/AuthenticatedLayout/Components/ApplicationShell/application-shell.test.tsx
  • web/src/tests/lib/AppUi/bridge.test.ts
  • web/src/tests/lib/AppUi/extensions.test.ts
  • web/src/tests/server/AppRuntime/ui-summaries.test.ts
  • web/src/tests/server/AppRuntime/ui.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

The production dependency audit blocks every locked RustSec finding.
RUSTSEC-2026-0620 reports a scalar multiplication bug in the AVX-512
backend of curve25519-dalek 5.0.0, pulled in by ed25519-dalek 3.0.0 and
fixed in 5.1.0. The lockfile moves only this package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RentnerKev
RentnerKev merged commit 2a4c0aa into main Nov 29, 2026
59 of 62 checks passed
@RentnerKev
RentnerKev deleted the rentner/feat/app-extension-targets branch November 29, 2026 18:29
RentnerKev added a commit to RentnerProxy/app-sdk that referenced this pull request Nov 29, 2026
* feat(contracts): validate UI extension documents and release 1.6.0

Platforms render x-rentnerproxy-extensions since RentnerProxy/platform#630
and #631 and read the document leniently, skipping invalid entries. The
SDK now describes it strictly so app developers and candidate admission
see mistakes the platform would silently drop.

- UiExtensions, HostTableCellsRequest and HostTableCellsResult join the
  protocol documents: catalog 1.0.0 with app.page,
  proxyHosts.table.column and proxyHosts.table.rowAction, unique IDs,
  per-target limits, labels without edge white space, platform icons
  and navigation groups, and one non-empty cell per requested host.
- checkUiExtensions and check_ui_extensions check the document against
  the manifest and the OpenAPI document: pages and row actions open
  declared routes, permissions exist, and every column operation filters
  cells per proxy host on proxy.hosts.read.v1 without a resource guard.
- Candidate admission runs the check when an app declares the member.
- Shared fixtures keep the TypeScript and Rust checks in agreement and
  ship with the package.

The member is new, so no admitted document becomes invalid; the
protocol version stays 1.2.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: apply automatic formatting

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Web interface components, routes, styling, and localization. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant