Admin Web Portal & Route Builder Tool
Exhaustive manual for administrators managing waypoint packs, importing bulk CSV coordinates, plotting pre-trip routes, and reviewing security audit logs.
1. Web Route Builder Tool
The **SpotLocker Web Route Builder** ([`route-builder.tsx`](file:///d:/prfndr/spotlocker/admin_web/pages/route-builder.tsx)) allows admins and pro guides to sequence waypoints into navigable fishing routes prior to launching.
Route Builder Capabilities
- Sequential Waypoint Plotting: Click on satellite or topographic map layers to place waypoints in optimal navigation sequence.
- Distance & Time Calculation: Real-time track distance calculation (nautical miles/km) and estimated vessel travel time at cruising speeds.
- Depth Profile Graphing: Visual cross-section bathymetry depth graph along the planned navigation path.
2. Batch CSV Coordinate Importer
Populate new waypoint packs in seconds by uploading structured CSV dumps. The backend CSV ingestion engine validates headers, sanitizes coordinates, and generates spatial PostGIS points.
Required CSV Format Schema
3. Security Audit Log Monitoring
To preserve data integrity, the backend captures security audit logs in the database (`audit_logs` table) for suspicious activity ([`admin.py`](file:///d:/prfndr/spotlocker/backend/app/routers/admin.py)):
too_many_devices: Triggered when a user attempts to pair more than 2 active devices.failed_login: Failed authentication attempts.license_violation: Mismatched or inactive hardware fingerprint trying to access coordinate APIs.export_waypoints: Selective GPX export actions recording timestamp, user ID, and watermark signature.