Repository navigation
feat(everything-dev,every-plugin,host,ui): the reverse facade — plugin ui component exports consumable as /$[key]/ui (#1265) - #1266
Open
efizzybot wants to merge 1 commit into
Conversation
…n ui component exports consumable as /$[key]/ui (issue #1265) The pluginsClient shape, mirrored for components (ADR 0010 §3, the unbuilt half): a plugin ui workspace declares `ui/src/ui-exports.ts` and the build exposes it as `./ui` (web + node) and publishes its export surface into the manifest's `components` capability — the same discovery block #1260 shipped for the core, now collected for every composed source. Consumers typecheck against generated facades at `/$[key]/ui` (wildcard tsconfig mapping to `src/ui-remote.gen/$[key]/ui/index.ts`), emitted per (consumer, source) pair by the generalized facade generator — the core ui is a consumer too. Server-side, #1260's expose resolver was already source-agnostic, so plugin components render in the SSR document through the same generation-keyed, integrity-verified session loads. Preloads generalize per source: any composed source whose manifest declares the capability gets its expose's static chunks preloaded from its mf-manifest. First source: docs exposes NavTree + StatusBadge. Consumer wiring (auth's profile.sections migration off the hand-rolled remoteComponent, mf-check per-consumer capability gates, remote-only-source types from deployed manifests) follows as this lane's next slices.
This branch has not been deployed
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.
Closes #1265. Stacked on #1264 (base is its branch).
What landed
The
pluginsClientshape, mirrored for components — ADR 0010 §3's unbuilt half:ui/src/ui-exports.ts; the generated build exposes it as./ui(web + node) and publishes its export surface into the manifest'scomponentscapability — the discovery block ui: confirm and optimize the @/ui facade path — preload strategy, expose weight, and SSR for remote components #1260 shipped for the core, now collected for every composed source (core:src/components/expose.ts→./components; plugins: the convention file →./ui). Absent file, no capability..bos/ui-types/<key>/, and facades emit per (consumer, source) pair — every local ui workspace consumes every other capable source. The core ui is a consumer too:ui/src/ui-remote.gen/$docs/ui/index.tsresolves/$docs/ui(wildcard tsconfig mapping"/*": ["./src/ui-remote.gen/*"]) withremoteComponent("docs", "./ui", ...)— full prop types from docs' emitted declarations, SSR through ui: confirm and optimize the @/ui facade path — preload strategy, expose weight, and SSR for remote components #1260's source-agnostic expose resolver, and the client riding the compose payload's per-source registration.NavTree+StatusBadge.Verification
/$docs/uifacade in the core workspace (typed against docs' declarations).routeConfig+ui;/docsstill serves the forward facade's SSR markup; the docs remote carries its reverse-facade preloads.Next slices on this lane (not in this PR)
auth.profile.sectionsmigrates off the hand-rolledremoteComponentonto a generated per-source registry (the config-driven section keys need a dynamic-loader map over the generated facades).bos mf checkper-consumer capability gates.