Skip to content

Migrate geographies to API v2 alpha #657

@anth-volk

Description

@anth-volk

Summary

Migrate the geography/region functionality in app v2 to use the new API v2 alpha regions endpoint, removing user-specific geography associations in favor of system-level reference data.

Current State

  • App v2 uses UserGeographicStore with user associations (userId, custom label)
  • UserGeographyPopulation type ties geographies to specific users
  • Geography data is user-scoped with CRUD operations per user

Target State

  • Fetch regions from API v2 alpha /regions/ endpoint (no user context)
  • Regions are system reference data with standardized labels
  • Remove user-geography association pattern entirely

Tasks

  • Update app to fetch regions from new /regions/ endpoint
  • Remove UserGeographicStore and user-scoped geography APIs
  • Update UserGeographyPopulation or replace with simpler Region type
  • Remove custom geography naming/labeling features
  • Update geography selection UI to use system regions
  • Update any components that depend on user-geography associations

Dependencies

This work depends on:

Related

  • Branch: feat/migrate-geographies-to-v2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions