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>
Production held ZERO subscribed push devices (the messaging doctor,
2026-10-15): the server could send a push, the VAPID keys and the service
worker were in place, and no screen anywhere offered a phone the choice —
usePushSubscription was imported by nothing. A new report on a site
reached no device, and said so only in a log line.
- Settings → Notifications gets an "On this phone" card: Turn on, Send a
test, Turn off, with a plain sentence for every state (not asked,
working, on, blocked by the browser, unsupported — with the iPhone
Add-to-Home-Screen fix — error with retry, server has no key).
Pure view logic (lib/push-card.ts) is pinned by scripts/test/push-card.ts;
copy is SSOT in config/comms.ts.
- GET /api/push/public-key hands out the server's own VAPID_PUBLIC_KEY, so
a phone no longer subscribes against a key inlined at build time that a
build can lose or leave stale; POST /api/push/test sends one test push
and names the failed precondition instead of a bare zero.
- The page-render harness is now a shared core (render-harness.mjs) with a
thin script per page; the push card has one, and rendering it is how a
filled button 8px shorter than its neighbour, and under 44px, was caught
and fixed.
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
Co-authored-by: Claude <noreply@anthropic.com>
Landing from Implement on /feedback?project=<id> printed "Nothing waiting
on you for 5936f8fb-…": the inbox filtered by project NAME and showed the
reader the id, on a page whose chips, stat cards and section heads were
each drawn in a different style. Every check was green; nobody had
rendered it.
- The ?project= filter resolves a name or an id against the data; an
unknown value filters nothing instead of printing itself.
- A project-scoped view names its subject ("Showing petvity · 1 open ·
All projects"), scrolls the active chip into view, and drops the
per-row project chip. An empty project view says what is shipped and
offers "Show all projects" / "Open <project>".
- One chip primitive (ui-inbox-project) for project and source filters;
sections use the ui-inbox primitives; the three stat cards are one line
(metricsLine, pure).
- A failed row has one primary button: the provider switch (or Retry);
Watch steps down to secondary.
- Any refused feedback run gets one automatic second attempt; only
commands the runner could not read, dead credentials and a missing
workspace still stop. Test updated.
- scripts/preview/build-feedback-preview.mjs renders the real inbox with
fixture rows in headless Chromium at 390 and 1280, dark and light, for
every ?project= shape, failing on overflow or a console error. REVIEW.md
records the definition of done this adds; responsive-design.md documents
the harness.
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
Co-authored-by: Claude <noreply@anthropic.com>