[WEB-3808] fix: replaced the profile charts with propel components#6892
[WEB-3808] fix: replaced the profile charts with propel components#6892sriramveeraghanta merged 1 commit intopreviewfrom
Conversation
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
WalkthroughThe changes update how chart components compute their color fills and adjust their configuration. In the BarChart component, the fill property is now assigned conditionally based on whether it is a function. The type definitions for chart properties have been expanded to support dynamic fill values and custom legends. Additionally, the profile overview components have been revised to replace legacy graph components with new chart components, update data mappings, and simplify tooltip and color logic. Changes
Sequence Diagram(s)sequenceDiagram
participant BC as BarChart Component
participant Bar as Bar
participant Payload as shapeProps.payload
BC->>Bar: Iterate over bars for rendering
alt bar.fill is a function
BC->>Bar: Call bar.fill(Payload)
Bar-->>BC: Return dynamic fill color
else
BC-->>Bar: Use bar.fill value directly
end
BC->>Bar: Render bar with computed fill
sequenceDiagram
participant PSD as ProfileStateDistribution
participant Helper as capitalizeFirstLetter
participant PC as PieChart Component
PSD->>Helper: Format group.state_group
Helper-->>PSD: Return formatted name
PSD->>PC: Pass mapped data (name, id, key, color)
PC-->>PSD: Render chart with innerRadius, margins, and tooltip/label settings
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Definitions (2)web/core/components/profile/overview/priority-distribution.tsx (2)
web/core/components/profile/overview/state-distribution.tsx (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (8)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Replaced the priority and state distribution charts on the profile page with propel components.
References
[WEB-3808]
Summary by CodeRabbit
New Features
Refactor