Skip to content

Alive dev#264

Open
sdimunzio wants to merge 4 commits into
mainfrom
alive-dev
Open

Alive dev#264
sdimunzio wants to merge 4 commits into
mainfrom
alive-dev

Conversation

@sdimunzio

@sdimunzio sdimunzio commented Jun 29, 2026

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
  • No hardcoded credentials, internal URLs, client names, or PII introduced
  • Any new dependency has an Apache-2.0-compatible license

…rops

Previously read flat lowercase props from URL querystring (e.g. submitlabel,
list). Now read data-* prefixed props consistent with all other embeddables
(e.g. data-submit-label, data-list). Fixed newsletter submit() closure to
read props["data-list"] and props["data-tag"] directly.
Copilot AI review requested due to automatic review settings June 29, 2026 13:58
@sdimunzio sdimunzio self-assigned this Jun 29, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: fc2701f

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 refactors the showcase and newsletter embeddables to consume configuration via data-* props (intended for the postMessage-based embedding flow) instead of flat, lowercase props previously sourced from URL query parameters.

Changes:

  • Update showcase embeddable label/message props to read from data-* keys (e.g., data-success-message, data-submit-label).
  • Update newsletter embeddable to read list/tag and UI text from data-* keys; adjust submit payload accordingly.
  • Add a changeset describing the embeddable prop-source alignment.

Reviewed changes

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

File Description
packages/dvz-ui/src/embeddable/showcase/index.jsx Switches label/message props to data-* keys for embedding consistency.
packages/dvz-ui/src/embeddable/newsletter/index.jsx Reads config from data-* props and updates submit to use data-list/data-tag.
.changeset/postmessage-embeddables.md Documents the patch release and rationale for the embeddable prop changes.

Comment on lines 18 to 29
const {
status,
editing,
list,
placeholder = "enter your email address",
successmessage = "Thanks",
failuremessage = "Something didn't go well",
label = "Send",
tag,
"data-list": list,
"data-placeholder": placeholder = "enter your email address",
"data-success-message": successmessage = "Thanks",
"data-failure-message": failuremessage = "Something didn't go well",
"data-label": label = "Send",
"data-tag": tag,
email,
onChange
} = props
@pkg-pr-new

pkg-pr-new Bot commented Jun 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 2d00554

Comment thread package.json
"@changesets/cli": "^2.29.7"
},
"dependencies": {
"@devgateway/wp-react-lib": "link:packages/react-lib/wp-react-lib",

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.

Hello @sdimunzio We don't need @devgateway/wp-react-lib as a dependency in the root of the monorepo. @devgateway/dvz-ui-react already imports the wp-react-lib inside it as a dev dependency here:

"@devgateway/wp-react-lib": "workspace:*",

@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 52d3636

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