Feat/economics digest copy - #23
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.