/ plans / radicle-issues / 016-integrate-mission-assets.md
016-integrate-mission-assets.md
 1  ---
 2  title: "MC-016: Update Map to Include Mission Assets"
 3  labels: ["feat", "integration", "phase-2"]
 4  assignee: null
 5  ---
 6  
 7  ## Tracer Bullet
 8  
 9  ✅ Mission assets stream and appear on map alongside aircraft
10  
11  ## Context
12  
13  Integrate mission WebSocket machine with the dashboard store.
14  
15  The WebSocket machine sends events to @xstate/store for unified state management.
16  
17  ## Acceptance Criteria
18  
19  - [ ] Import missionWebSocketMachine in Map.tsx
20  - [ ] Mission markers rendered from store state via useSelector
21  - [ ] AlertsSidebar rendered with alerts from store
22  - [ ] Both aircraft and mission markers visible simultaneously
23  
24  ## Implementation Steps
25  
26  1. Add useMachine call for missionWebSocketMachine
27  2. Subscribe to dashboard store with useSelector for mission assets and alerts
28  3. Pass store state to MissionMarker and AlertsSidebar
29  4. Verify both data sources visible
30  
31  ## Notes
32  
33  - WebSocket machine sends events to dashboard store
34  - Store coordinates shared state (assets, alerts, selection)
35  - Map reads from store, not directly from machine context