1.5 KiB
1.5 KiB
Tasks: FSD Final Cleanup
Phase 1: Fix import aliases
- Task 1: Fix
../../../→@/in 8 broker files (pages + widgets)
Phase 2: Move BrokerAccountLayout to widgets
- Task 2: Create
widgets/broker-account-layout/index.tsandui/BrokerAccountLayout.tsx - Task 3: Update all imports referencing old path, delete
entities/broker-account/ui/BrokerAccountLayout.tsx
Phase 3: Add api/ to entities/search
- Task 4: Create
entities/search/api/searchApi.tswithsearchSecurities - Task 5: Update consumers, remove
searchSecuritiesfrom shared
Phase 4: Fix app layer deep imports
- Task 6: Fix
AppLayout.tsx,SessionProvider.tsx,ProtectedRoute.tsxto use@/entities/sessionbarrel
Phase 5: Fix test relative imports
- Task 7: Fix
test/test-utils.tsxrelative import - Task 8: Fix 9 test files with relative
test/imports
Phase A: Move BrokerAllocationBar to shared/ui/
- Task A1: Create
shared/ui/broker-allocation-bar/with inline type - Task A2: Update 2 widget consumers, remove
BrokerAllocationBarfrom widget barrel
Phase B: Fix cross-entity deep import
- Task B1: Fix
brokerDisplay.tsto use@/entities/broker-operationbarrel
Phase C: Add missing barrel export
- Task C1: Add
BrokerAccountsAggregateexport toentities/broker-account/index.ts - Task C2: Update
BrokerAccountsSummary.tsxto import from barrel
Verification
- Task D1: Run tests, lint, build — all pass