fix(scorecard): fix tooltip display and error title clipping for some languages#2352
Conversation
Changed Packages
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
7cf4a92 to
0716baf
Compare
HusneShabbir
left a comment
There was a problem hiding this comment.
/lgtm, works as expected
|



User description
Hey, I just made a Pull Request!
Fixes
Description
This PR addresses two issues affecting Scorecard metric cards:
Screenshots
Entity overview page - French
Homepage - French
Screen recording
Screen.Recording.2026-02-19.at.11.30.37.AM.mov
✔️ Checklist
PR Type
Bug fix
Description
Fix tooltip display positioning and error title text clipping
Refactor center label rendering into reusable component
Improve error state handling with dynamic text layout
Replace custom tooltip with new ErrorTooltip component
Reorder translation keys for consistency
Diagram Walkthrough
File Walkthrough
report-alpha.api.md
Reorder translation keys for consistencyworkspaces/scorecard/plugins/scorecard/report-alpha.api.md
emptyStatesectionpermissionRequiredsectionthresholdssectionErrorTooltip.tsx
New ErrorTooltip component for error displayworkspaces/scorecard/plugins/scorecard/src/components/Common/ErrorTooltip.tsx
ResponsivePieChart.tsx
Add error state tooltip triggering mechanismworkspaces/scorecard/plugins/scorecard/src/components/ScorecardHomepageSection/ResponsivePieChart.tsx
coordinateproperty toPieTooltipContentPropsinterfaceisErrorStateandsetIsInsidePieCirclepropstriggering
Scorecard.tsx
Refactor tooltip and error label rendering logicworkspaces/scorecard/plugins/scorecard/src/components/Scorecard/Scorecard.tsx
ScorecardCenterLabelcomponentErrorTooltipcomponentuseLayoutEffectEmptyStatePanel.tsx
Update tooltip handling and add hover statesworkspaces/scorecard/plugins/scorecard/src/components/ScorecardHomepageSection/EmptyStatePanel.tsx
CustomTooltipwithErrorTooltipcomponentCenterLabelfor hover detectioncursor: pointerstyle to label for better UX