refactor: centralize settings provider registry #352

Merged
barrettruth merged 1 commit from issue-325-provider-registry into main 2026-05-11 20:50:38 +00:00
Owner

Stack

#350 / #315 has merged into main. This PR was rebased onto current origin/main after that merge, so the geocoding provider cleanup is now in the base.

Problem

Provider IDs, labels, token metadata field names, default models, scopes, and provider test routing were duplicated across settings UI and API routes.

Solution

  • Add a shared provider registry for settings-owned NLP recurrence and geocoding providers.
  • Layer the registry on top of #350's geocoding provider cleanup without re-expanding route-specific geocoding logic.
  • Preserve Photon, Mapbox, Google Maps, Anthropic, OpenAI, built-in NLP, current fallback behavior, and current-only token metadata handling.
  • Add focused tests for registry definitions, geocoding fallback, integration provider validation, and provider test dispatch.

Verification

  • nix develop --command just lint
  • nix develop --command just test
  • nix develop --command just build

Closes #325

## Stack #350 / #315 has merged into `main`. This PR was rebased onto current `origin/main` after that merge, so the geocoding provider cleanup is now in the base. ## Problem Provider IDs, labels, token metadata field names, default models, scopes, and provider test routing were duplicated across settings UI and API routes. ## Solution - Add a shared provider registry for settings-owned NLP recurrence and geocoding providers. - Layer the registry on top of #350's geocoding provider cleanup without re-expanding route-specific geocoding logic. - Preserve Photon, Mapbox, Google Maps, Anthropic, OpenAI, built-in NLP, current fallback behavior, and current-only token metadata handling. - Add focused tests for registry definitions, geocoding fallback, integration provider validation, and provider test dispatch. ## Verification - `nix develop --command just lint` - `nix develop --command just test` - `nix develop --command just build` Closes #325
refactor: centralize settings provider registry
All checks were successful
quality / Test (pull_request) Successful in 17s
quality / Lint (pull_request) Successful in 22s
quality / Build (pull_request) Successful in 43s
2b1b123277
barrettruth force-pushed issue-325-provider-registry from 2b1b123277
All checks were successful
quality / Test (pull_request) Successful in 17s
quality / Lint (pull_request) Successful in 22s
quality / Build (pull_request) Successful in 43s
to 97c270c4ce
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 42s
2026-05-11 20:31:23 +00:00
Compare
barrettruth force-pushed issue-325-provider-registry from 97c270c4ce
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 42s
to 75c8748a50
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 20s
quality / Build (pull_request) Successful in 44s
2026-05-11 20:33:02 +00:00
Compare
barrettruth deleted branch issue-325-provider-registry 2026-05-11 20:50:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!352
No description provided.