edison-lhk opened a new pull request, #36338: URL: https://github.com/apache/superset/pull/36338
### SUMMARY <!--- Describe the change below, including rationale and design decisions --> This PR introduces boolean conditional formatting to the table chart’s conditional formatting configuration. Previously, conditional formatting was only available to numeric and string columns only. With this change, users can perform conditional formatting on boolean column with the following option: 1. `isTrue`: highlight cell with true value 2. `isFalse`: highlight cell with false value 3. `isNull`: highlight cell with null or N/A value (empty cell) 4. `isNull`: highlight cell without null or N/A value (non-empty cell) These 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 https://github.com/user-attachments/assets/2574f720-519b-4ca2-94d0-83665986c3de ### TESTING INSTRUCTIONS 1. Step-by-step instructions 2. Automated Tests: - `cd superset-frontend && npm run test` - Run specific unit tests added in this pr: `npm run test -- getColorFormatters && npm run test -- TableChart && npm run test -- FormattingPopoverContent` ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [x] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [x] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
