Skip to content

Dataviews: Delete the isDestructive prop from the actions#72111

Merged
oandregal merged 3 commits intoWordPress:trunkfrom
epeicher:update/dataviews-remove-is-destructive-action-type
Oct 8, 2025
Merged

Dataviews: Delete the isDestructive prop from the actions#72111
oandregal merged 3 commits intoWordPress:trunkfrom
epeicher:update/dataviews-remove-is-destructive-action-type

Conversation

@epeicher
Copy link
Copy Markdown
Contributor

@epeicher epeicher commented Oct 6, 2025

What?

Deletes the isDestructive prop from the dataviews Actions API as it is not required.

Why?

The isDestructive prop is used to set a red color to the primary action's icon, but that is not required according to the new design guidelines, as that will be included in the rendered Modal, that is created by the consumer. So that prop is not required anymore.

How?

Reviewing all the occurrences of the isDestructive prop from the code and the docs.

Testing Instructions

  1. Apply the change of this branch
  2. Run npm run storybook:dev
  3. Go to the dataviews component, and find occurrences of the isDestructive prop
  4. Find occurrences of that prop in any of the Markdown documentation files

@epeicher epeicher marked this pull request as ready for review October 6, 2025 16:58
@epeicher epeicher requested a review from oandregal as a code owner October 6, 2025 16:58
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 6, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: epeicher <epeicher@git.wordpress.org>
Co-authored-by: oandregal <oandregal@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@epeicher epeicher marked this pull request as draft October 6, 2025 17:11
@epeicher epeicher marked this pull request as ready for review October 6, 2025 17:14
@oandregal oandregal added [Type] Enhancement A suggestion for improvement. [Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond labels Oct 8, 2025
@oandregal oandregal enabled auto-merge (squash) October 8, 2025 06:37
@oandregal oandregal merged commit c03c118 into WordPress:trunk Oct 8, 2025
67 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.9 milestone Oct 8, 2025
@epeicher epeicher deleted the update/dataviews-remove-is-destructive-action-type branch October 8, 2025 08:47
sidharthpandita1 pushed a commit to sidharthpandita1/gutenberg that referenced this pull request Oct 10, 2025
…72111)

Co-authored-by: epeicher <epeicher@git.wordpress.org>
Co-authored-by: oandregal <oandregal@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants