docs: document broker fsd pilot completion
This commit is contained in:
parent
00f01fae4f
commit
b02ee9cd74
@ -50,6 +50,15 @@ apps/frontend/src/
|
|||||||
│ ├── StockDetails.tsx
|
│ ├── StockDetails.tsx
|
||||||
│ ├── BondDetails.tsx
|
│ ├── BondDetails.tsx
|
||||||
│ └── portfolios/
|
│ └── portfolios/
|
||||||
|
├── entities/
|
||||||
|
│ ├── broker-account/ # FSD pilot: account slice (api, model, ui)
|
||||||
|
│ ├── broker-position/ # FSD pilot: position slice (api, model)
|
||||||
|
│ └── broker-operation/ # FSD pilot: operation slice (api, model)
|
||||||
|
├── widgets/
|
||||||
|
│ ├── broker-account-card/ # FSD pilot: account card widget
|
||||||
|
│ ├── broker-accounts-summary/ # FSD pilot: accounts summary widget
|
||||||
|
│ ├── broker-allocation-chart/ # FSD pilot: allocation chart widget
|
||||||
|
│ └── broker-operations-table/ # FSD pilot: operations table widget
|
||||||
├── pages/
|
├── pages/
|
||||||
│ ├── HomePage.tsx
|
│ ├── HomePage.tsx
|
||||||
│ ├── StockPage.tsx
|
│ ├── StockPage.tsx
|
||||||
@ -58,13 +67,27 @@ apps/frontend/src/
|
|||||||
│ ├── RegisterPage.tsx
|
│ ├── RegisterPage.tsx
|
||||||
│ ├── ProfilePage.tsx
|
│ ├── ProfilePage.tsx
|
||||||
│ ├── portfolios/
|
│ ├── portfolios/
|
||||||
│ └── screener/
|
│ ├── screener/
|
||||||
|
│ ├── broker-accounts/ # FSD pilot: page entrypoint
|
||||||
|
│ ├── broker-account/ # FSD pilot: page entrypoint
|
||||||
|
│ ├── broker-positions/ # FSD pilot: page entrypoint
|
||||||
|
│ └── broker-operations/ # FSD pilot: page entrypoint
|
||||||
├── test/
|
├── test/
|
||||||
│ ├── handlers.ts # MSW handlers
|
│ ├── handlers.ts # MSW handlers
|
||||||
│ └── test-utils.tsx
|
│ └── test-utils.tsx
|
||||||
└── styles.css
|
└── styles.css
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## FSD-пилот: broker-домен
|
||||||
|
|
||||||
|
Broker-домен переведён в пилотный [Feature-Sliced Design](https://feature-sliced.design/) срез:
|
||||||
|
|
||||||
|
- `pages/broker-*` — тонкие route entrypoints без экранной логики
|
||||||
|
- `widgets/broker-*` — screen-level композиция (карточки, таблицы, графики)
|
||||||
|
- `entities/broker-*` — доменные срезы: account, position, operation (api, model/hooks, ui)
|
||||||
|
|
||||||
|
Остальные домены (`portfolio`, `screener`, `auth`) пока остаются в исторической технической структуре.
|
||||||
|
|
||||||
## Точка входа
|
## Точка входа
|
||||||
|
|
||||||
`main.tsx` рендерит `App.tsx`, который содержит `BrowserRouter` → `AppRoutes`.
|
`main.tsx` рендерит `App.tsx`, который содержит `BrowserRouter` → `AppRoutes`.
|
||||||
|
|||||||
@ -25,13 +25,13 @@
|
|||||||
|
|
||||||
## 4. Broker operation slice
|
## 4. Broker operation slice
|
||||||
|
|
||||||
- [ ] Перенести operations query и filter guards в `entities/broker-operation`.
|
- [x] Перенести operations query и filter guards в `entities/broker-operation`.
|
||||||
- [ ] Вынести operations table в widget.
|
- [x] Вынести operations table в widget.
|
||||||
- [ ] Перенести account layout shell в FSD-структуру и обновить broker nested routes.
|
- [x] Перенести account layout shell в FSD-структуру и обновить broker nested routes.
|
||||||
|
|
||||||
## 5. Cleanup и документация
|
## 5. Cleanup и документация
|
||||||
|
|
||||||
- [ ] Оставить только безопасные shim/re-export файлы или удалить старые broker entrypoints после
|
- [x] Оставить только безопасные shim/re-export файлы или удалить старые broker entrypoints после
|
||||||
переключения импортов.
|
переключения импортов.
|
||||||
- [ ] Обновить `apps/docs/docs/frontend/overview.md` с описанием broker FSD pilot.
|
- [x] Обновить `apps/docs/docs/frontend/overview.md` с описанием broker FSD pilot.
|
||||||
- [ ] Прогнать frontend tests, lint, build и Docusaurus build.
|
- [x] Прогнать frontend tests, lint, build и Docusaurus build.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user