Skip to content

Feat/economics digest copy - #23

Merged
ripgrim merged 3 commits into
mainfrom
feat/economics-digest-copy
Jul 28, 2026
Merged

Feat/economics digest copy#23
ripgrim merged 3 commits into
mainfrom
feat/economics-digest-copy

Conversation

@ripgrim

@ripgrim ripgrim commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

ripgrim and others added 3 commits July 26, 2026 20:06
Feedback from the posted digest:
- The chart colors were unexplained. The footer is now a legend: blurple =
  billed (what we charged), yellow = actual (what OpenRouter charged).
- "OpenRouter: not in yet" was opaque. Renamed the field to "Actual
  (OpenRouter)" and the placeholder to "awaiting invoice" — it's the provider
  charge, pulled by a lagging 01:40 UTC cron, blank until it lands. The gap now
  reads "26.6% billed under" so the direction is unambiguous.
- Zoomed the dither out a touch: cell 3 -> 2 on a wider 540x180 canvas, finer
  cells with more breathing room around the trend.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The overlaid dither AREAS blended into a muddy green where blurple (billed)
met yellow (actual). Switched buildSpendChart to the line renderer so the two
series read as distinct strokes on the shared scale. renderDitherChart stays
in @tripwire/utils (exported + tested) for other uses; the digest just doesn't
fill areas anymore.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… area

The dither AREAS merged into a muddy overlap; a plain line separated them but
lost the dither texture. This adds a line mode to renderDitherChart that keeps
the ordered-dither look while staying distinct — the dither-kit's own LINE
technique, server-side:

- renderDitherChart({ mode: "line" }): fills only a thin glow band (~16% of
  plot height) hugging each value line instead of down to the floor, densest at
  the stroke and fading away — so overlaid series read as separate dithered
  lines, not one filled mass.
- SparkSeries.dashed: breaks a stroke into dashes (dither-kit's
  strokeVariant="dashed"). buildSpendChart draws billed solid blurple + actual
  dashed yellow, so they separate by color AND pattern.
- footer legend notes the dash; chart stays cell 2 / 540x180.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ripgrim
ripgrim merged commit e1b710b into main Jul 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant