Conversation
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
There was a problem hiding this comment.
Pull request overview
This PR refactors the post editor’s “Generate audio” checkbox to rely on @wordpress/data hooks within the GenerateAudio component, and removes the now-unused beyondwords/interactions Redux store to simplify state management.
Changes:
- Refactor
GenerateAudiofromwithSelect/withDispatchHOCs touseSelect/useDispatch, moving preselect + meta-read logic into the component. - Remove the
beyondwords/interactionsdata store (actions/reducer/selectors/registration) and stop registering it at Core init. - Adjust/clarify preselect logic and session-override behavior around setting
beyondwords_generate_audio.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Core/index.js | Stops registering the removed interactions store. |
| src/Core/Interactions/index.js | Deletes interactions store registration entrypoint. |
| src/Core/Interactions/store/index.js | Deletes the interactions store definition (createReduxStore). |
| src/Core/Interactions/store/actions.js | Deletes actions for the interactions store. |
| src/Core/Interactions/store/reducer.js | Deletes reducer for the interactions store. |
| src/Core/Interactions/store/selectors.js | Deletes selectors for the interactions store. |
| src/Component/Post/GenerateAudio/index.js | Converts component to hooks-based selection/dispatch and in-component preselect/meta logic. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ess-generate-audio-component-to-improve
This pull request refactors how the "Generate audio" checkbox state is managed in the post editor. It removes the custom
beyondwords/interactionsRedux store in favor of relying solely on post meta and editor state, simplifying state management and reducing complexity. The logic for preselecting and updating the checkbox is now handled directly within theGenerateAudiocomponent using React hooks.