Repository navigation
Done
Labels
area: uiWeb interface components, routes, styling, and localization.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Milestone
Description
Phase: 5 | Step: 2 of 5 | Priority: P0
Render rich app dialogs, sections, widgets and pages with the platform's own components while app code stays in the sandbox.
Scope
- Build the remote UI runtime chosen in step 1. App UI code runs in the existing opaque-origin sandbox without visible output and streams a component tree and its updates; the platform validates and renders it and routes events back through the generation-bound bridge.
- Enforce limits on node count, depth, property size, update rate and pending events. Accept only schema-declared properties, plain text and validated app-relative routes: no HTML, styles, class names, scripts or URLs to other origins.
- Ship UI kit v1 by extracting existing platform components:
- dialog content with tabs and footer actions, sections, stack and grid layouts, text, badge and status, buttons;
- a data table with search, filters, sorting, paging, row actions and selection;
- form fields with validation and unsaved-change handling;
- a time-series chart, a status strip, alerts, empty states, confirm dialogs and toasts through
@rentnerkev/toasts.
- Host
proxyHosts.table.rowActiondialogs in the platform modal with platform title, size and close behavior. - Host
app.pagein the platform page frame: header with title, description and actions; sub-routes as tabs or sub-navigation; URL search state owned by the platform router; loading, error and empty states; list, detail, settings and dashboard layouts. - Keep framed content as an explicit exception, shown only inside platform page or dialog chrome.
- Publish the typed SDK package in RentnerProxy/app-sdk (components,
extend(target, …), hooks for context, data, toasts and navigation) and a local dev host that renders the real platform components. - Apply platform theme, locale, focus management and accessibility; apps receive the locale and pass translated plain text only.
Dependencies
Acceptance criteria
- A remote UI dialog and page are visually and behaviorally indistinguishable from built-in equivalents in both themes, English and German, and keyboard use.
- Spoofed, replayed, oversized, deeply nested or unknown trees, properties and events are rejected and leave the platform page and other apps usable.
- App code cannot read the platform DOM, cookies, storage or another app's bridge; every operation stays permission-checked on the server.
- A generation cutover replaces open remote UIs without mixing frontend and backend versions or dropping unsaved-change warnings.
- The dev host renders the same components and versions as the platform; contract fixtures cover each component schema.
Planning baseline: Beta 4.
This issue schedules future work; backlog creation does not implement or deploy it.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation. Normal PRs need no additional documentation files or screenshot commits unless requested.
Metadata
Metadata
Assignees
Labels
area: uiWeb interface components, routes, styling, and localization.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Activity
RentnerKev commentedon Nov 29, 2026
Delivery plan
This builds on the remote rendering decision in RentnerProxy/platform#625. The work ships in six slices; each is one reviewable PR.
connected.rendering(frameorremote).remote:mutate, with Remote DOM mutation records whose listeners are reduced to flags.remote:eventandtoast. Record and tree limits. The UI kit v1 catalog with element names, property schemas, events, slots and child rules. Zod and JSON Schema, a Rust validator, shared fixtures, and protocol 1.3.0.remote. Validate every batch against the catalog before it reachesRemoteReceiver; a rejected batch retires the frame. Render layout and basic elements, and switchapp.pageand row action dialogs to the rendered tree.@rentnerproxy/app-ui. Element definitions withcreateRemoteElement, typed React 19 JSX, and the sandbox runtime: observer, listener IDs, batching and bridge handshake. Hooks for context, operations, navigation and toasts, plus a dev host that renders the real platform components.UI kit v1 elements
ui-stack,ui-grid,ui-card,ui-page-header,ui-nav,ui-text,ui-description-list,ui-description-itemui-badge,ui-alert,ui-stateui-button(optional confirmation),ui-action-menuui-dialog(slotsnavigationandfooter),ui-tabs,ui-tab-panelui-form,ui-form-actions,ui-text-field,ui-number-field,ui-toggle,ui-selectui-data-table(toolbar slot),ui-time-series-chart,ui-status-stripShared value types:
{ en, de? }, and is never passed through platform translation.positive,negative,warning,info,neutral,pausedorstale.ms,s,percentorcount.Tab selection, client table state, form drafts and tooltips stay in the platform. Events only notify the app and never carry callbacks.
Order
Platform prerequisites
warning-bgtoken.ProxyHostFormTabs.FormMessageorPageAlertfor app text: the first translates its text and the second writes into the global alerts.feat(contracts): add UI bridge 1.3.0 remote rendering and UI kit v1 (#15
refactor(ui): share accessible tabs and add a warning background token (
feat(app-ui): add the app UI runtime package and release 1.8.0 (#16)
test: verify remote rendering in Chromium over the real frame transpo…
test(apps): prove native app rendering in Chromium and draw every UI …
test(contracts): share accepted and rejected nodes for every UI kit e…
test(apps): validate and draw the SDK's UI kit fixtures (#647)
RentnerKev commentedon Nov 30, 2026
All acceptance criteria are met, so I'm closing this issue. Evidence per criterion:
1. Remote UI dialogs and pages look and behave like built-in ones in both themes, English and German, and with the keyboard
2. Spoofed, replayed, oversized, deeply nested or unknown trees, properties and events are rejected and leave the platform page and other apps usable
remote-tree.test.ts: whole batches are rejected, plus depth and node limits.bridge.test.ts: source, origin, nonce and binding checks, and budgets.3. App code cannot read the platform DOM, cookies, storage or another app's bridge; every operation stays permission-checked
sandbox="allow-scripts"with an opaque origin, a strict asset policy and a private message channel per frame.localStorage.ui-execute.test.ts,ui-results.test.ts, the app UI asset boundary tests.4. A generation cutover replaces open remote UIs without mixing frontend and backend versions or dropping unsaved-change warnings
staleGeneration, so frontend and backend never mix.remote-forms.test.ts,remote-app-dialogs.test.tsx.5. The dev host renders the same components and versions as the platform; contract fixtures cover each component schema
AppFrameView,RemoteAppViewand dialog surface as installed apps. Both templates point their dev workflow at it.