-
Notifications
You must be signed in to change notification settings - Fork 965
23302 manage user consent through yoast ai #23306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
leonidasmi
merged 40 commits into
trunk
from
23302-manage-user-consent-through-yoast-ai
Jun 24, 2026
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
4dfb412
Refactor the Request class to specify the http method to use
pls78 e82cdd1
Pass the method instead of the $is_post bool
pls78 a5158d6
Refactor to use the http method passed as parameter
pls78 1d5cb47
Mirror the changes made in the main folder structure
pls78 50e815a
Update tests
pls78 d0de53e
Store user consent in Yoast AI
pls78 eb22e0d
Mirror changes in the main folder structure
pls78 a2074da
Update tests
pls78 750b386
Catch all the possible remote exceptions
pls78 4b5e405
Remove the try-catch block around revoking consent as we're now defer…
pls78 9716e36
Add the admin url to allow the fetching of links from the store
pls78 9aa22ee
Duplicate the changes here in the old ai folders structure
pls78 232ae76
Remove (broken) error handling as we want this to silently fail (but …
pls78 65a7be0
Add anything needed to get the admin url
pls78 f482cda
Initialize the adminUrl name
pls78 2b803a0
Refactor the component to get a store name
pls78 17bc00b
Pass along the response from the remote fetch
pls78 03a4c9a
Show a generic error when anything goes wrong
pls78 f512b87
Update the consent button regardless of errors
pls78 320e582
We want to show both the error and the disabled consent button
pls78 262266c
Remove unused class
pls78 f513f81
Uniform $user_id type to be int
pls78 2628006
Mirror the changes in the main folder structure
pls78 8a804e6
Update tests
pls78 a82b8c3
Re-instate the PSR-3 logger
pls78 194598e
Mirror the changes in the main folder structure
pls78 ccdb941
Update tests
pls78 1f8ba61
Fix cs
pls78 2372e99
Remove unused component
pls78 694f5b1
Covers the case where a user is not found
pls78 1f3a00b
Update unit tests
pls78 7004bb6
Adapt to the new AI API contract
pls78 8781ad6
Invalidate tokens regardless of the remote status
pls78 25b38a6
Use the real error code/stsatus
pls78 c90b8f8
Mirror the changes in the main folder structure
pls78 c6ac321
Adapt unit tests
pls78 9dc6aa5
Fix unit test
pls78 b8fb8de
Make the GenericAlert component accept the className parameter
pls78 d40bbeb
Merge branch 'trunk' into 23302-manage-user-consent-through-yoast-ai
leonidasmi c4a7159
Fix lintJS
leonidasmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably needs some margin between the text and the alert. Can we get an approval from the UX team for this?