feat(popover): scaffold 2nd-gen component (phase 2 setup)#6353
feat(popover): scaffold 2nd-gen component (phase 2 setup)#6353rubencarvalho wants to merge 1 commit into
Conversation
Set up the core and SWC structure for the <swc-popover> migration: - core: PopoverBase property-surface stub, Popover.types (re-exports Placement from the placement-controller), plus resolve-trigger and dismissible-stack util stubs wired into utils/index and package.json - swc: Popover render stub branching <div popover="auto"> (non-modal) vs <dialog> (modal), popover.css stub, swc-popover registration, and empty-but-valid stories + test scaffolds (3/3 vitest storybook pass) - plan: record div/dialog render decision, mark container-padding, should-flip and tip-padding @internal, arrow positioning in v1 scope, and check off the Setup phase; update workstream status table
|
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
Description
Phase 2 (Setup) of the Popover 1st-gen → 2nd-gen migration (Epic SWC-1993). Scaffolds the core + SWC structure so the component builds and registers — no behavior yet.
PopoverBaseproperty-surface stub,Popover.types(re-exportsPlacementfrom the PlacementController), andresolve-trigger/dismissible-stackutil stubs wired intoutils/index+package.jsonPopoverrender stub (branches<div popover="auto">for non-modal vs<dialog>for modal on themodalattribute),popover.cssstub,swc-popoverelement registration, and empty-but-validstories/+test/scaffolds (3/3 pass in the vitest storybook project)Motivation and context
First implementation phase after the migration plan. The component build auto-discovers via glob and core exposes per-component
package.jsonexports, so no central manifest changes were needed. SeeCONTRIBUTOR-DOCS/03_project-planning/03_components/popover/migration-plan.md.Related issue(s)
Notes
ruben/popover-migrationintegration branch, notmain.Accessibility testing checklist
Scaffolding only — no interactive behavior is wired yet (the host renders a closed popover).