Files
magpie/internal
yetone 65a83656d3 gui: the tray's quota line is taller and shades its gap to the even burn (#2079)
maidangdang1: the tray card's line of a window's cycle was 16px tall across
the card, so a month read as one straight line lying on its dashes, and
whether it was above them (lasts the cycle) or below (runs out first)
couldn't be told.

What changed:
- quotaSpark draws 30px tall (CSS box 30px, line 1.4px).
- sparkGap shades the area between this cycle's readings and the even burn
  (the diagonal from full at start to empty at reset): green where it is
  above, amber where it is below, nothing on the far side. Two clipPaths
  split one polygon at the diagonal, so a line that crosses it shows both.
  Only when the reset is known and the cycle has 2+ readings.
- The spark's tooltip adds the window's Pace (the existing "Pace {n}"
  string and quotaPace), so the number is a hover away.

Decision (product call delegated): Edward4226 offered an ETA/balance-axis
branch on the issue. Pace (3a7d031) already gives the number, and the
balance axis is a separate goal; this answers the report's question
(which side of the dashes) at a glance. Their idea is credited on the issue.

Run:
- New tray-spark-gap.test.cjs (5 languages x 1100/420): reads the spark's
  screenshot pixels, green above / amber below / plain on the far side,
  height 28-32, tooltip says Pace, no overflow, no page errors. Chromium
  11/11, WebKit 11/11; with the old app.js 0/11 (broke it by hand).
- quota-curve.test.cjs updated for the height (<= 31) and green.
- tray*, quota*, panel-usage/balance/fold/arrange, i18n-keys, credits*,
  usage-* at --test-concurrency=4: chromium 407/408, webkit 407/408. The
  two reds (usage-checkin zh Qoder tab, usage-sum-whole de) touch neither
  the tray nor the spark, pass alone and 4-parallel; filed as #2142.
- gofmt -l clean; go vet darwin, linux -tags nogui, windows for
  ./internal/gui clean (JS/CSS only).

Not tried: the real tray on macOS/Windows with live quota history; the
fixtures are faked.
2026-10-14 15:35:47 +08:00
..
…
…