Files
CatoandClaude 8884b09eb5 feat(settings): Settings → AI as one surface — what is left per source, one row shape, no untrue copy (#1401)
Every card of the AI tab now wears the same header (title, one line,
at most one action on the title row), and the tab reads top to bottom
as the levers a person reaches for:

- "What you have left": one list of every source Loki answers from —
  each key the person brought, a paid plan, the shared free pool —
  with one row anatomy: what is left (in the vendor's words, or "not
  reported yet", never "full"), what it cost, what to do. Under it,
  two equal cells that are always there: Add a provider · Upgrade /
  Manage plan. The free pool's number is said once (hero or sentence,
  never both); every per-answer figure names its basis ("your own
  2,720 tokens" vs "a starting estimate").
- "Your providers": one row shape (name · model, detail, Test inline,
  the rest behind one menu), "Also for building" as a switch row,
  adding as the last row. Usage and billing are no longer repeated
  from the card above.
- "What Auto picks" is its own card and states where its prices and
  intelligence index come from and when they were read.
- The server's vendor counters and per-feature spend are the
  operator's and show only to the operator, with a title that says so.

Copy that was wrong or ambiguous: "set a a monthly spending limit";
"7,200 of 7,200 requests." with no "left"; "then 0 a month on your
plan" on Free; and every "once Loki's company is registered" line,
which now says only that checkout is not open yet and a reservation
is kept. The plans note still says nothing is charged.

One switch class replaces three hand-rolled pills (the old white knob
vanished on a near-white "on" track in dark mode). A preview entry
renders the whole tab from mocked routes at 390/1280 in both themes
(scripts/preview/build-ai-settings-preview.mjs).


Claude-Session: https://claude.ai/code/session_01Tus1qL7PBrGiLy7kwbAAyP

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 08:38:05 +02:00
..