feat(json-render-ui): provider SPA (single-view + theming + provider factory) - #185
Closed
antfubot wants to merge 1 commit into
Closed
feat(json-render-ui): provider SPA (single-view + theming + provider factory)#185antfubot wants to merge 1 commit into
antfubot wants to merge 1 commit into
Conversation
…r factory
Enables json-render-ui's SPA as the hub's iframe view provider:
- Single-view mode: ?view=<stateKey> renders exactly one view (no nav) — the
shape the hub mounts as one pooled iframe per view. The index-driven
dashboard remains for standalone use.
- Theming: follow the host color scheme via the shared devframes-color-scheme
storage key, and the brand primary via the hub's branding.json (with a
primary-ramp override so --devframe-primary retints the SPA). Best-effort:
standalone use keeps the OS scheme + default palette.
- jsonRenderProvider(): a turnkey DevframeDefinition serving this SPA, for
initHub({ viewProviders: { 'json-render': jsonRenderProvider() } }).
- Deprecate createJsonRenderDockRenderer in favor of the iframe provider.
antfu
force-pushed
the
feat/json-render-ui-provider-spa
branch
from
August 10, 2026 04:55
b089840 to
d1ac507
Compare
✅ Deploy Preview for devfra ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR B2 of the json-render view-provider stack (plan:
plans/json-render-ui-packaging.md). Stacked on #183.Turns json-render-ui's SPA into the hub's swappable iframe view provider:
?view=<stateKey>renders exactly one view, no nav (the shape the hub mounts as one pooled iframe per view). The index-driven dashboard stays for standalone use.devframes-color-schemestorage key, and the brand primary via the hub'sbranding.json(aprimary-ramp.cssoverride makes--devframe-primaryretint the SPA). Best-effort: standalone use keeps the OS scheme + default palette.jsonRenderProvider()— a turnkeyDevframeDefinitionserving this SPA, forinitHub({ viewProviders: { 'json-render': jsonRenderProvider() } })(PR C wiresviewProviders).createJsonRenderDockRendererin favor of the iframe provider (kept for existing same-framework hosts; removed in a later cycle).Verified: typecheck, eslint, build (lib + SPA), API snapshots (additive:
jsonRenderProvider,@deprecatedtag).Created with the help of an agent.