Remove documented but not available props#6584
Conversation
WalkthroughRemoved internal, deprecated, and unused Storybook argTypes and website API doc props across story files, props definitions, docs, and tests; fixed a wording and renamed Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ 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 (27)
💤 Files with no reviewable changes (22)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used🧬 Code graph analysis (1)storybook/stories/API/cartesian/ReferenceLine.stories.tsx (1)
⏰ 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)
🔇 Additional comments (3)
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 #6584 +/- ##
==========================================
- Coverage 94.56% 94.53% -0.04%
==========================================
Files 491 491
Lines 41045 40760 -285
Branches 4752 4752
==========================================
- Hits 38816 38531 -285
Misses 2224 2224
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportBundle size has no change ✅ |
c53c3db to
0328681
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
storybook/stories/API/props/YAxisProps.ts (1)
50-50: Fix description to reference y-axis.The padding description references "x-axis" but this is in YAxisProps and should say "y-axis" for consistency. This appears to be another copy-paste error similar to the one fixed in lines 6-7.
Apply this diff to fix the description:
- description: 'Specify the padding of x-axis.', + description: 'Specify the padding of y-axis.',
🧹 Nitpick comments (1)
www/src/docs/api/Tooltip.ts (1)
141-141: Consider clarifying theactiveprop description.The new wording "displayed even after onMouseLeave" is somewhat ambiguous. Consider rephrasing for better clarity and parallelism:
- 'If set true, the tooltip is displayed even after onMouseLeave. If set false, the tooltip is always hidden.', + 'If set true, the tooltip is displayed (manual control). If set false, the tooltip is hidden.',Or, if the intent is to emphasize mouse leave behavior:
- 'If set true, the tooltip is displayed even after onMouseLeave. If set false, the tooltip is always hidden.', + 'If set true, the tooltip remains visible even after mouse leave. If set false, the tooltip is hidden.',
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (27)
omnidoc/omnidoc.spec.ts(0 hunks)omnidoc/readApiDoc.spec.ts(0 hunks)omnidoc/readStorybookDoc.spec.ts(0 hunks)storybook/stories/API/cartesian/ReferenceDot.stories.tsx(1 hunks)storybook/stories/API/cartesian/ReferenceLine.stories.tsx(3 hunks)storybook/stories/API/chart/PieChart.stories.tsx(0 hunks)storybook/stories/API/polar/Pie.stories.tsx(0 hunks)storybook/stories/API/props/ChartProps.ts(0 hunks)storybook/stories/API/props/ReferenceComponentShared.ts(0 hunks)storybook/stories/API/props/Styles.ts(0 hunks)storybook/stories/API/props/TextProps.ts(0 hunks)storybook/stories/API/props/TooltipProps.tsx(0 hunks)storybook/stories/API/props/YAxisProps.ts(1 hunks)storybook/stories/API/shapes/Sector.stories.tsx(0 hunks)www/src/docs/api/Area.ts(1 hunks)www/src/docs/api/Bar.ts(0 hunks)www/src/docs/api/Brush.ts(0 hunks)www/src/docs/api/Funnel.ts(0 hunks)www/src/docs/api/LabelList.ts(0 hunks)www/src/docs/api/Line.ts(0 hunks)www/src/docs/api/Pie.ts(0 hunks)www/src/docs/api/RadarChart.ts(0 hunks)www/src/docs/api/ReferenceArea.ts(0 hunks)www/src/docs/api/ReferenceDot.ts(0 hunks)www/src/docs/api/ReferenceLine.ts(0 hunks)www/src/docs/api/Scatter.ts(0 hunks)www/src/docs/api/Tooltip.ts(1 hunks)
💤 Files with no reviewable changes (22)
- www/src/docs/api/Pie.ts
- storybook/stories/API/props/ReferenceComponentShared.ts
- www/src/docs/api/Scatter.ts
- storybook/stories/API/props/TextProps.ts
- www/src/docs/api/LabelList.ts
- www/src/docs/api/ReferenceLine.ts
- omnidoc/readApiDoc.spec.ts
- www/src/docs/api/Funnel.ts
- www/src/docs/api/Bar.ts
- www/src/docs/api/ReferenceArea.ts
- www/src/docs/api/RadarChart.ts
- storybook/stories/API/props/ChartProps.ts
- storybook/stories/API/polar/Pie.stories.tsx
- storybook/stories/API/props/Styles.ts
- storybook/stories/API/props/TooltipProps.tsx
- omnidoc/readStorybookDoc.spec.ts
- storybook/stories/API/chart/PieChart.stories.tsx
- www/src/docs/api/Brush.ts
- omnidoc/omnidoc.spec.ts
- www/src/docs/api/ReferenceDot.ts
- www/src/docs/api/Line.ts
- storybook/stories/API/shapes/Sector.stories.tsx
🚧 Files skipped from review as they are similar to previous changes (3)
- storybook/stories/API/cartesian/ReferenceLine.stories.tsx
- www/src/docs/api/Area.ts
- storybook/stories/API/cartesian/ReferenceDot.stories.tsx
⏰ 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)
- GitHub Check: Build, Test, Pack
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
storybook/stories/API/props/YAxisProps.ts (1)
6-7: LGTM! Correct fix for copy-paste error.The rename from
xAxisIdtoyAxisIdcorrectly fixes the property name for the YAxis component. This was clearly a copy-paste error where the XAxis property name was incorrectly used.www/src/docs/api/Tooltip.ts (1)
1-254: No issues found—documentation change is accurate.The verification confirms that
viewBox,coordinate,payload, andlabelare intentionally excluded from the publicTooltipPropsAPI. The Tooltip component usesOmit<DefaultTooltipContentProps, PropertiesReadFromContext>(line 67) to explicitly remove these properties, which are instead managed internally via context and Redux state selectors. The documentation removal is correct and reflects the actual component API.
|
Oops conflicts |
0328681 to
0b4dee4
Compare
Description
Some of these we removed in 3.0 and some I don't know.
Related Issue
#6069
#6582
Summary by CodeRabbit