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.ts and ui/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.ts with searchSecurities
  • Task 5: Update consumers, remove searchSecurities from shared

Phase 4: Fix app layer deep imports

  • Task 6: Fix AppLayout.tsx, SessionProvider.tsx, ProtectedRoute.tsx to use @/entities/session barrel

Phase 5: Fix test relative imports

  • Task 7: Fix test/test-utils.tsx relative 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 BrokerAllocationBar from widget barrel

Phase B: Fix cross-entity deep import

  • Task B1: Fix brokerDisplay.ts to use @/entities/broker-operation barrel

Phase C: Add missing barrel export

  • Task C1: Add BrokerAccountsAggregate export to entities/broker-account/index.ts
  • Task C2: Update BrokerAccountsSummary.tsx to import from barrel

Verification

  • Task D1: Run tests, lint, build — all pass