Skip to content

Convert Group blocks to beehiiv sections - #200

Open
phpbits wants to merge 8 commits into
mainfrom
feature/19814726-group-block-support
Open

phpbits wants to merge 8 commits into
mainfrom
feature/19814726-group-block-support

Conversation

@phpbits

@phpbits phpbits commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • A WordPress Group block now becomes one beehiiv section holding its converted inner blocks, in their original order. Nested Groups become nested sections.
  • A Group with no convertible inner blocks produces no section. Section settings such as background color and padding stay at beehiiv defaults.
  • Posts first synced with this change keep their sections on later syncs. Posts synced before it keep omitting Group content, so their beehiiv layout does not change. A private post meta set on the first sync records which case applies.
  • Teamwork task 19814726.

Test plan

  • BlockConverterGroupTest covers the section, nesting, empty and mixed Groups, default settings, and the first-sync and re-sync gate
  • Full PHPUnit suite passes (99 tests)
  • Playwright spec block-conversion-framework.spec.js covers the PRD acceptance criteria
  • lint:js, lint:css and lint:php pass
  • Sync a post with a Group holding a heading and two paragraphs, and confirm it shows as one grouped section in the beehiiv editor
  • Edit and sync the post again, and confirm the section stays
  • Sync again a post that was already in beehiiv before this change, and confirm its layout is unchanged

Open questions left in the PRD: beehiiv's section nesting limit, and a Group inside Columns or another container.

Feature: newsletter-publishing/block-conversion/block-conversion-framework

Implements:
- US-006: A Group block becomes a beehiiv section holding its converted inner blocks

Posts first synced with this change keep sections on later syncs. Posts synced before it keep omitting Group blocks.
…ehiiv payload

beehiiv rejects a section inside a section, so the post failed to sync.
A Group inside a Group is now omitted with its inner blocks, and the editor
counts it in the omitted-block notice and marks it with the hidden icon.
…to beehiiv

A linked post turns Send to newsletter off, which hid the notice and the
hidden-block icon while its newsletter was still scheduled and syncing edits.
…the beehiiv sidebar is open

The marker no longer wraps the block in an extra element. The hidden-eye icon is
drawn on the block itself and stays visible without hovering.
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.

1 participant