Repository navigation
fix(gantt): prevent y-axis labels from being cut off - #39137
Conversation
Dynamically calculate left grid padding based on the widest category label width so long y-axis labels are no longer clipped.
Code Review Agent Run #4d05cfActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
…formProps.ts fix: remove label width clamp Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com>
…formProps.ts Previously, category labels were derived using a truthy check (`key ? String(key) : undefined`), which incorrectly treated valid falsy values like `0` and `false` as missing. This caused labels to not render and their widths to be excluded from grid padding calculation, leading to layout inconsistencies. Updated the logic to explicitly check for `null` and `undefined`, ensuring all valid values are preserved as labels. Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com>
Code Review Agent Run #f8a7d8Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #39137 +/- ##
=======================================
Coverage 80.14% 80.14%
=======================================
Files 2924 2924
Lines 172412 172425 +13
Branches 40031 40037 +6
=======================================
+ Hits 138176 138188 +12
- Misses 31651 31652 +1
Partials 2585 2585
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
AI assisted review points below... I think most of this is minor polish, but I'd agree with at least addressing the safeLabelWidth naming redundancy and consider adding a comment explaining the 0.62 constant added.
|
|
@tushardhawas the approach is right, but the formatting got mangled. The |
|
|
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thanks @rusackas @justinpark @michael-s-molina ! Cleaned this up and updated the branch:
|
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Code Review Agent Run #1bd139Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
Thank you! |
Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> (cherry picked from commit 8e69572)
SUMMARY
Fixes an issue where long y-axis labels in the Gantt chart were clipped and not fully visible.
The fix dynamically calculates the left grid padding based on the widest category label width, ensuring labels are not cut off regardless of length.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION