Visiting Vehicle Charging Visibility (Unit User Stories)¶
Context Summary¶
- Product area: BetterFleet Manage multi-site depot operations and reporting.
- Primary entrypoints: depot vehicle views, troubleshooting timeline,
Charging Sessions, andVehicle Charging Summary. - Repo scope:
bf-manage-webandbf-manage-core. - Scope basis: spec.
- Scope decision: multi-site overview statistics and other summary surfaces stay out of scope for this story set.
- Story slicing decision: report follow-through stays separate from depot vehicle and timeline visibility slices.
- Cross-cutting delivery rule: every story that changes
bf-manage-coremust be reviewed againstbf-manage-core/docs/DDD/agent.md; any boundary-review, validation, or other architecture follow-through should be tracked as execution-only Linear issues rather than broad canonical stories. - Linear mirror rule: each UUS in this file should map to one Linear story issue under the
MPS: Visiting Vehicle Charging Visibilityproject.
Show away-from-home charging in the home-depot vehicle view¶
User Story¶
As a depot manager viewing my home-depot fleet, I want to see when one of my vehicles is actively charging at another depot so that I can understand its live charging state without switching depot context.
Acceptance Criteria¶
- When a vehicle whose home depot is the selected depot is actively charging at another depot, the home-depot vehicle view shows that the vehicle is charging and identifies the charging depot.
- When a vehicle whose home depot is the selected depot is actively charging at that same depot, the home-depot vehicle view keeps the current local charging meaning instead of showing away-from-home wording.
- When a vehicle whose home depot is the selected depot is not actively charging, the away-from-home charging indicator does not appear.
- Existing vehicle-view interactions such as filtering, sorting, and pagination remain available.
Dependencies¶
- None.
Split Signals¶
- Exact presentation choice such as separate section, separate table, or inline indicator stays inside this story and does not require a second canonical story.
- Multi-site overview totals or summary cards remain out of scope.
Show visiting vehicles in the hosting-depot vehicle view¶
User Story¶
As a depot manager viewing vehicles at a hosting depot, I want to see which active charging vehicles come from another home depot so that I can understand who is visiting my site.
Acceptance Criteria¶
- When a vehicle from another home depot is actively charging at the selected depot, the hosting-depot vehicle view shows the vehicle and identifies its home depot.
- When a vehicle actively charging at the selected depot belongs to that depot, the hosting-depot vehicle view keeps the local vehicle meaning instead of showing visiting wording.
- When a charging vehicle at the selected depot has no home depot assigned, the hosting-depot vehicle view shows an explicit unassigned-home-depot state instead of another depot name.
- Existing vehicle-view interactions such as filtering, sorting, and pagination remain available for visible rows.
Dependencies¶
- None.
Split Signals¶
- Surfacing parked or otherwise non-charging visiting vehicles would be a separate story.
Show cross-depot context in the troubleshooting timeline¶
User Story¶
As a depot operator using the troubleshooting timeline, I want charging-session entries to show whether the vehicle is visiting and where it belongs so that I can interpret sessions without manual lookup.
Acceptance Criteria¶
- When the selected depot's timeline includes a charging session for a vehicle whose home depot differs from the charging depot, the charging-session details show both the home-depot meaning and the hosting-depot meaning for that session.
- When the selected depot's timeline includes a charging session for a vehicle whose home depot matches the charging depot, the timeline keeps the existing local charging meaning instead of showing visiting wording.
- When the selected depot's timeline includes a charging session for a vehicle with no home depot assigned, the timeline shows an explicit unassigned-home-depot state.
- Existing timeline incident and event visibility remains available for the same charging session.
Dependencies¶
- None.
Split Signals¶
- Timeline filtering or grouping changes beyond the session-level context are separate stories.
Show cross-depot meaning in Charging Sessions¶
User Story¶
As a finance or reporting user, I want Charging Sessions to show home-depot and charging-depot meaning for cross-depot sessions so that I can interpret who owns the vehicle and where charging occurred.
Acceptance Criteria¶
- When a charging session belongs to a vehicle whose home depot differs from the charging depot,
Charging Sessionspresents explicit cross-depot meaning in both on-screen and exported output. - When a charging session is local to the selected depot,
Charging Sessionskeeps the current local interpretation instead of adding cross-depot wording. - When a charging session belongs to a vehicle with no home depot assigned,
Charging Sessionsshows an explicit unassigned-home-depot state instead of leaving depot meaning ambiguous. - Existing date-range, sorting, pagination, and current attribution-related fields remain available.
Dependencies¶
- None.
Split Signals¶
- New report filters, aggregations, or summary widgets beyond the current report contract are separate stories.
Keep Vehicle Charging Summary aligned with Charging Sessions¶
User Story¶
As a finance or reporting user, I want Vehicle Charging Summary to use the same cross-depot meaning as Charging Sessions so that summary output does not conflict with session output.
Acceptance Criteria¶
- When
Vehicle Charging Summaryincludes charging activity for vehicles away from home or visiting the selected site, the summary uses the same cross-depot meaning defined forCharging Sessions. - When
Vehicle Charging Summaryincludes only local charging activity, the summary keeps the current local interpretation instead of adding cross-depot wording. - When
Vehicle Charging Summaryincludes charging activity for a vehicle with no home depot assigned, the summary shows an explicit unassigned-home-depot state instead of leaving depot meaning ambiguous. - Existing summary navigation, date-range behavior, and current report interactions remain available.
Dependencies¶
- Show cross-depot meaning in Charging Sessions
Split Signals¶
- Any future attempt to align additional reporting surfaces to this contract should be shaped as separate stories instead of widening this one.