Skip to content

refactor: clean up code formatting and reset default map block attrib…#143

Merged
timothygachengo merged 2 commits into
mainfrom
defaults-removal
Jun 24, 2026
Merged

refactor: clean up code formatting and reset default map block attrib…#143
timothygachengo merged 2 commits into
mainfrom
defaults-removal

Conversation

@sdimunzio

Copy link
Copy Markdown
Contributor

…utes

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
  • A changeset has been added (pnpm changeset) for any change to a published package
  • 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 review requested due to automatic review settings June 24, 2026 12:07

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

This PR updates the WordPress “map” block registration, primarily by reformatting the module and adjusting several default attribute values used when a map block is first inserted (or when attributes are absent in saved content).

Changes:

  • Reformat imports and registerBlockType invocation for consistent spacing/style.
  • Reset/adjust multiple attributes.*.default values (notably dataSourceText, measures, and some label/title defaults).

Comment on lines 42 to 45
measures: {
type: "Array",
default: ["prevalenceSmokeAny"]
default: []
},
@timothygachengo timothygachengo merged commit 591f0ff into main Jun 24, 2026
1 check passed
@timothygachengo timothygachengo deleted the defaults-removal branch June 24, 2026 17:27
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.

4 participants