fix: update activeLabel type to be a string | number#6691
Conversation
WalkthroughIntroduces a new ActiveLabel type (string | number | undefined) in synchronization types and replaces inline label types across hooks, selectors, combiners, and synchronization utilities to use ActiveLabel; no runtime behavior changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (6)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6691 +/- ##
==========================================
- Coverage 94.02% 94.02% -0.01%
==========================================
Files 499 499
Lines 42547 42544 -3
Branches 4873 4873
==========================================
- Hits 40004 40001 -3
Misses 2538 2538
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/synchronisation/types.ts
Outdated
| activeIndex: number | TooltipIndex | undefined; | ||
| activeLabel: string | undefined; | ||
| /** | ||
| * The X value (label) of the active tooltip entry. |
There was a problem hiding this comment.
Is it X in vertical charts? And what is it in polar charts?
There was a problem hiding this comment.
it is the categorical domain value in categorical charts. In numeric and polar charts it is the domain.
Bundle ReportChanges will decrease total bundle size by 14 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-cjsAssets Changed:
view changes for bundle: recharts/bundle-es6Assets Changed:
|
ca8b8f6 to
0bb951f
Compare
Description
Not really sure if this is the right thing to do, technically a breaking change in types but also the previous typage was wrong so this is a bug fix
Related Issue
#6688
Motivation and Context
#6688
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.