Automattic / Automattic/jetpack

Add a preview for payment button blocks

Open
#40,468 1 comment 1 reaction 0 assignees View on GitHub
[Block] Payment Button [Block] Payment Buttons [Experiment] AI labels added [Feature] Earn Blocks [Plugin] Jetpack [Pri] Low [Status] Auto-allocated Earn Enhancement Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Quick summary

The payment button(s) blocks don't have a inserter preview, it would be nice if they did.

This was initially reported by @Gustavo-Hilario on paYJgx-5CF-p2

### Steps to reproduce

1. Open the post editor
2. Toggle the block inserter open
3. Search for payments button
4. Hover over the payments button block

### A clear and concise description of what you expected to happen.

Expected to see a preview of what the block looks like, probably the same as the core buttons preview

### What actually happened

The preview displayed a placeholder "No preview available"

![Image](https://github.com/user-attachments/assets/ba342beb-3851-42b7-aa2a-407ae8b3bc51)

### Impact

Some (< 50%)

### Available workarounds?

Yes, easy to implement

### If the above answer is "Yes...", outline the workaround.

You can just insert the block and then undo it.

### Platform (Simple and/or Atomic)

_No response_

### Logs or notes

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.