Skip to content

Refactor/readspeaker - #50

Merged
FreakyWizard merged 6 commits into
mainfrom
refactor/readspeaker
Jul 24, 2026
Merged

Refactor/readspeaker#50
FreakyWizard merged 6 commits into
mainfrom
refactor/readspeaker

Conversation

@FreakyWizard

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings July 20, 2026 12:38
@FreakyWizard
FreakyWizard requested a review from a team as a code owner July 20, 2026 12:38

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

This PR refactors the ReadSpeaker hook configuration to support a new snake_case config key (with a backwards-compatible fallback) and updates documentation related to Tolkie setup.

Changes:

  • Update ReadSpeaker hook to read components.readSpeaker.automatically_add_to_h1 with fallback to legacy automaticallyAddToH1.
  • Rename the ReadSpeaker config key in config/components.php to automatically_add_to_h1.
  • Update README Tolkie instructions to include a CSP allowance step.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Hooks/ReadSpeaker.php Reads the new config key (with fallback), but currently includes a blocking debug call.
config/components.php Renames ReadSpeaker config key to snake_case.
README.md Adds CSP guidance step for Tolkie usage instructions.

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

Comment thread src/Hooks/ReadSpeaker.php Outdated
Comment thread config/components.php
@FreakyWizard
FreakyWizard merged commit aa93630 into main Jul 24, 2026
3 of 6 checks passed
@FreakyWizard
FreakyWizard deleted the refactor/readspeaker branch July 24, 2026 05:29
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.

4 participants