Skip to content

fix: normalize categories format in the tabbed component - #284

Merged
ralvarez-dg merged 2 commits into
mainfrom
fix/fix-tabbed-posts-configuration
Aug 26, 2026
Merged

fix: normalize categories format in the tabbed component#284
ralvarez-dg merged 2 commits into
mainfrom
fix/fix-tabbed-posts-configuration

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-ui-react
  • @devgateway/wp-react-lib
  • example only (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
  • pnpm --filter @devgateway/* typecheck passes
  • No hardcoded credentials, internal URLs, client names, or PII introduced
  • Any new dependency has an Apache-2.0-compatible license

Copilot AI lite review requested due to automatic review settings August 25, 2026 09:38
@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@devgateway/dvz-ui-react@de9636f
pnpm add https://pkg.pr.new/@devgateway/wp-react-lib@de9636f

commit: de9636f

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@devgateway/dvz-ui-react@8baa37b
pnpm add https://pkg.pr.new/@devgateway/wp-react-lib@8baa37b

commit: 8baa37b

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 fixes inconsistent categories input handling for the tabbedposts embeddable by normalizing array inputs into the comma-separated string format expected by the WordPress posts query layer.

Changes:

  • Remove JSON parse-based handling for data-categories in tabbedposts.
  • Normalize data-categories when provided as an array by converting it to a comma-separated string before passing it to PostProvider.

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

Copilot AI review requested due to automatic review settings August 25, 2026 09:41

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@ralvarez-dg
ralvarez-dg merged commit 659ad87 into main Aug 26, 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