refactor: extract provider settings primitives #398

Merged
barrettruth merged 1 commit from issue-370-provider-settings-primitives into main 2026-05-12 13:54:03 +00:00
Owner

Problem

Calendar settings still duplicated provider row rendering, API-key entry state, and integration key-test requests across the geocoding and NLP sections.

Solution

  • Add settings-local provider primitives for active provider rows, inline API-key entry, key-entry state, and the shared integration test endpoint call.
  • Rework geocoding and NLP settings to use those primitives while keeping provider-specific save/delete behavior in CalendarSettingsSection.
  • Ignore .direnv/ so the local just ci lint target does not follow direnv's Nix shell profile into /nix/store.

Verification

  • nix develop --command pnpm vitest run tests/lib/provider-settings-primitives.test.tsx tests/lib/calendar-settings-section.test.ts --reporter=verbose
  • nix develop --command pnpm exec biome check src/components/settings/calendar-settings-section.tsx src/components/settings/provider-settings-primitives.tsx tests/lib/provider-settings-primitives.test.tsx
  • nix develop --command pnpm typecheck
  • nix develop --command just ci

Closes #370

## Problem Calendar settings still duplicated provider row rendering, API-key entry state, and integration key-test requests across the geocoding and NLP sections. ## Solution - Add settings-local provider primitives for active provider rows, inline API-key entry, key-entry state, and the shared integration test endpoint call. - Rework geocoding and NLP settings to use those primitives while keeping provider-specific save/delete behavior in `CalendarSettingsSection`. - Ignore `.direnv/` so the local `just ci` lint target does not follow direnv's Nix shell profile into `/nix/store`. ## Verification - `nix develop --command pnpm vitest run tests/lib/provider-settings-primitives.test.tsx tests/lib/calendar-settings-section.test.ts --reporter=verbose` - `nix develop --command pnpm exec biome check src/components/settings/calendar-settings-section.tsx src/components/settings/provider-settings-primitives.tsx tests/lib/provider-settings-primitives.test.tsx` - `nix develop --command pnpm typecheck` - `nix develop --command just ci` Closes #370
refactor: extract provider settings primitives
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 22s
quality / Build (pull_request) Successful in 43s
c5c458f14c
barrettruth deleted branch issue-370-provider-settings-primitives 2026-05-12 13:54:04 +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!398
No description provided.