Profiles S2 — Settings page UI (sidebar + detail) #135

Closed
opened 2026-10-26 11:52:33 +01:00 by AlexKucera · 0 comments
Owner

Part of #125 (wayfinder map — build slice of the profiles topology).

Profiles S2 — Settings page UI (sidebar + detail)

Grounding: #130 verdict Variant C (prototype ref/prototypes/wf130-settings-ui-prototype.html on main @ 2032534 — the visual contract), #126 (data model), #128 (dropdown/effort sourcing), #133. Consult SwiftFairy before Swift edits; Swift 6 default-MainActor; DesignTokens two-color palette.

Scope

  • SettingsPaneView rework to sidebar + detail: destinations Content · Pass 1 · Pass 2 · Chat · Provider Keys (Chat row notes "Sessions rides this engine").
  • Content page = the existing Home control (#17), unchanged behavior.
  • Per-surface page: provider select (z.ai / Anthropic / OpenAI); model picker sourced from ~/.hermes/provider_models_cache.json with first-class free-text entry — the seed default claude-sonnet-5-5 is NOT in the cache, so "custom (not in registry)" is the default state, not an edge case; current model reads as the page's headline (stolen from prototype variant B); reasoning-effort dropdown per provider (zai low/high/max · OpenAI low/medium/high/xhigh/max · Anthropic low/medium/high/xhigh/max, leading "unset · provider default") — one model.reasoning_effort key.
  • Provider Keys page: per-provider block — endpoint (base URL), z.ai key-type toggle (Standard pay-as-you-go ↔ Coding plan) swapping the endpoint family (/api/paas/v4 ↔ /api/coding/paas/v4; coding-plan keys are distribution-restricted — factsheet §1), masked API key + reveal. One key per provider fans out to every profile on that provider; no Keychain (#131).
  • No engine selector (profiles topology). Output budget is not a control. Each surface row shows its profile name.
  • Persistence is S3's job: land this slice over an in-memory model + injectable write-path protocol.
  • Fold-in cleanups from #130: quiet field labels (no wrapping captions), no issue-pointer annotations, the Custom… ↩ affordance becomes a proper combobox.

Acceptance

  • Prototype variant C reproduced natively; interactions behave (provider switch swaps the effort menu, z.ai toggle swaps the endpoint, reveal toggles).
  • Unit tests for the view-model mapping: provider → effort options, custom-model state, key-type → endpoint family.

[Generated by AI]

Part of #125 (wayfinder map — build slice of the profiles topology). ## Profiles S2 — Settings page UI (sidebar + detail) Grounding: #130 verdict **Variant C** (prototype `ref/prototypes/wf130-settings-ui-prototype.html` on main @ 2032534 — the visual contract), #126 (data model), #128 (dropdown/effort sourcing), #133. Consult SwiftFairy before Swift edits; Swift 6 default-MainActor; DesignTokens two-color palette. ### Scope - **SettingsPaneView rework to sidebar + detail**: destinations `Content · Pass 1 · Pass 2 · Chat · Provider Keys` (Chat row notes "Sessions rides this engine"). - **Content page** = the existing Home control (#17), unchanged behavior. - **Per-surface page**: provider select (z.ai / Anthropic / OpenAI); model picker sourced from `~/.hermes/provider_models_cache.json` **with first-class free-text entry** — the seed default `claude-sonnet-5-5` is NOT in the cache, so "custom (not in registry)" is the default state, not an edge case; current model reads as the page's headline (stolen from prototype variant B); reasoning-effort dropdown per provider (zai low/high/max · OpenAI low/medium/high/xhigh/max · Anthropic low/medium/high/xhigh/max, leading "unset · provider default") — one `model.reasoning_effort` key. - **Provider Keys page**: per-provider block — endpoint (base URL), z.ai key-type toggle (Standard pay-as-you-go ↔ Coding plan) swapping the endpoint family (`/api/paas/v4` ↔ `/api/coding/paas/v4`; coding-plan keys are distribution-restricted — factsheet §1), masked API key + reveal. One key per provider fans out to every profile on that provider; no Keychain (#131). - **No engine selector** (profiles topology). Output budget is not a control. Each surface row shows its profile name. - Persistence is S3's job: land this slice over an in-memory model + injectable write-path protocol. - Fold-in cleanups from #130: quiet field labels (no wrapping captions), no issue-pointer annotations, the Custom… ↩ affordance becomes a proper combobox. ### Acceptance - Prototype variant C reproduced natively; interactions behave (provider switch swaps the effort menu, z.ai toggle swaps the endpoint, reveal toggles). - Unit tests for the view-model mapping: provider → effort options, custom-model state, key-type → endpoint family. [Generated by AI]
AlexKucera added the ready-for-agent label 2026-10-26 11:52:35 +01:00
Sign in to join this conversation.