app: redesign the panel and add limit forecasts and daily week use #6

Merged
schmidt.florian merged 14 commits from 5-panel-redesign into master 2026-10-15 19:06:05 +02:00
Showing only changes of commit d2ff67bb69 - Show all commits
+28 -7
View File
@@ -163,17 +163,34 @@ probe.
The even pace per day is `100 · 1 d / W`. The daily budget is `(100 − u)` divided by the days
left until `r`. A 7-day instance that resets at another time than midnight touches 8 local
dates; the first and the last are partial days and both are shown.
- **Estimates from tokens.** Where samples do not cover a span, its use is estimated from the
token history. Tokens are weighted by the provider's API price ratios: Claude input 1,
output 5, cache write 1.25, cache read 0.1; Codex uncached input 1, cached input 0.1,
output 8. A window whose label names a model family ("Fable") counts only that family's
models; any other window counts all of the provider's models. Because an instance starts at
0 %, the scale `k = u / (weighted tokens from the instance start to the sample)` turns weighted
tokens into percent of the limit; the newest sample gives `k`. A day, or a stretch of the
window chart, then uses samples where they exist at both ends, and `k` × its weighted tokens
where they do not. A finished instance uses its own last sample for `k` when it has one, else
the current `k`. Estimates are always marked as estimates. No tokens in the instance means no
estimate.
A window without a known length or reset has no pace; FinalToken never guesses one.
A window without a known length or reset has no pace; FinalToken never guesses one; an estimate
is a marked calculation from measured tokens, not a guess.
**Why.** R5. A straight line from the window's start to its reset is a pace the user can check
by hand. A user over pace by less than the threshold still runs out before the reset, so the
date shows from the first point over pace. The day figures answer "how much of the week did I
use today" and "how much may I use per day from now on" (developer feedback, 2026-10-14).
Measured samples alone left the day chart empty until the app had run for a whole week, while the
token history already covers it; the estimate fills it at once and agrees with the measured use
of the instance by construction (developer feedback, 2026-10-15).
**Gives up.** Weekday and working-hour patterns. Forecasts assume a constant rate. Day figures
are only as fine as the samples (D5 keeps one per hour while the value stands still), and Claude
has no samples from before the app's first probe.
**Gives up.** Weekday and working-hour patterns. Forecasts assume a constant rate. Measured day
figures are only as fine as the samples (D5 keeps one per hour while the value stands still).
Estimates miss use from other devices and from claude.ai or the web, which counts against the
limit but leaves no local tokens; they also miss changes in model mix within an instance and
any weighting the provider applies beyond the price ratios.
## D8 — Desktop app
@@ -191,9 +208,13 @@ has no samples from before the app's first probe.
opt-in setting.
- **Panel (R4).** It leads with one tile per limit window: used percent, pace, the forecasts of
[D7](#d7--pace) and, for windows longer than a day, today's use and the daily budget. Then
follow the per-day use of the long windows, token totals and charts, limit history, and the
top entries by model and by project with the rest folded into "Other". Diagnostics are
collapsed. Provider colours are fixed (Claude orange, Codex blue, validated for colour vision
follow the per-day use of the long windows, token totals and charts, one window chart per limit
window, and the top entries by model and by project, with the rest folded into an expandable
"Other". A window chart is a burn-up of one instance from its start to its reset: the used
percent as a line (measured, or estimated before the first sample), the even-pace diagonal
from 0 % to 100 %, the forecast to the reset and the previous instance faintly behind, with no
point markers; under it, the peak each past instance reached. Tooltips are one component: a
title and a label/value grid. Diagnostics are collapsed. Provider colours are fixed (Claude orange, Codex blue, validated for colour vision
deficiency on both themes). Pace states use status colours with an icon and a label, never
colour alone.
- **Popups (R5).** A small borderless, topmost window that does not take focus, at the