Skip to content

test: verify remote rendering in Chromium over the real frame transport - #637

Merged
RentnerKev merged 3 commits into
mainfrom
rentner/test/remote-ui-browser
Nov 29, 2026
Merged

RentnerKev merged 3 commits into
mainfrom
rentner/test/remote-ui-browser

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

First part of slice 6 of #626: browser tests over the real frame transport.

The setup:

  • A React app built with the published @rentnerproxy/app-ui 1.8.0 runs in the real sandboxed frame, served with the real appUiAssetPolicy and admin security headers.
  • The host page uses the platform's own frame view, session and renderer.

Chromium checks:

Check What it proves
opaque-hidden-frame The frame is sandboxed (self.origin is null), hidden and has tabindex="-1".
platform-drawn-tree The page header, button, badge and tabs appear in the platform page, not in the frame.
event-round-trip-and-toast A press reaches the app, which updates its badge and asks for a toast.
tabs-and-held-form-draft Tabs switch in the platform. The draft starts from the saved value with Save disabled, shows "Unsaved changes" when edited, and is clean after the app saves.
focus-stays-out-of-frame Twelve Tab presses reach the drawn buttons and never the hidden frame.
rejected-batch-retires-frame A batch with an unknown element, sent past the SDK's own checks, retires the frame and removes the drawn tree.
new-frame-new-session A new frame document connects with a new session and draws its tree from the start.

Changes

  • AppFrameView: the frame session moves out of AppUiFrame into features/AppUi/Components/AppFrameView.tsx. It takes the theme, operations, dialogs and the end of the session as props, so this fixture and the planned dev host use exactly the platform's component. AppUiFrame keeps the inventory, the gateway call with the frame token and the platform dialogs.
  • Hidden frame: a frame that renders remotely is hidden with the hidden attribute instead of a Tailwind class, so it stays hidden even where no stylesheet applies.
  • Fixture layout:
    • web/src/tests/fixtures/remote-ui-browser holds the Playwright runner and the app. It is a package of its own with @playwright/test, @rentnerproxy/app-ui, React and a lockfile.
    • The host page lives in web/src/tests/fixtures/remote-ui-host, outside that package, so it bundles the platform's React and not the app's.
    • Like the existing greeting fixture, files that import fixture-only packages use .mts and stay out of the root typecheck.
  • CI: a Remote UI browser fixture job in App Runtime Reference runs whenever web inputs change, because the renderer and its shared components are web code. It uploads the check report.

Next in slice 6

  • A dev-only route in the platform that shows a locally built app with the real components, built on AppFrameView.
  • The app template example: a column, a row action dialog and a page.

Checks

  • Browser fixture locally in Chromium three times in a row: all seven checks pass.
  • bun run typecheck, bun run lint (including the type-aware pass)
  • App UI, lib and proxy host tests isolated: 338 pass
  • Change detection, dependency workflow, exact revision and build cache workflow tests: 179 pass

🤖 Generated with Claude Code

RentnerKev and others added 2 commits November 30, 2026 00:01
…ransport

Slice 6 of #626, first part. A React app built with @rentnerproxy/app-ui
1.8.0 runs in the real sandboxed frame with the real asset policy, and
the platform draws its tree with its own components. Chromium checks:

- the frame is opaque, hidden and out of the focus order, and the tree
  appears in the platform page;
- a press reaches the app, which updates its badge and asks for a toast;
- tabs switch in the platform and the held form draft is saved by the
  app;
- keyboard focus moves through the drawn controls and never enters the
  frame;
- a batch the catalog rejects, sent past the SDK's checks, retires the
  frame;
- a new frame document connects with a new session and draws again.

The frame session moves from AppUiFrame into AppFrameView, which takes
the theme, operations, dialogs and the end of the session as props, so
the fixture and the planned dev host use the same component. A frame
that renders remotely is hidden with the hidden attribute, which works
without a stylesheet. The check runs as a job of App Runtime Reference
whenever web inputs change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

@socket-security

socket-security Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​rentnerproxy/​app-ui@​1.8.0751008688100

View full report

Knip reads the workflow's run commands as entries, so calling browser.mts
directly made it report @playwright/test, which only the fixture's own
package declares. A script under .github/scripts/ci/fixtures installs the
dependencies and Chromium and runs the fixture, like the greeting
fixture's script does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RentnerKev
RentnerKev merged commit 94a8805 into main Nov 29, 2026
34 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/remote-ui-browser branch November 29, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant