Skip to content

Standardise all widgets for production readiness #66

Description

@digitalrisedorset

Summary

Review every existing ReactEdge widget and ensure it meets a consistent production-ready standard. Every widget should be easy to evaluate, install, integrate, maintain, and extend by third-party developers.

Goal

Every ReactEdge widget should feel like a polished, production-ready open source project rather than a prototype. A developer unfamiliar with ReactEdge should be able to understand, install, integrate, test and extend any widget within minutes, with confidence in its quality, documentation and long-term maintainability.


Acceptance Criteria

1. Self-contained Experience

  • Widget can be installed and demonstrated in under 1 minute
  • Standalone demo is included and fully functional
  • No hidden runtime dependencies
  • Sample contracts are provided

2. Magento Integration

  • Widget can be integrated into Magento in under 5 minutes
  • Uses the standard ReactEdge Magento integration
  • Installation guide has been verified from a clean Magento instance
  • No manual JavaScript bootstrapping required

3. Contract-First Validation

  • Zod contract is complete and up to date
  • TypeScript types are exported from the contract
  • Runtime validation is enabled
  • SSR validation is enabled where applicable
  • Public API contracts are documented

4. Documentation

  • README reflects the current implementation
  • Installation guide is complete
  • Configuration examples are provided
  • Documentation is aligned with the relevant ADRs
  • Obsolete or exploratory documentation has been removed or archived

5. Security

  • Security assumptions are documented
  • Trust boundaries are identified
  • Input validation is verified
  • Widget is compatible with the ReactEdge security middleware
  • Public APIs are documented

6. Testing

  • Smoke tests cover the primary user journey
  • Failure scenarios are tested
  • Invalid contract handling is verified
  • Missing contract behaviour is verified
  • SSR and client hydration are validated where applicable

7. Performance

  • Widget performance has been benchmarked
  • Baseline comparison against native Magento is documented
  • Performance claims are supported by reproducible benchmarks
  • Performance regressions can be detected automatically

8. Developer Experience

  • Public APIs are consistent across widgets
  • Project structure is consistent
  • Build and development commands are standardised
  • Example configurations are discoverable
  • Widget can be understood without prior ReactEdge knowledge

Definition of Done

Every ReactEdge widget:

  • Can be evaluated as a standalone solution in under 1 minute
  • Can be integrated into Magento in under 5 minutes
  • Demonstrates a contract-first architecture with strong typing
  • Includes production-quality documentation and examples
  • Has comprehensive automated testing covering success and failure scenarios
  • Meets ReactEdge security standards
  • Has reproducible performance benchmarks
  • Provides a consistent developer experience across the entire ReactEdge ecosystem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

epicLarge body of work grouping related features and issues towards a common objective

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions