1.8 KiB
Raw Blame History

Frontend FSD Broker Pilot — задачи

Статус: согласовано к реализации

Подробные шаги, команды и expected results находятся в plan.md.

1. FSD entrypoints

  • Создать новые page entrypoints для broker routes.
  • Переключить routes.tsx на новые public entrypoints.
  • Сохранить текущее поведение broker routes через совместимые re-export переходы.

2. Broker account slice

  • Перенести broker accounts, portfolio queries и aggregation read-model в entities/broker-account.
  • Вынести BrokerAccountCard и BrokerAccountsSummary в widgets с public API.
  • Привязать тесты списка счетов и агрегатов к новым slice boundaries.

3. Broker position slice

  • Перенести positions query, allocation helpers и instrument path mapping в entities/broker-position.
  • Вынести allocation chart в widget.
  • Переключить overview и positions pages на новые public API.

4. Broker operation slice

  • Перенести operations query и filter guards в entities/broker-operation.
  • Вынести operations table в widget.
  • Перенести account layout shell в FSD-структуру и обновить broker nested routes.

5. Cleanup и документация

  • Оставить только безопасные shim/re-export файлы или удалить старые broker entrypoints после переключения импортов.
  • Обновить apps/docs/docs/frontend/overview.md с описанием broker FSD pilot.
  • Прогнать frontend tests, lint, build и Docusaurus build.