feat: build location-selection task with privacy-safe location preview#428
Draft
digital-pro wants to merge 15 commits intomainfrom
Draft
feat: build location-selection task with privacy-safe location preview#428digital-pro wants to merge 15 commits intomainfrom
digital-pro wants to merge 15 commits intomainfrom
Conversation
added 6 commits
March 4, 2026 13:26
Add a new location-selection task scaffold with mode selection and placeholder GPS/map/city-postal trials, and wire task launcher safeguards so the task runs without corpus or assets-per-task entries.
Handle missing media prefixes gracefully and align getMediaAssets argument ordering so new task scaffolds can run without pre-provisioned bucket assets.
Add production-like location-selection behavior with browser GPS capture, US-constrained map picking with contextual labels, and country-scoped city/postal autocomplete. Improve participant-facing instructions and persist selected location drafts through review for end-to-end task testing.
Upgrade the location-selection flow with a first-screen mode chooser, improved layout readability, and a computed Location schema preview that hides raw coordinates. Add real Kontur-first and WorldPop fallback population APIs for effective H3 resolution selection in review.
Center and normalize location-selection panel layout across trials, simplify GPS flow, and tighten city/postal selection so explicit user picks are respected. Improve population-source attribution and config plumbing so Kontur-first fallback behavior is reflected in the computed commit preview.
Parse WorldPop total_population responses and add direct API fallback for preview/static environments where local middleware is unavailable. Enable vertical scrolling for location-selection screens and include candidate diagnostics rendering on review.
added 9 commits
March 5, 2026 09:52
Enable a debug save UI for location selection, cap H3 resolution at 7, and expose the Firebase app/config to support emulator saves.
Document the location-selection save debug URL and emulator ports.
Load a compressed Kontur cache from levante-assets-dev, add batch lookup endpoint, and enable optional batched population lookup.
Load compressed kontur shards from levante-assets-dev/maps/kontur-h3-r5 and document shard layout.
Add a repeatable script to download the kontur dataset and generate R5 shards, plus README instructions.
Ignore venv/data/log files and update the kontur shard builder docs.
Ignore local venv/data/log artifacts in the task-launcher folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NOTE: THIS IS JUST A POC OF GEO PLUMBING. NOT TO BE MERGED, BUT TO BE THE BASIS OF A REAL TASK
location-selectiontask flow with three input paths (GPS, US map pick, and city/postal autocomplete), improved onboarding UI, and review/confirm UX.location_v1payload preview (H3-based center, baseline/effective cells, threshold metadata) while hiding raw coordinates.-dev, and expose the Firebase app/config for that flow.Test plan
npm run buildintask-launcher.npm run dev:dband open?task=location-selection&lng=en.populationSourceand no raw coordinates.?task=locationselection&locationSaveDebug=trueand save to emulator; confirmlocationsdoc appears in emulator UI.