Skip to content

feat(TrendChart): shared multi-series trend chart component#329

Merged
I-am-nothing merged 2 commits into
mainfrom
feat/trend-chart-component
Jul 3, 2026
Merged

feat(TrendChart): shared multi-series trend chart component#329
I-am-nothing merged 2 commits into
mainfrom
feat/trend-chart-component

Conversation

@I-am-nothing

Copy link
Copy Markdown
Contributor

Summary

Extracts a real-pixel-plotted trend chart (solid line/area + N dashed overlay series, optional threshold line, optional x-axis labels, hover tooltip) into a single shared TrendChart block component, replacing two independent near-duplicate private Chart implementations in web-applications.

Also fixes a latent bug carried over from one of those private copies: an overlay's tooltip unit was inferred from whether fixedMax was set (fixedMax != null ? "%" : unit), conflating "has a pinned y-axis ceiling" with "is a percentage". TrendChartOverlay.unit is now explicit and independent of fixedMax.

Note on versioning

This bumps to 0.6.2, same as the independent, already-open #328. Whichever of the two merges second will need a rebase + re-bump to 0.6.3 to avoid a version collision — flagging since it depends on merge order.

Test plan

  • pnpm typecheck / pnpm build clean
  • pnpm test — 797/797 pass (incl. 10 new TrendChart tests)
  • Both consuming migrations (web-applications) typecheck/lint clean against this build

🤖 Generated with Claude Code

I-am-nothing and others added 2 commits July 4, 2026 06:36
Extracts a real-pixel-plotted trend chart (solid line/area + N dashed
overlay series, optional threshold line, optional x-axis labels, hover
tooltip) into a single shared block component, replacing two independent
near-duplicate private Chart implementations in web-applications
(dev/module/[slug]/service/page.tsx and the new app debug page's
services-status-tab.tsx). Fixes a latent bug from one of those private
copies along the way: an overlay's tooltip unit was inferred from whether
fixedMax was set (fixedMax != null ? "%" : unit), conflating "has a pinned
y-axis ceiling" with "is a percentage" — TrendChartOverlay.unit is now
explicit and independent of fixedMax.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Storybook Preview: https://mirrorstack-ai.github.io/web-ui-kit/pr/329/

github-actions Bot added a commit that referenced this pull request Jul 3, 2026
@I-am-nothing I-am-nothing merged commit df8a02d into main Jul 3, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in MirrorStack Platform Jul 3, 2026
github-actions Bot added a commit that referenced this pull request Jul 3, 2026
I-am-nothing added a commit that referenced this pull request Jul 3, 2026
main already published 0.6.2 via #329 (an independent branch that merged
directly to main before this one did), so this branch's own 0.6.2 would
collide — no version diff for the release automation to act on when this
merges. Bumping to 0.6.3 so merging this branch actually publishes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@I-am-nothing I-am-nothing deleted the feat/trend-chart-component branch July 4, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant