Fix/location
Summary
This merge improves the standup audio upload flow by making location handling more reliable and more transparent to the user.
The main change is in the record/upload form: users can still try browser-based current location fetch as before, but if live location lookup or backend verification is unreliable, they now have explicit fallback coordinate options to continue the upload flow without getting blocked. The selected fallback coordinates are wired into the same upload payload path as normal geolocation, so upload behavior remains consistent.
What Changed
- Added two manual location presets in the upload form:
- IIIT Hyderabad
- Swecha Telangana
- Preset coordinates can be selected when automatic location fetch does not work as expected.
- Preset selection updates the same location state already used by the upload request.
- Added small UI feedback to indicate the active location source.
- Added styling for the preset location controls so they fit the existing upload form layout.
Also Included
- Improved handling for /api/v1/location/verify-location failures.
- The frontend no longer silently hides verification failures.
- When verification fails, the UI now surfaces the actual failure message and makes it clear when it is falling back to raw device coordinates.
Why This Merge Is Needed
Previously, the upload flow depended heavily on successful browser geolocation plus backend verification. In practice, users could end up in a confusing state where:
- geolocation partly worked,
- verification failed,
- the UI did not clearly explain what happened.
This merge reduces that friction by:
- making failures visible,
- preserving upload continuity,
- giving users a deterministic fallback path with known valid coordinates.
Files Included
- src/components/StandupUploadForm.tsx
- src/styles.css
- public/assets/teams.csv
Validation
The staged validation pipeline passed during commit:
- formatting
- lint/type checks with existing non-blocking warnings
- full test suite
Commit
- 64a97b09 feat(upload): add fallback location presets
If you want, I can also turn this into a GitHub PR description with Problem, Solution, Testing, and Notes for Reviewers sections.