Skip to content

📚 docs(stories): extract deprecated containers into own story files#768

Open
acasazza wants to merge 1 commit into
v5.0.0from
docs/extract-deprecated-component-stories
Open

📚 docs(stories): extract deprecated containers into own story files#768
acasazza wants to merge 1 commit into
v5.0.0from
docs/extract-deprecated-component-stories

Conversation

@acasazza
Copy link
Copy Markdown
Member

Summary

Each deprecated container component now has its own dedicated Storybook story file, keeping the parent stories clean and focused on the recommended API.

Changes

SKUs

  • Skus.stories.tsx → split into Sku.stories.tsx (standalone <Sku>) and Skus.stories.tsx (<Skus> iterator)
  • New SkuList.stories.tsx — standalone <SkuList>
  • New SkuListsContainer.stories.tsx — deprecated, with migration guide

Orders

  • New OrderContainer.stories.tsx — deprecated, with migration guide pointing to <Order>
  • Order.stories.tsx — removed OrderContainer section

Prices

  • New PricesContainer.stories.tsx — deprecated, with migration guide pointing to standalone <Price>
  • prices.stories.tsx — title fixed to Components/Prices/Price, deprecated stories removed, RenderPropStory updated to use standalone <Price>

Availability

  • New AvailabilityContainer.stories.tsx — deprecated, with migration guide
  • New AvailabilityTemplate.stories.tsx — own story with all template-specific stories (custom labels, lead times, shipping, render prop)
  • availability.stories.tsx — title fixed to Components/Availability/Availability, extracted sections removed

Notes

  • All deprecated stories follow the same pattern as SkusContainer.stories.tsx (deprecation warning + migration guide)
  • All meta.title values now sit under the correct Storybook submenu (e.g. Components/Prices/..., Components/Availability/...)
  • Pre-commit hook failure is due to pre-existing lint errors in hooks and react-components packages (unrelated to this PR)

- Split Skus.stories.tsx → Sku.stories.tsx (standalone) + Skus.stories.tsx (iterator)
- Add SkuList.stories.tsx and SkuListsContainer.stories.tsx (deprecated)
- Add OrderContainer.stories.tsx (deprecated) extracted from Order.stories.tsx
- Add PricesContainer.stories.tsx (deprecated) extracted from prices.stories.tsx
- Add AvailabilityContainer.stories.tsx (deprecated) + AvailabilityTemplate.stories.tsx
- Fix all meta.title values to sit under the correct Storybook menu
- Remove deprecated-component sections from parent story doc pages
- Replace PricesContainer/SkusContainer usage in non-deprecated stories with standalone components

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@acasazza acasazza added the documentation Improvements or additions to documentation label May 19, 2026
@acasazza acasazza self-assigned this May 19, 2026
@acasazza acasazza changed the base branch from main to v5.0.0 May 19, 2026 09:54
@commercelayer commercelayer deleted a comment from netlify Bot May 20, 2026
@acasazza acasazza requested review from gciotola and pfferrari May 20, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants