This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(page): kind:'html' (full HTML tags) + trusted kind:'react' tier - #2105
Merged
Merged
Conversation
… react-runner) New @object-ui/react-runtime: Sucrase transpile + scope-eval (no sandbox), renders real JSX/TSX (any HTML + JS + hooks/useState/map/onClick) in the main React tree with injected scope (React, registered components, page data) + built-in error boundary. The *trusted* tier — gated to enterprise/private deploys, lazy-loadable. Browser-verified: real JSX page renders + clicks mutate state, via the package. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- PageRenderer routes kind:'react' (capability-gated, lazy-loads @object-ui/react-runtime) and renders kind:'html', the former kind:'jsx' (kept as a deprecated alias). - core: runtime capability gate (enableCapability/isCapabilityEnabled, CAP_REACT_PAGES) — default-closed, host-only, never authored metadata. - components: register the full safe native HTML tag set (h1-h6, p, a, ul/ol/li, img, blockquote, pre, strong/em, ...) so the html tier lives up to its name; react-page renderer injects React + public data blocks + page data into the trusted runtime. - dev: sdui-tiers-preview exercises both tiers through the real PageRenderer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
❌ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…ObjectForm/ListView The trusted react tier now wires the real data components for complex business UIs (master/detail, etc.): ReactKindPage reads useAdapter() and (a) injects it as `dataSource` into the public data-block wrappers (list-view reads it from props) and (b) wraps the page in a SchemaRendererProvider (object-form reads it from context). Also injects `useAdapter` into the page scope for live queries. dev: sdui-workbench-preview mounts the real ListView + ObjectForm against an in-memory adapter — browser-verified master/detail (row click loads the record into the form; save creates/updates and refreshes the list + KPIs). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…LE_REACT_PAGES Per platform-author decision: react-pages is no longer enterprise-gated/default- off. The platform trusts its reviewed, draft-gated page authors, so the gate defaults ON. A deployment that does not trust its authors disables it server- side — the runtime honors globalThis.__OBJECTUI_CAPABILITIES_DISABLED__, which the ObjectStack console serving injects when OS_DISABLE_REACT_PAGES is set. The disabled-state notice is reframed accordingly (no longer 'enterprise only'). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…off disables) Cleaner page-namespaced toggle (default on; OS_PAGE_REACT=off disables) instead of an OS_DISABLE_* flag.
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…EACT=off Drops the explicit enableCapability (react-pages is ON by default) and adds a ?disable=1 switch that sets __OBJECTUI_CAPABILITIES_DISABLED__ to render the disabled notice — both Chrome-verified.
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Aug 10, 2026
…bjectstack-ai#3741) (objectstack-ai#3870) `peerDependencies.react` was `>=18` — the only unbounded react peer in the workspace, against 30 siblings declaring `^18.0.0 || ^19.0.0`. An unbounded range grows on its own: the day React 20 ships, an already-published manifest claims a major nothing here has built against, with no commit to point at. Nothing wanted the wider range. The package's entire React surface is `Component`, `createElement`, `isValidElement`, `ReactElement`, `ReactNode`; `>=18` was written when the package was created (d23d6eb, PR objectstack-ai#2105) and no commit since revisited it; and the root `pnpm.overrides` pins React to 19.2.8, so 19 is the only major its tests have ever exercised. The README sentence restating the range moves with the manifest, because doc-version-claims.test.ts compares the two and its header had predicted this exact red ("objectui#3741 ... the day someone does, this test goes red until that README follows"). That prediction, the ledger entry, and the `sameRange` comment whose measured specimen this change removes are rewritten as history plus current state rather than left asserting dead facts. Adds scripts/__tests__/react-peer-range-norm-3741.test.ts, asserting the norm across every workspace manifest. react-runtime is the THIRD package born off-norm (plugin-dashboard d2b6ece, plugin-report objectstack-ai#3690/PR objectstack-ai#3727) and the first two were corrected in isolation with nothing left to stop a fourth. The existing doc gate could not have caught any of them: it compares a README to its own manifest, and react-runtime's two sides agreed while both said `>=18`. Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the three-tier AI page-authoring model (ADR-0081, framework side in a paired PR):
kind:'html'(was'jsx')kind:'react'(new)useState/.map/onClick/expressionsWhat's here
@object-ui/react-runtime(new package, prior commit) — vendored react-runner (Sucrase transpile + scope-eval, error boundary). The trusted executor; lazy-loaded.@object-ui/core— runtime capability gate:enableCapability/isCapabilityEnabled+CAP_REACT_PAGES. Default-closed, host-only — structurally impossible to flip from authored metadata.@object-ui/components:kind:'react'(capability-gated, lazy-imports the runtime, injectsReact+ public data blocks + pagedata) and renderskind:'html'— the formerkind:'jsx', kept as a deprecated alias.h1–h6, p, a, ul/ol/li, img, blockquote, pre, strong/em, …) so thehtmltier lives up to its name (previously onlydiv/span/table/code/label+ semantic tags → everything else wasunknown-component).apps/console/sdui-tiers-previewexercises both tiers through the real PageRenderer.Verification (browser, through the real PageRenderer)
kind:'html': renders real<h1>/<ul>/<li>/<a href>/<blockquote>/<img>+ Tailwind. 0 error blocks.kind:'react'(capability on):useState/reduce/sort/map/onClickall execute — button increments ("Clicked 2 times"), "sort by name" re-sorts the table live,Total: $465,000computed from injecteddata.capabilitiesdefault-closed + enable/disable. sdui-parser (83) + core public-tier green.Pairs with framework PR adding
kindenum'html'/'react', the lint split, the renamed showcase example, and ADR-0081.🤖 Generated with Claude Code