Skip to content

feat(apps): let apps add proxy host table columns and row actions - #631

Merged
RentnerKev merged 12 commits into
mainfrom
rentner/feat/app-host-table-extensions
Nov 29, 2026
Merged

RentnerKev merged 12 commits into
mainfrom
rentner/feat/app-host-table-extensions

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

Second slice of RentnerProxy/platform#625. Stacked on RentnerProxy/platform#630; merge that first.

Apps can now extend the proxy host table the way built-in monitoring did. The platform draws the column and the menu entry itself.

{ "target": "proxyHosts.table.column", "id": "availability", "title": "Upstream availability",
  "permission": "monitoring-read", "entry": "get-host-availability", "action": "monitoring" },
{ "target": "proxyHosts.table.rowAction", "id": "monitoring", "title": "Monitoring",
  "permission": "monitoring-read", "entry": "host" }

Column

  • entry names an app operation.
  • The platform calls it once per visible page with { proxyHostIds }, limited to the hosts the app's grants cover for this user.
  • The app answers with { cells: [{ proxyHostId, status?, text?, time?, measure? }] }. The platform draws the cells with its own components:
    • a badge with a fixed tone and icon (positive, negative, warning, neutral, paused, stale)
    • plain text
    • a time in the user's locale
    • a measure with a unit (ms, s, percent, count)

Row action

Security and robustness

  • Host filtering. A column only gets data from an operation that declares the proxy host results filter (cells / proxyHostId on proxy.hosts.read.v1). Every cell therefore goes through the existing user-delegated path: permission key check, call, then grant filter and re-check in one transaction. Cells for uncovered or unrequested hosts are dropped, as are malformed and duplicated cells.
  • Shared execution path. runAppUiOperation is extracted from executeAppUiCall, so frame calls and platform-initiated column reads share one authorization path.
  • One request per page. A single server function answers every app for a page. It is a POST with an Origin and session check, the same as opening an app UI.
  • Failures stay local. An app that is missing from the answer, a failed request, or a failing column shows as unavailable and never as data. Other columns stay intact.
  • Stable columns. Columns read their cells from a context, so refreshes do not rebuild the table.

Compatibility

  • Apps that only declare slots add nothing to the table. That includes Monitoring 1.0.0, which keeps its handoff-based column until it moves to these targets in RentnerProxy/app-monitoring#12.
  • New appUi.hostTable texts in all eight locales.

Test plan

  • Typecheck, oxlint, and type-aware oxlint on the changed files.
  • Resolution of all three targets: limits, permission filtering, cell actions only for declared and permitted actions, and cell parsing (lib/AppUi/extensions.test.ts).
  • Server (server/AppRuntime/ui-host-table.test.ts):
    • grant coverage per app and all-hosts grants
    • payloads limited to covered hosts
    • leaked cells dropped
    • no call without covered hosts or without the permission
    • unavailable columns for operations without the host results filter, an unknown operation or a failing call, without affecting other columns
  • UI (proxy-hosts-ui.test.tsx):
    • column and badge with a localized measure
    • menu entry only for the covered host
    • the menu entry and the cell open the dialog
    • a missing answer is unavailable
    • slot-only apps send no request
  • The affected app UI, catalog, search, shell, proxy host and runtime suites (458 tests).

🤖 Generated with Claude Code

RentnerKev and others added 4 commits November 29, 2026 18:35
…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]>
Catalog 1.0.0 gains two targets for the proxy host table:

- proxyHosts.table.column names an app operation. The platform asks it
  once per visible page with { proxyHostIds } for the hosts the app's
  grants cover for this user and draws the answer's { cells } itself: a
  status badge with a fixed tone and icon, text, a time and a measure
  with a unit, formatted for the user's locale. Only operations that
  declare a proxy host results filter on cells/proxyHostId can answer,
  so every cell passes the existing grant filter and re-check.
- proxyHosts.table.rowAction adds a menu entry for covered hosts that
  opens the app route for the host in a platform dialog. A column may
  name the action so its cells open it, like the built-in monitoring
  cell. Until remote rendering lands, the dialog frames the app's host
  view.

One server function answers every app for a page; an app missing from
the answer, a failed request or a failed column shows as unavailable
and never as data. Columns read their cells from a context, so refreshes
do not rebuild the table. Apps that declare only slots, such as
Monitoring 1.0.0, keep their current column.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts' into rentner/feat/app-host-table-extensions

