Skip to content

feat: implement ability to select extra columns for tooltips - #149

Merged
ralvarez-dg merged 1 commit into
mainfrom
task/fix-map-not-showing-variables
Aug 26, 2026
Merged

feat: implement ability to select extra columns for tooltips#149
ralvarez-dg merged 1 commit into
mainfrom
task/fix-map-not-showing-variables

Conversation

@timothygachengo

Copy link
Copy Markdown
Contributor

Description

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (BREAKING CHANGE:)
  • Refactor / chore (refactor: / chore:)
  • Documentation update (docs:)

Affected package(s)

  • @devgateway/dvz-wp-commons
  • @devgateway/create-wp-customizer
  • @devgateway/upgrade-wp-customizer
  • plugins/wp-react-blocks-plugin
  • plugins/wp-react-custom-api
  • plugins/wp-react-custom-rest-menu
  • Other plugin / theme / Docker (no changeset needed)

Checklist

  • PR title follows Conventional Commits format
  • pnpm build passes locally
  • No hardcoded credentials, internal URLs, client names, or PII introduced
  • Any new dependency has a GPL-2.0-or-later-compatible license (MIT, BSD, Apache-2.0, ISC are all compatible)

Copilot AI 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.

Pull request overview

Adds support in the Map block editor for selecting additional dataset fields that should be available as tooltip template variables (without making them full dimensions), and persists that selection into the block’s saved markup.

Changes:

  • Introduces a new extraTooltipColumns block attribute for the map block.
  • Adds an “Extra Tooltip Columns” inspector panel (non-CSV mode) with checkboxes for available dimensions.
  • Persists extraTooltipColumns to the frontend via a new data-extra-tooltip-columns attribute and surfaces them in the tooltip variable guide.

Reviewed changes

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

File Description
plugins/wp-react-blocks-plugin/blocks/map/Tooltips.js Adds UI to select extra tooltip columns and displays them as available tooltip variables.
plugins/wp-react-blocks-plugin/blocks/map/index.js Defines the new extraTooltipColumns block attribute with a default empty array.
plugins/wp-react-blocks-plugin/blocks/map/BlockSave.js Serializes extraTooltipColumns into the saved block markup as a data attribute.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

<Text size="xSmall" style={{ fontSize: '12px', marginTop: '4px'}}>MEASURES</Text>
{allMeasures &&
allMeasures.map((m) => (
<PanelRow key={m}>
@ralvarez-dg
ralvarez-dg merged commit 578575b into main Aug 26, 2026
5 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