feat: add PolarAngleAxis component storybook story#7243
Conversation
Adds comprehensive Storybook API story for PolarAngleAxis covering all props from the API docs, with a RadarChart (primary use case) and a RadialBarChart variant. Follows the Line.stories.tsx pattern with ResponsiveContainer, explicit args, and RechartsHookInspector. Closes recharts#3742 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR updates the PolarAngleAxis Storybook story by refactoring the existing API story to render the component within a RadarChart context with supporting polar components, and adds a new InRadialBarChart story variant that renders PolarAngleAxis within a RadialBarChart, providing dual rendering examples for the component's usage patterns. ChangesPolarAngleAxis Storybook Stories
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
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 #7243 +/- ##
=======================================
Coverage 89.07% 89.07%
=======================================
Files 539 539
Lines 41010 41010
Branches 5557 5558 +1
=======================================
Hits 36528 36528
Misses 4474 4474
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportBundle size has no change ✅ |
Summary
PolarAngleAxiscomponent following theLine.stories.tsxpatternAPIexport rendersPolarAngleAxisinside aRadarChart(the main use case) withsubjectDataand all sibling components (PolarGrid,PolarRadiusAxis,Radar) to show real-world interactionsInRadialBarChartexport demonstratesPolarAngleAxisin aRadialBarChartcontext withtype="number"axisPolarAngleAxisArgs(auto-generated bynpm run omnidoc) covering every prop from the API docs, with categories: General, Style, EventsResponsiveContainer,getStoryArgsFromArgsTypesObject, andRechartsHookInspectorconsistent with the established patternCloses #3742
Test plan
npm run omnidocto generatestorybook/stories/API/arg-types/PolarAngleAxisArgs.ts(auto-generated, gitignored)npm run storybookand navigate to Polar > PolarAngleAxis > API storyaxisLineTypebetweenpolygonandcircleto confirm axis line shape changesorientationbetweenouterandinnerto confirm tick label position changes🤖 Generated with Claude Code
Summary by CodeRabbit