Files
Daniel DimitrovandGitHub bd09e6666d refactor(web): earn feature to follow new "feature architecture" standard (#6980)
* docs(earn): add specification and planning documents for refactor

* refactor(web): restructure Earn feature to follow standard architecture pattern

Refactors the earn feature to comply with the feature architecture standard
documented in apps/web/docs/feature-architecture.md.

Changes:
- Create public API barrel file (index.ts) with lazy-loaded EarnPage
- Add types.ts with centralized EarnButtonProps interface
- Add barrel exports for components/, hooks/, services/
- Move utils.ts to services/utils.ts
- Rename main component to components/EarnPage/
- Convert all internal imports to relative paths
- Update all external imports to use public API (@/features/earn)
- Add local InfoTooltip component to eliminate cross-feature dependency

All external consumers now import from @/features/earn instead of deep paths,
enabling proper code splitting and feature isolation.
2026-01-27 15:36:51 +01:00
..