Repository navigation
feat: add BlockComponents to render registered blocks as Blade components - #112
Merged
Merged
Conversation
YvetteNikolov
requested review from
Rovasch,
ShunLuk,
SimonvanWijhe,
dtakken,
ictbeheer,
mvdhoek1 and
rivanuff
October 1, 2026 19:46
|
Coverage report for commit: 1049fc4 Summary - Lines: 0.27% | Methods: 0.71%
🤖 comment via lucassabreu/comment-coverage-clover |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Coverage report for commit: e3c040d Summary - Lines: 0.27% | Methods: 0.71%
🤖 comment via lucassabreu/comment-coverage-clover |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
YvetteNikolov
requested review from
FreakyWizard,
JasperS20,
WybeBosch,
Yannicvanveen and
laravdiemen
and removed request for
a team
October 1, 2026 19:47
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Static blocks, alias collisions, unavailable-block fallback, and nested block context require correction.
Review effort: Balanced
Findings: 4
Open (4)
What changed in this PR
Adds Blade components for rendering registered WordPress blocks.
Changes:
- Registers block aliases during WordPress initialization.
- Converts Blade attributes and slots into
render_block()input. - Applies default block-variation attributes.
| File | Description |
|---|---|
src/Components/BlockComponent.php |
Implements block rendering. |
src/BlockComponents.php |
Registers Blade aliases. |
config/hooks.php |
Enables the new hook. |
src/Theme.php |
Removes whitespace. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
laravdiemen
previously approved these changes
Oct 5, 2026
laravdiemen
left a comment
Contributor
There was a problem hiding this comment.
Eigenlijk vind ik het meer een backend PR voor de review maar ik ben wel een voorstander van de functionaliteit
Yannicvanveen
previously approved these changes
Oct 5, 2026
YvetteNikolov
dismissed stale reviews from Yannicvanveen and laravdiemen
via
October 5, 2026 07:34
1049fc4
SimonvanWijhe
approved these changes
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Met deze change kunnen we nu gemakkelijke al onze server-side rendered blokjes gebruiken in Blade:
<x-block-{namespace}-{name}>Bijvoorbeeld een collapse nodig in je Blade template? Kun je gemakkelijk toevoegen met dit:
Banner nodig op je
search.blade.phppagina? Doe dit:Hang samen met deze PR in Yard Gutenberg https://github.com/yardinternet/plugin-yard-gutenberg/pull/104/changes#diff-b62e72f06eb91477cd58fa1e9e14a4434a5ef664eed48c78a1ea4e65421d7bea en deze PR in Brave yardinternet/brave#188