Skip to content

chore: add tolkie hooks - #49

Merged
FreakyWizard merged 12 commits into
mainfrom
feat/tolkie
Jul 20, 2026
Merged

chore: add tolkie hooks#49
FreakyWizard merged 12 commits into
mainfrom
feat/tolkie

Conversation

@FreakyWizard

@FreakyWizard FreakyWizard commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings July 20, 2026 11:00
@FreakyWizard
FreakyWizard requested a review from a team as a code owner July 20, 2026 11:00
@FreakyWizard
FreakyWizard requested a review from a team July 20, 2026 11:00
@FreakyWizard
FreakyWizard requested review from JasperS20, WybeBosch, Yannicvanveen, YvetteNikolov and laravdiemen and removed request for a team July 20, 2026 11:00
@FreakyWizard
FreakyWizard requested a review from a team as a code owner July 20, 2026 11:01

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

Adds a new WordPress hook integration for Tolkie within the brave-components package, conditionally registering the hook when a token is configured.

Changes:

  • Introduces Hooks\Tolkie to inject the Tolkie integration script in wp_footer.
  • Adds block render filters to append a Tolkie marker element after core heading and post-title blocks.
  • Registers the new hook from ComponentsServiceProvider when a Tolkie token is present.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/Hooks/Tolkie.php Adds the footer script tag and block-render marker injection for Tolkie.
src/ComponentsServiceProvider.php Conditionally registers the new Tolkie hook based on a configured token.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Hooks/Tolkie.php
Comment thread src/Hooks/Tolkie.php Outdated
Comment thread src/Hooks/Tolkie.php Outdated
Comment thread src/ComponentsServiceProvider.php Outdated
Comment thread config/components.php Outdated
Comment thread config/components.php Outdated
Comment thread config/components.php
@@ -37,4 +37,7 @@
'disable' => '',
'automaticallyAddToH1' => true,

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.

automaticallyAddToH1 => automatically_add_to_h1 👀

Kunnen we dit nog aanpassen met backwards compatibility

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da was nie mijn aanpassing! Maar wel cool om dat voor Tolkie toe te voegen ja :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die van readSpeaker pak ik op in een tweede pr

Comment thread src/ComponentsServiceProvider.php Outdated
Comment thread src/Hooks/Tolkie.php Outdated
mvdhoek1
mvdhoek1 previously approved these changes Jul 20, 2026
@FreakyWizard
FreakyWizard merged commit 5045bb2 into main Jul 20, 2026
@FreakyWizard
FreakyWizard deleted the feat/tolkie branch July 20, 2026 12:15
Comment thread src/ComponentsServiceProvider.php
@FreakyWizard FreakyWizard mentioned this pull request Jul 20, 2026
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.

6 participants