| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. Co-authored-by: Malayt04 <malaytiwari@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Sorry, something went wrong.
Fixed - Make title generation and content classification UI react to current editor state. Co-authored-by: Malayt04 <malaytiwari@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>
| Back | FazBrowse Home | New Git URL |
What?
Closes #579
Fixes two stale editor state issues in the AI experiment UI:
Why?
Both issues came from reading editor state with select() directly in component render paths instead of subscribing reactively with useSelect().
In title generation, the toolbar could keep showing Generate or Regenerate based on the title value from the initial render, even after the title changed.
In content classification, the suggest button could remain disabled or enabled based on stale content, and the generate action could submit older content instead of the latest editor state.
How?
This PR updates the affected components and hook to use reactive editor store reads where UI state depends on live editor data.
Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5
Used for: Implementing the component fixes
Testing Instructions
Screenshots or screencast
Title generation
Before
Title-before.movAfter
Title-after.movContent classification suggestions
Before
Suggest-terms-after.movAfter
Suggest-terms-before.movChangelog Entry