Repository navigation
refactor: decouple component ui from preview, compositions and command-bar - #10771
Conversation
PR Summary by QodoDecouple component UI from command bar, preview, and compositions
AI Description
Diagram
High-Level Assessment
Files changed (16)
|
Code Review by Qodo
1.
|
|
Code review by qodo was updated up to the latest commit e7d6aea |
|
Code review by qodo was updated up to the latest commit fed923b |
…mmand isn't overwritten
|
Code review by qodo was updated up to the latest commit 641ce99 |
|
Code review by qodo was updated up to the latest commit 86b9e93 |
12.11.2 ships pnpm/pnpm#16797: an install with enableModulesDir: false also fetches the packages it reuses from an existing lockfile, not only the ones it resolves. The lockfile also records command-bar's chai dependency, which teambit#10771 added without updating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 3 of the circular-deps cleanup. Breaks the UI-runtime loops that tie
componentto the rest of the big cycle group: 55 → 48 components in cycles, 271 → 168 edges.ui's UI runtime registers pubsub's React context itself (as it already does for graphql); pubsub's UI runtime no longer depends onui.command-barnow registers intocomponent's existing slots (key bindings, component searcher, the menu button) and hands it a command runner for the menu items.componentno longer knowscommand-bar. ThecommandBarconfig ofcomponentstill controls the registration.ClickInsideAnIframeEventmoves topubsub, which, as the iframe bridge, re-dispatches it in the host as amousedown(previously done by the component UI).ComponentPreviewSizemoves to the component model, likeRegularCompDescriptor.Compositionmoves to thecompositions/model/composition-typeleaf.Old exports stay in place (
@teambit/preview,@teambit/compositions).