43 lines
1.5 KiB
Markdown
43 lines
1.5 KiB
Markdown
# Tasks: FSD Final Cleanup
|
|
|
|
## Phase 1: Fix import aliases
|
|
|
|
- [x] **Task 1:** Fix `../../../` → `@/` in 8 broker files (pages + widgets)
|
|
|
|
## Phase 2: Move BrokerAccountLayout to widgets
|
|
|
|
- [x] **Task 2:** Create `widgets/broker-account-layout/index.ts` and `ui/BrokerAccountLayout.tsx`
|
|
- [x] **Task 3:** Update all imports referencing old path, delete `entities/broker-account/ui/BrokerAccountLayout.tsx`
|
|
|
|
## Phase 3: Add api/ to entities/search
|
|
|
|
- [x] **Task 4:** Create `entities/search/api/searchApi.ts` with `searchSecurities`
|
|
- [x] **Task 5:** Update consumers, remove `searchSecurities` from shared
|
|
|
|
## Phase 4: Fix app layer deep imports
|
|
|
|
- [x] **Task 6:** Fix `AppLayout.tsx`, `SessionProvider.tsx`, `ProtectedRoute.tsx` to use `@/entities/session` barrel
|
|
|
|
## Phase 5: Fix test relative imports
|
|
|
|
- [x] **Task 7:** Fix `test/test-utils.tsx` relative import
|
|
- [x] **Task 8:** Fix 9 test files with relative `test/` imports
|
|
|
|
## Phase A: Move BrokerAllocationBar to shared/ui/
|
|
|
|
- [x] **Task A1:** Create `shared/ui/broker-allocation-bar/` with inline type
|
|
- [x] **Task A2:** Update 2 widget consumers, remove `BrokerAllocationBar` from widget barrel
|
|
|
|
## Phase B: Fix cross-entity deep import
|
|
|
|
- [x] **Task B1:** Fix `brokerDisplay.ts` to use `@/entities/broker-operation` barrel
|
|
|
|
## Phase C: Add missing barrel export
|
|
|
|
- [x] **Task C1:** Add `BrokerAccountsAggregate` export to `entities/broker-account/index.ts`
|
|
- [x] **Task C2:** Update `BrokerAccountsSummary.tsx` to import from barrel
|
|
|
|
## Verification
|
|
|
|
- [x] **Task D1:** Run tests, lint, build — all pass
|