Add Events tab to vibration monitoring location detail page #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
vibration_location_detail.htmlpage currently has Overview and Settings tabs but no way to view SFM event history for the location. This is the key missing piece in the vibration module.Backend changes (
backend/main.py)The route handler for vibration location detail (around line 397) currently only fetches the active
UnitAssignment. It needs to also pass fullassignment_history:Frontend changes (
templates/vibration_location_detail.html)Add an Events tab alongside the existing Overview and Settings tabs. The tab should:
assignment_historyentriesGET /api/sfm/db/events?serial={assignment.unit_id}&from_dt={assignment.assigned_at}&to_dt={assignment.assigned_until}Secondary task
Add an Event History section to the unit detail page (
/unit/{id}) pulling from/api/sfm/db/events?serial={unit.id}for a unit-centric view.Notes
/api/sfm/*→http://localhost:8200unit.id==serialin SFM DBsfm/sfm_webapp.htmlHistory tab (loadHistory()) for existing fetch + render pattern including PPV formattingSeparate tabs added including events.