# Conflicts:
#	web/src/tests/features/AppUi/app-ui-frame.test.tsx
#	web/src/tests/features/AppUi/native-app-ui.test.tsx
#	web/src/tests/fixtures/app-runtime-reference/greeting-host.ts
#	web/src/tests/lib/AppUi/bridge.test.ts
#	web/src/tests/lib/AppUi/extensions.test.ts
@RentnerKev RentnerKev added this to the v1.0.0-beta.4 milestone Nov 29, 2026
@RentnerKev RentnerKev added enhancement New feature or request security Public security hardening or remediation; disclose vulnerabilities privately. 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

Warning

Review limit reached

You'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 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2a4c0aa and d3e5bea.

Files selected for processing: 44

  • web/src/config/app-extensions.config.ts
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Components/ProxyHostAppExtensionCell.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Components/ProxyHostTableActions.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Hooks/useProxyHostsTableColumns.ts
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Hooks/useProxyHostsTableLogic.ts
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Types/table-logic.types.ts
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/index.tsx
  • web/src/features/Admin/ProxyHostManagement/Hooks/useProxyHostManagementLogic.ts
  • web/src/features/Admin/ProxyHostManagement/Types/management-logic.types.ts
  • web/src/features/Admin/ProxyHostManagement/Types/proxy-host-table.types.ts
  • web/src/features/Admin/ProxyHostManagement/index.tsx
  • web/src/features/AppUi/AppUiFrame.tsx
  • web/src/features/AppUi/Components/AppHostActionDialog.tsx
  • web/src/features/AppUi/Components/AppHostTableCell.tsx
  • web/src/features/AppUi/Hooks/useAppHostActionDialogLogic.ts
  • web/src/features/AppUi/Hooks/useAppHostTable.ts
  • web/src/features/AppUi/Types/app-host-table.types.ts
  • web/src/features/AppUi/appHostTableContext.ts
  • web/src/features/AppUi/middleware.ts
  • web/src/lib/Admin/ProxyHostManagement/Types/table-actions.types.ts
  • web/src/lib/Admin/ProxyHostManagement/proxyHostTableActions.ts
  • web/src/lib/AppUi/contract.ts
  • web/src/lib/AppUi/extensions.ts
  • web/src/lib/Language/Locales/de.json
  • web/src/lib/Language/Locales/en.json
  • web/src/lib/Language/Locales/es.json
  • web/src/lib/Language/Locales/fr.json
  • web/src/lib/Language/Locales/it.json
  • web/src/lib/Language/Locales/nl.json
  • web/src/lib/Language/Locales/pl.json
  • web/src/lib/Language/Locales/pt.json
  • web/src/server/AppRuntime/ui/access.server.ts
  • web/src/server/AppRuntime/ui/host-table.server.ts
  • web/src/server/AppRuntime/ui/transport.server.ts
  • web/src/tests/features/Admin/ProxyHostManagement/proxy-hosts-ui.test.tsx
  • 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-host-table.test.ts
  • 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

autofix-ci Bot and others added 4 commits November 29, 2026 17:51
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]>
…nsions' into rentner/feat/app-host-table-extensions
@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

RentnerKev and others added 3 commits November 29, 2026 19:09
…ing column

Self-review while CodeRabbit is rate limited:

- The host table request names host IDs from the browser. Apps are now
  asked only about hosts the platform knows, the same way the monitoring
  handoff column resolves its hosts.
- Once the app that owns the monitoring handoff declares extensions, its
  own column replaces the handoff column instead of appearing next to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the handoff column

The handoff column stays until its answer names the owning app, so the
test waited only for its link to be missing, which is also true while it
loads. It now waits for exactly one availability column and checks that
the handoff column does not return.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from rentner/feat/app-extension-targets to main November 29, 2026 18:29
…rentner/feat/app-host-table-extensions

# Conflicts:
#	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/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
@RentnerKev
RentnerKev merged commit 467d096 into main Nov 29, 2026
49 checks passed
@RentnerKev
RentnerKev deleted the rentner/feat/app-host-table-extensions branch November 29, 2026 18:59
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 security Public security hardening or remediation; disclose vulnerabilities privately.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant