Skip to content

fix(deckgl): remove visibility condition in deckgl fill color - #42712

Open
MallikarjunaReddyN wants to merge 2 commits into
apache:masterfrom
MallikarjunaReddyN:fix/deckgl-fill-color-picker
Open

fix(deckgl): remove visibility condition in deckgl fill color#42712
MallikarjunaReddyN wants to merge 2 commits into
apache:masterfrom
MallikarjunaReddyN:fix/deckgl-fill-color-picker

Conversation

@MallikarjunaReddyN

Copy link
Copy Markdown
Contributor

SUMMARY

This PR fixes an issue where the Fill Color picker was not rendered in the Deck.gl GeoJSON chart controls.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot Bot added change:frontend Requires changing the frontend explore:colors Related to the color scheme in Explore viz:charts:deck.gl Related to deck.gl charts labels Aug 3, 2026

@bito-code-review bito-code-review Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #ffd628

Actionable Suggestions - 1
  • superset-frontend/plugins/preset-chart-deckgl/src/utilities/Shared_DeckGL.tsx - 1
Review Details
  • Files reviewed - 1 · Commit Range: 8fa4297..8fa4297
    • superset-frontend/plugins/preset-chart-deckgl/src/utilities/Shared_DeckGL.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ 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

AI Code Review powered by Bito Logo

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 65.43%. Comparing base (06628bb) to head (8399094).
⚠️ Report is 110 commits behind head on master.

Files with missing lines Patch % Lines
...reset-chart-deckgl/src/utilities/Shared_DeckGL.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #42712      +/-   ##
==========================================
- Coverage   65.43%   65.43%   -0.01%     
==========================================
  Files        2810     2810              
  Lines      159528   159529       +1     
  Branches    36410    36412       +2     
==========================================
  Hits       104380   104380              
- Misses      53102    53103       +1     
  Partials     2046     2046              
Flag Coverage Δ
javascript 71.56% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DamianPendrak DamianPendrak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a real issue, but removing visibility check makes it show in Polygon chart even when linear color scheme is selected.
I propose checking whether the control exists, it enables the visibility when there is no color scheme control:

visibility: ({ controls }) => !controls.color_scheme_type || isColorSchemeTypeVisible(controls, COLOR_SCHEME_TYPES.fixed_color),

@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 8399094
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a744edd58220500088a22b6
😎 Deploy Preview https://deploy-preview-42712--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@MallikarjunaReddyN

Copy link
Copy Markdown
Contributor Author

@DamianPendrak Good catch, thanks! I've updated the implementation to check for the existence of the color_scheme_type control:

  visibility: ({ controls }) =>
      !controls.color_scheme_type ||
      isColorSchemeTypeVisible(controls, COLOR_SCHEME_TYPES.fixed_color),

This keeps the existing behavior for Polygon charts while correctly enabling the control for GeoJSON charts, where color_scheme_type is not present.

@bito-code-review

bito-code-review Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #5dbe06

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 8fa4297..8399094
    • superset-frontend/plugins/preset-chart-deckgl/src/utilities/Shared_DeckGL.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ 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

AI Code Review powered by Bito Logo

default: PRIMARY_COLOR,
renderTrigger: true,
visibility: ({ controls }) =>
!controls.color_scheme_type ||

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a user-visible regression through an untested two-branch predicate, so the GeoJSON picker can disappear again or the Polygon picker can show for non-fixed schemes without a relevant Jest failure. Could we add a focused fillColorPicker.config.visibility test covering an absent color_scheme_type, fixed_color, and the non-fixed values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend explore:colors Related to the color scheme in Explore plugins size/XS viz:charts:deck.gl Related to deck.gl charts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants