/ plans / radicle-issues / 010-integrate-polling-machine.md
010-integrate-polling-machine.md
 1  ---
 2  title: "MC-010: Integrate Polling Machine into Map"
 3  labels: ["feat", "integration", "phase-1"]
 4  assignee: null
 5  ---
 6  
 7  ## Tracer Bullet
 8  
 9  ✅ Aircraft markers appear on map and update every 10 seconds
10  
11  ## Context
12  
13  Wire up XState machine to render markers in Map component.
14  
15  The polling machine sends events to @xstate/store for unified state management.
16  
17  ## Acceptance Criteria
18  
19  - [ ] `src/components/Map.tsx` updated to use useMachine
20  - [ ] Aircraft markers rendered from store state via useSelector
21  - [ ] Telemetry sidebar shows aircraft data from store
22  - [ ] Selected aircraft shows detailed telemetry table
23  
24  ## Implementation Steps
25  
26  1. Import useMachine and aircraftPollingMachine
27  2. Import AircraftMarker component and dashboard store
28  3. Call useMachine to get snapshot
29  4. Subscribe to store with useSelector for aircraft
30  5. Add telemetry sidebar with store state
31  
32  ## Notes
33  
34  - Machine sends events to dashboard store
35  - Store coordinates shared state (assets, selection, UI preferences)
36  - Map reads from store, not directly from machine context