Skip to content

♻️ refactor(OrderContainer): deprecate OrderContainer and introduce standalone Order component #765

@acasazza

Description

@acasazza

🧩 Summary

The OrderContainer component needs to be deprecated in favor of a new standalone Order component.

🔍 Current Behavior

OrderContainer acts as a wrapper/provider for order-related data and logic, requiring consumers to nest components inside it.

✅ Proposed Change

  • Deprecate OrderContainer (add deprecation notice in JSDoc and console warning)
  • Create new standalone Order component with the same capabilities but improved API
  • Maintain backward compatibility during deprecation period
  • Update documentation and examples

📋 Tasks

  • Add @deprecated JSDoc to OrderContainer
  • Add runtime console.warn deprecation warning in OrderContainer
  • Implement standalone Order component
  • Migrate internal usage from OrderContainer to Order
  • Document stories for the Order component
  • Update storybook/examples
  • Update CHANGELOG

💥 Breaking Change

OrderContainer will be removed in the next major version.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions