feat: modal & ai actions#2860
Open
Soare-Robert-Daniel wants to merge 5 commits into
Open
Conversation
| generatedHtml: string, | ||
| sourceBlocks: BlockProps<unknown>[] | ||
| ) => { | ||
| const plainText = generatedHtml.replace( /<[^>]+>/g, '' ).trim(); |
| @@ -0,0 +1,64 @@ | |||
| const stripTags = ( html ) => html.replace( /<[^>]+>/g, '' ).trim(); | |||
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 58810c5 is ready 🛎️!
|
Contributor
E2E TestsPlaywright Test Status: See serial and parallel matrix jobs Performance ResultsserverResponse: {"q25":393,"q50":424.8,"q75":426.4,"cnt":10}, firstPaint: {"q25":514.5,"q50":634.2,"q75":757.5,"cnt":10}, domContentLoaded: {"q25":3216.5,"q50":3280.65,"q75":3304,"cnt":10}, loaded: {"q25":3218.9,"q50":3282.7,"q75":3306.2,"cnt":10}, firstContentfulPaint: {"q25":3724,"q50":3765.45,"q75":3798.5,"cnt":10}, firstBlock: {"q25":14016.4,"q50":14090.4,"q75":14183.3,"cnt":10}, type: {"q25":26.42,"q50":28.13,"q75":29.85,"cnt":10}, typeWithoutInspector: {"q25":25.47,"q50":25.81,"q75":27.8,"cnt":10}, typeWithTopToolbar: {"q25":32.46,"q50":34.05,"q75":35.41,"cnt":10}, typeContainer: {"q25":16.11,"q50":16.38,"q75":18.13,"cnt":10}, focus: {"q25":118.19,"q50":122.64,"q75":123.3,"cnt":10}, inserterOpen: {"q25":36.51,"q50":37.01,"q75":37.46,"cnt":10}, inserterSearch: {"q25":12.28,"q50":12.48,"q75":12.84,"cnt":10}, inserterHover: {"q25":10.37,"q50":10.6,"q75":11.2,"cnt":20}, loadPatterns: {"q25":1503.14,"q50":1531.19,"q75":1615.16,"cnt":10}, listViewOpen: {"q25":202.87,"q50":212.08,"q75":224.93,"cnt":10} |
d2fa71f to
d3b83d6
Compare
Resolve conflicts integrating the multi-backend AI work (WP AI Client /
Connectors) with the content-ai toolbar/modal refactor:
- AI settings stay in the dedicated AI dashboard tab; ported the
multi-backend "WordPress AI"/Connectors panel, provider-status notices,
and legacy OpenAI-key fallback into AI.js.
- Editor toolbar gate now uses isAIBackendConfigured().
- Adapt prompt response consumers (modal, content-generator, block
generation) to the normalized {ok, content, usedTokens} contract; drop
the deleted ChatResponse type.
- Merge e2e specs/config and keep both server-side AI and captcha HTTP
stubs; dashboard specs cover the multi-backend states on the AI tab.
- Guard rest_sanitize_boolean inputs in toolbar-action sanitization.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Closes https://github.com/Codeinwp/otter-internals/issues/280
Summary
Screenshots
Test instructions
Checklist before the final review