-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Title Optimization: improve error handling (#39340)
* Save the error object so we can use it to display the error message * Move error message to it's own component * Show the provided error message when the error is related to moderation * Use an error notice to show the errors * Show FairUsageNotice when the error is a quota exceeded one * Changelog * Use the QuotaExceededMessage component so we handle automatically the free and paid plan quotas * Support JSON error handling * Reuse the generic error message * Change code to trust the message provided by the error object, when available * Do not show retry button when the error will not go away * Include type suggestions
- Loading branch information
1 parent
7d84795
commit d6da724
Showing
2 changed files
with
72 additions
and
15 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/update-jetpack-ai-handle-errors-on-title-improvement-tool
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: other | ||
|
||
Title Optimization: properly handle errors and show the correct UI for each. |
This file contains 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