How roadtrace/kmtrack works
SPOT IT is an offline-first road-inspection application: an inspector records and reviews inspections locally, then eligible records can be reconciled and submitted to the cloud. Separate branches support guest-to-account claiming, sharing/import-export, mapping and location, and an explicit photo-attachment pilot. The excerpts show important module dependencies and cloud operations; the tree and source index identify other product areas, but their internal wiring is not established here.
Main entry points: guest-claim.js Guest claiming · entry-model.js Inspection records · inspection-api.js Inspection API · photo-sync.js Photo sync
Components 21
Inspection workflow
- Inspection records
entry-model.js - Local persistence
local-entry-store.js - Submission review
preapproval-review.js
Account and sync
- Authentication
auth.js - Auth configuration
auth-config.js - Guest claiming
guest-claim.js - Eligibility queue
sync-queue.js - Sync runner
sync-runner.js - Inspection API
inspection-api.js
Photo evidence
- Photo preparation
photo-upload-state.js - Photo sync
photo-sync.js - Photo cloud API
photo-cloud-api.js - Photo viewing pilot
photo-pilot.js
Field tools
- Location resolution
location-resolver.js - Map configuration
map-config.js - Map overlays
map-overlays.js - Inspection log controls
log-controls.js
Sharing and export
- Sharing and workbook exchange
inspection-sharing.js - Sharing interface
sharing-ui.js
Other components
- Inspector
- Cloud inspection service
Connections 17
- Inspection records → Photo preparation: normalizes with
entry-model.js - Guest claiming → Eligibility queue: checks eligibility
guest-claim.js - Guest claiming → Inspection records: creates copies with
guest-claim.js - Guest claiming → Local persistence: persists claims with
guest-claim.js - Guest claiming → Submission review: uses review scope
guest-claim.js - Submission review → Eligibility queue: checks eligibility
preapproval-review.js - Sync runner → Eligibility queue: selects eligible records
sync-runner.js - Sync runner → Inspection API: reconciles submissions
sync-runner.js - Inspection API → Cloud inspection service: inserts inspections
inspection-api.js - Photo viewing pilot → Photo preparation: checks photo state
photo-pilot.js - Photo viewing pilot → Inspection API: uses inspection API
photo-pilot.js - Photo sync → Photo preparation: validates photo state
photo-sync.js - Photo sync → Photo cloud API: dispatches photo operations
photo-sync.js - Photo sync → Inspection API: uses inspection API
photo-sync.js - Photo cloud API → Cloud inspection service: reads inspection rows
photo-cloud-api.js - Sharing and workbook exchange → Inspection records: reuses entry model
inspection-sharing.js - Inspector → Inspection records: records inspections