Plan Migration and Flags
Frontend Routing Strategy
flowchart LR
UI[betterfleet-bnl-ui]
Flag[plan-digital-twin-migration]
Flag -->|OFF| LegacyURLs[Legacy backend URLs]
Flag -->|ON| DTURL[Digital twin URL]
UI --> Flag
Endpoint Family Shift
| Capability |
Legacy orientation |
Digital twin orientation |
| Resource APIs |
bf-bnl-settings endpoints |
bf-digital-twin plan APIs |
| Simulation |
settings orchestrates compute + route |
digital twin orchestrates internally |
| Parsing/upload |
direct schedule creator paths |
proxied/integrated via digital twin paths |
Runtime View
sequenceDiagram
participant UI
participant Flag
participant Legacy as bnl-settings stack
participant DT as bf-digital-twin
UI->>Flag: evaluate migration flag
alt OFF
UI->>Legacy: call legacy endpoint set
else ON
UI->>DT: call digital twin endpoint set
end