bf-manage-web¶
What this service is¶
bf-manage-web is the primary Manage frontend. It is a Vite + React TypeScript application that composes operational workflows (chargers, depots, incidents, reports, dispatch, timeline, settings) and fans out API calls to multiple backend services.
Code anatomy¶
src/router,src/navigation: routing, guarded routes, side-nav and navigation shell.src/pages/*: feature screens such asDepot,Charger,Incidents,Reports,Timeline,SystemAdmin,Help.src/components/*: design system layers (atoms,molecules,organisms, modals, layout helpers).src/services/*: API client modules grouped by domain (depotSim, tariffs, permissions, reports, schedules, troubleshooting, telematics).src/hooks/*: app-wide behavior hooks (feature flags, axios wiring, workspace view, time handling, modal/state helpers).src/context/*: cross-page state providers (workspace/account/user state and UI contexts).src/queries/*: request/query abstractions for data flows.
Architectural characteristics¶
- Component-driven UI with service modules rather than page-level direct HTTP calls.
- Heavy usage of custom hooks for cross-cutting behavior and feature gating.
- Multi-backend integration model where URL wiring is env-driven and mode/feature-flag aware.
Documentation and tests in-repo¶
feature-flags.md,frontend_feature_flags_admin_page.md.- In-app help source of truth:
docs/help/; editing workflow: In-App Docs Authoring. - Cypress suite in
cypress/plus service/hook unit tests undersrc/.