Skip to content

feat(settings): make colorbrewer and custom gradient mutually exclusi…#247

Merged
Demonkratiy merged 2 commits into
microsoft:mainfrom
Demonkratiy:feat/gradient-color-sync
Jun 15, 2026
Merged

feat(settings): make colorbrewer and custom gradient mutually exclusi…#247
Demonkratiy merged 2 commits into
microsoft:mainfrom
Demonkratiy:feat/gradient-color-sync

Conversation

@Demonkratiy

Copy link
Copy Markdown
Contributor

…ve in the UI

  • colorbrewer takes precedence in initColors; gradient middle is custom-only

  • disable the 'Custom gradient colors' group while colorbrewer is enabled

  • remove dead resolveStartEndColors and unused imports

  • share the Visual_GradientMiddle key for the toggle and picker

…ve in the UI

- colorbrewer takes precedence in initColors; gradient middle is custom-only

- disable the 'Custom gradient colors' group while colorbrewer is enabled

- remove dead resolveStartEndColors and unused imports

- share the Visual_GradientMiddle key for the toggle and picker
Copilot AI review requested due to automatic review settings June 15, 2026 16:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR clarifies and enforces that Colorbrewer palettes and the custom gradient are mutually exclusive color sources in the TableHeatMap visual, making the active mode more obvious in the Format pane and ensuring gradient-middle is custom-gradient-only.

Changes:

  • Make initColors always prefer Colorbrewer when enabled, and treat gradient middle as a custom-gradient-only feature.
  • Disable the “Custom gradient colors” formatting group while Colorbrewer is enabled.
  • Remove dead resolveStartEndColors code and update tests/strings/changelog accordingly.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/visualTest.ts Replaces picker-sync test with coverage for Colorbrewer precedence, group disabling, and gradient-middle behavior.
stringResources/en-US/resources.resjson Renames the gradient group label and removes the old toggle-specific resource key.
src/visual.ts Removes picker-syncing and makes Colorbrewer take precedence over gradient-middle/custom gradient logic.
src/settings.ts Shares the “Gradient middle” label key and disables the custom gradient group when Colorbrewer is enabled.
src/heatmapUtils.ts Removes unused resolveStartEndColors helper and related imports.
pbiviz.json Removes version text from the visual display name.
CHANGELOG.md Updates release notes to reflect the UI/behavior changes around gradient middle and Colorbrewer vs custom gradient.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CHANGELOG.md
@Demonkratiy Demonkratiy merged commit 65335b5 into microsoft:main Jun 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants