fix(treemap): remove gaps between chart nodes#40181
Conversation
Code Review Agent Run #60a1dcActionable 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 |
|
The PR comment file contains only 1 row of actual content (header row plus 1 data row). The suggestion about treemap border/gap constants appears to be the only comment in this PR. I'll analyze it and provide a code fix. transformProps.ts constants.ts |
|
Addressed the review note in c0d03ab: filtered, non-selected treemap leaves now use the same zero border/gap constants as default nodes, and the regression test covers the filtered state.\n\nValidation:\n- npm run test -- plugins/plugin-chart-echarts/test/Treemap/transformProps.test.ts\n- npm run lint -- plugins/plugin-chart-echarts/src/Treemap/transformProps.ts plugins/plugin-chart-echarts/test/Treemap/transformProps.test.ts\n- uvx pre-commit run --files superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts superset-frontend/plugins/plugin-chart-echarts/test/Treemap/transformProps.test.ts |
There was a problem hiding this comment.
Code Review Agent Run #60bd9f
Actionable Suggestions - 1
-
superset-frontend/plugins/plugin-chart-echarts/test/Treemap/transformProps.test.ts - 1
- Incomplete assertion for dimmed state · Line 78-107
Review Details
-
Files reviewed - 2 · Commit Range:
5ba60d6..c0d03ab- superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts
- superset-frontend/plugins/plugin-chart-echarts/test/Treemap/transformProps.test.ts
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
- Eslint (Linter) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.
Documentation & Help
c0d03ab to
1ce1060
Compare
|
Addressed the latest Bito review note in Validation:
|
Code Review Agent Run #1e4a27Actionable 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #40181 +/- ##
=======================================
Coverage 64.16% 64.16%
=======================================
Files 2591 2591
Lines 138162 138162
Branches 32048 32048
=======================================
+ Hits 88647 88650 +3
+ Misses 47986 47983 -3
Partials 1529 1529
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Friendly review ping: this PR is ready for maintainer review when you get a chance. Known status: 4 check(s) currently failing; I can follow up if review points to needed changes. Happy to adjust quickly if you want a different shape or narrower scope. |
|
Thanks for your contribution to the project. Could you please add before and after screenshots to the pull request description? |
|
Thanks, added a before and after visual section to the PR description with the gap/seam case and the flush rendering after this change. |
Summary
Before and after screenshots
Before: treemap nodes showed visible seams from border and gap spacing.
After: tiles render flush with zero border and gap spacing, including the filtered-node path covered by the regression test.
Testing
npm run test -- plugins/plugin-chart-echarts/test/Treemap/transformProps.test.tsnpm run lint -- plugins/plugin-chart-echarts/src/Treemap/constants.ts plugins/plugin-chart-echarts/test/Treemap/transformProps.test.tsuvx pre-commit run --files superset-frontend/plugins/plugin-chart-echarts/src/Treemap/constants.ts superset-frontend/plugins/plugin-chart-echarts/test/Treemap/transformProps.test.tsPartial fix for #36807: this addresses the visible gap between Treemap nodes. The sequential color behavior described in the issue appears to be separate and is left unchanged here to keep this PR focused.