Repository navigation
build(deps): upgrade @a2ui packages and retire react patch (Closes #315) - #320
Conversation
There was a problem hiding this comment.
Code Review
This pull request upgrades the @a2ui packages (including web_core, react, angular, lit, and markdown-it) to version 0.15.0 (or 0.14.0), which allows the removal of the temporary React 0.10.2 CSS module repair patch. It also introduces a new 'Native Grid' demo, bringing the total demo count to 47, and updates the corresponding test suites, styling injections, and component imports. Feedback on the changes highlights a potential downstream TypeError in local-function-dispatch.ts if the surface is undefined, and suggests adding a guard clause at the beginning of the function to handle this gracefully.
8b3c518 to
51c4145
Compare
⚡ A2UI Composer PR PreviewYour automated preview is successfully live (commit
|
wrenj
left a comment
There was a problem hiding this comment.
LGTM — upgrading @a2ui/* packages to 0.14.0/0.15.0 and retiring the @a2ui/react patch is clean. Two small non-blocking notes inline.
mikzat
left a comment
There was a problem hiding this comment.
Clean upgrade to @a2ui/* 0.14.0/0.15.0 and retirement of the temporary @a2ui/react CSS patch — the Slack schema updates, $defs rewrite, and Universal Custom Element locator updates all check out. Nothing here needs to block merge if the stack lands together (though if #320 will sit on main without #324, filtering out 37_native-grid.json in generate-demos.mjs is worth doing here so demo 47 isn't half-empty); the remaining items are non-blocking follow-ups/nits that can fold into #325.
Two notes on lines outside this diff:
- Optional (
INTEGRATION_MANUAL.md:130): The React snippet still hasimport {A2uiSurface, basicCatalog} from '@a2ui/react/v0_9';, and@a2ui/[email protected]no longer exportsbasicCatalog. Please update it to importbasicCatalogfrom@a2ui/web_core/v0_9/basic_cataloglikeApp.tsx(still stale at #325). - Nit (
samples/react-basic-catalog/src/main.spec.tsx:259): The"pipes user custom elements clicks…"test still passeschild: 'Click Proxy'with noTextcomponent of that id, so the button renders empty. Please add aTextchild component like the first test in this file (#324 ends up fixing it later in the stack).
d6e5724 to
6eca819
Compare
- Upgrade root resolutions for @a2ui/web_core to 0.15.0. - Upgrade bridge dependencies: @a2ui/web_core to 0.15.0 and add explicit devDependencies for @a2ui/angular 0.14.0, @a2ui/lit 0.15.0, and @a2ui/react 0.15.0. - Upgrade sample dependencies to @a2ui/angular 0.14.0, @a2ui/lit 0.15.0, @a2ui/react 0.15.0, @a2ui/markdown-it 0.2.2, and @a2ui/web_core 0.15.0. - Delete .yarn/patches/@a2ui-react-npm-0.10.2-877cbd9ad2.patch and .yarn/patches/README.md now that upstream @a2ui/react exports Universal Custom Elements. - Pin zod to exact version 3.25.76 in samples/react-basic-catalog. - Update react-basic-catalog to import basicCatalog from @a2ui/web_core/v0_9/basic_catalog, call injectBasicCatalogStyles() for Constructable Stylesheets, and use vi.waitFor DOM polling in tests. - Refresh samples/shared/demos/demos.json and E2E wall helper card counts to 47 to include bundled native-grid demo. - Update E2E and visual test locators for Universal Custom Elements and align v0.9 updateDataModel mock payload to strict schema.
…and lit tests - Check local $defs before rewriting references to common_types.json in Slack catalog schema generator. - Remove no-op ButtonApi action extend and update doc comments. - Align @a2ui/web_core dependency version to 0.15.0 in react-slack-catalog. - Remove unused @a2ui/react from bridge devDependencies and declare optional peerDependencies for @a2ui/angular and @a2ui/lit. - Assert light DOM innerHTML in lit-basic-catalog main.spec.ts. - Guard demo generation against upstream examples declaring customComponents and regenerate demos.json to 46 demos. - Update demo count assertions to 46 in wall helpers and unit specs.
- Pin @a2ui/angular peerDependency to 0.14.0 in bridge/package.json and sync yarn.lock. - Drop unused localDefs parameter from processRefs and schemaJsonFor in react-slack-catalog, clarify unconditional rewrite comment, and add unit test coverage.
6eca819 to
be415c5
Compare
Description
Summary
@a2ui/web_coreto 0.15.0 in root resolutions and the bridge, andadd explicit bridge devDependencies on
@a2ui/angular0.14.0,@a2ui/lit0.15.0, and@a2ui/react0.15.0.@a2ui/angular0.14.0,@a2ui/lit0.15.0,@a2ui/react0.15.0,@a2ui/markdown-it0.2.2, and@a2ui/web_core0.15.0; pin
zodto 3.25.76 insamples/react-basic-catalog..yarn/patches/@a2ui-react-npm-0.10.2-877cbd9ad2.patchand.yarn/patches/README.mdnow that upstream@a2ui/reactexports UniversalCustom Elements.
react-basic-catalogto importbasicCatalogfrom@a2ui/web_core/v0_9/basic_catalog, callinjectBasicCatalogStyles(),and use
vi.waitForDOM polling in tests.samples/shared/demos/demos.jsonand E2E wall helper card countsto 47 (bundled native-grid demo), update E2E and visual locators for
Universal Custom Elements, and align the v0.9
updateDataModelmockpayload to the strict schema.
Closes #315.
Commits
25 files changed, 196 insertions(+), 536 deletions(-)
Stack
Stacked PR 2/7 — base:
pr1-e2e-stabilization→ merge in order pr1 → pr7.Each PR in the stack must be merged before the next one, or the next one
must be rebased onto the updated base after its predecessor merges.
Full stack (merge in this order):
pr1-e2e-stabilizationpr2-upgrade-a2ui-depspr3-bridge-v1-0pr4-shell-v1-0-corepr5-shell-v1-0-copilot-rpc-a2apr6-samples-demos-v1-0pr7-qa-cleanupVerification
Run at the tip of the stack (
pr6-samples-demos-v1-0,af82fb68):shell$ yarn e2e-headless→ 229 passed (0 failed, 0 flaky)yarn --cwd shell test:visual→ 19 passedyarn test,yarn lint,yarn tsc,yarn prettier:check,yarn generate:demos:checkall exit 0Pre-launch Checklist