Skip to content

refactor(node): migrate to non-deprecated Vico chart APIs#5737

Merged
jamesarich merged 1 commit into
mainfrom
claude/elated-hofstadter-3d1ab1
Jun 3, 2026
Merged

refactor(node): migrate to non-deprecated Vico chart APIs#5737
jamesarich merged 1 commit into
mainfrom
claude/elated-hofstadter-3d1ab1

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

What changed

Vico 3.2.1 deprecated two charting APIs used across the node metrics charts. This migrates to their replacements:

  • lineSerieslineModel — a drop-in rename (the deprecated lineSeries simply delegates to lineModel). Updated the import + all call sites in DeviceMetrics, EnvironmentCharts, HostMetricsChart, PaxMetrics, PowerMetrics, SignalMetrics, and TracerouteChart.
  • rememberCartesianChart getXStep lambda — the new overload's lambda receives (model, minX, maxX). Updated BaseMetricChart from { model -> ... } to { model, _, _ -> ... }; the 60-second floor logic is unchanged.

Why

These were the deprecation warnings flooding the Kotlin compiler output for feature/node. No behavior change — purely clearing deprecated API usage.

Reviewer notes

  • Verified locally: spotlessApply spotlessCheck detekt pass and :feature:node:allTests is green (627 tests). No remaining lineSeries/getXStep deprecation warnings.

🤖 Generated with Claude Code

Vico 3.2.1 deprecated two APIs used in the node metrics charts:

- lineSeries → lineModel (drop-in rename; the deprecated function just
  delegates to lineModel)
- the rememberCartesianChart getXStep lambda now receives (model, minX,
  maxX); updated the BaseMetricChart callback to { model, _, _ -> ... }
  with unchanged logic

Clears the deprecation warnings from the build log. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the refactor no functional changes label Jun 3, 2026
@jamesarich jamesarich merged commit d86c627 into main Jun 3, 2026
18 checks passed
@jamesarich jamesarich deleted the claude/elated-hofstadter-3d1ab1 branch June 3, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor no functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant