feat(dashboard): implement boolean conditional formatting#36338
Conversation
|
Running CI 🤞 |
|
Something is broken; |
…an conditional formatting
…ntrolPanel of plugin-chart-table
…in getColorFormatters
… TableChat and FormattingPopoverContent
0fa5b13 to
8fb4ca3
Compare
Thanks! I have just rebase the current branch on the master, we can try again with the CI |
|
Rerunning CI 🤞 |
|
🎪 Showtime deployed environment on GHA for 8fb4ca3 • Environment: http://35.92.143.134:8080 (admin/admin) |
|
Hi @edison-lhk! Something was wrong with the test environment, so I tested it locally. The only issue I saw was that the "is not null" operator wasn't fitting into the drop-down list. |
|
CodeAnt AI is reviewing your PR. |
|
Thanks a lot @SBIN2010! I have fixed this issue and it looks like this now! |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
SBIN2010
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the PR @edison-lhk!
Co-authored-by: Morris <morrisho215215@gmail.com>
Co-authored-by: Morris <morrisho215215@gmail.com> (cherry picked from commit eabb5bd)
Co-authored-by: Morris <morrisho215215@gmail.com> (cherry picked from commit eabb5bd)
- theming.mdx: document ECharts array property overrides (PR #37965) — array values like color palettes are fully supported and replaced entirely (not merged); adds Array Property Overrides section with color palette example - configuring-superset.mdx: document PKCE support for database OAuth2 (PR #37067) — add PKCE section under Custom OAuth2 with code_challenge_method config and when to use it - cache.mdx: document ETag support for thumbnail/screenshot endpoints (PR #37663) — conditional GET with If-None-Match to avoid downloading unchanged images - exploring-data.mdx: document SQL Lab UX improvements (PRs #37298, #37694, #37756) — treeview table browser, Ctrl+F find widget, resizable panels; also adds time range natural language expressions section (PR #37098) - creating-your-first-dashboard.mdx: document Table chart features — boolean and categorical conditional formatting (PRs #36338, #37756), gradient toggle (PR #36280), HTML cell rendering with security note (PR #37685), column header tooltips from dataset descriptions (PR #37179), Display Controls modal in dashboard view (PR #36062) - databases.json: update StarRocks supports_catalog and supports_dynamic_catalog to true — the engine spec (PR #37026) already implemented full catalog support with get_catalog_names(), get_default_catalog(), and SHOW CATALOGS; the committed JSON was stale and did not reflect this Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Morris <morrisho215215@gmail.com>


User description
SUMMARY
This PR introduces boolean conditional formatting to the table chart’s conditional formatting configuration.
Until now, conditional formatting only worked for numeric and string columns. With this update, boolean columns are also supported through the following operators:
isTrue: highlight cells with a value oftrueisFalse: highlight cell with a value offalseisNull: highlight empty ornullcellsisNull: highlight non-empty cellsThese enhancements would make conditional formatting more flexible and easier to use, especially for tables that include different data types.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screencast_from_2025-11-29_20-20-28_online-video-cutter.com.mp4
TESTING INSTRUCTIONS
Manual Testing
isTrueoperator — cells withtrueshould be highlighted.isFalseoperator — cells withfalseshould be highlighted.isNulloperator — empty/null cells should be highlighted.isNotNulloperator — non-empty cells should be highlighted.Automated Tests:
ADDITIONAL INFORMATION
CodeAnt-AI Description
Add boolean-aware conditional formatting to table charts
What Changed
Impact
✅ Clearer true/false status in tables✅ Easier highlighting of boolean columns✅ Consistent styling of empty/null cells💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.