Repository navigation
Feat/add role user access controls #749
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
Open
Infinite-Null
wants to merge
72
commits into
WordPress:develop
Choose a base branch
from
Infinite-Null:feat/add-role-user-access-controls
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,427
−215
Open
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
613527a
feat: add access control settings for features with REST API and UI i…
Infinite-Null 1ca4935
refactor: implement local state for role and user tokens in AccessCon…
Infinite-Null 013f157
refactor: replace Stack with Flex layout in AccessControlSettings and…
Infinite-Null c1f6160
refactor: replace FormTokenField with CheckboxControl for role select…
Infinite-Null c134007
feat: implement debounced server-side user search and persistent sele…
Infinite-Null a0da3db
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 1e6c0ae
feat: update access control settings input to use 40px default sizing…
Infinite-Null 4832b12
feat: enforce access control checks for experiment registration and u…
Infinite-Null bd2ba2a
feat: restrict access control settings to non-admin features
Infinite-Null 615d44b
refactor: add type hinting to REST controller and simplify role verif…
Infinite-Null 25ba583
refactor: format AccessControlSettings conditional rendering for bett…
Infinite-Null 7f28d57
refactor: improve Yoda condition readability in user search query logic
Infinite-Null 3f11239
refactor: remove redundant user login check from access verification …
Infinite-Null d6ad4d7
refactor: clean up AccessControlSettings hook usage and implement log…
Infinite-Null c37c5bb
style: refactor code formatting and indentation in access control com…
Infinite-Null e26725c
fix: sync selected user display names and filter current selections f…
Infinite-Null 993bb99
refactor: reformat loop block in AccessControlSettings and update loc…
Infinite-Null f1e5478
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 51fa6bf
refactor: update AccessControlSettings layout to use CSS grid and the…
Infinite-Null 30bf0fd
refactor: simplify gridTemplateColumns formatting in AccessControlSet…
Infinite-Null e995019
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 40df60f
Add Advanced Settings toggle to Developer Tools menu (#842)
Infinite-Null e94080d
test: add e2e test for content summarization access controls and intr…
Infinite-Null e5c207c
test: add e2e test case for user-based access control in Content Summ…
Infinite-Null 2c1f94d
test: add integration tests for the roles-users REST controller
Infinite-Null bd767b6
refactor: standardize PHP coding style and update AI access control i…
Infinite-Null a84fb1a
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null de1d92c
feat: add settings import and export functionality to the AI develope…
Infinite-Null 1249daf
refactor: fix indentation and formatting in AI settings page component
Infinite-Null 2359164
refactor: apply codebase-wide coding standards and formatting improve…
Infinite-Null c391e6b
refactor: introduce register_infrastructure to decouple global WordPr…
Infinite-Null 6aec265
refactor: replace inline styles with CSS
Infinite-Null 0246755
docs: clarify AccessControlSettings user map seeding behavior and API…
Infinite-Null 45a14d3
feat: wrap AI settings page with RolesUsersProvider for improved acce…
Infinite-Null 55b2b1b
feat: add wpai_user_has_role_access filter to user role verification …
Infinite-Null cb3fbda
fix: update docblock type hint for current_user parameter to \WP_User
Infinite-Null 3dcf3ac
test: add integration tests for user and role restrictions in current…
Infinite-Null e052399
refactor: consolidate and modernize Roles_Users_Controller integratio…
Infinite-Null 08e1d30
test: update user deletion to target specific test user ID instead of…
Infinite-Null a603c6c
refactor: move RequestUtils import to the top level in settings.spec.js
Infinite-Null ade4fec
test: verify success snackbar and blur input field after saving acces…
Infinite-Null 831ea51
fix: sanitize feature access settings
Infinite-Null 08d2caf
feat: add validation and sanitization callbacks for feature roles and…
Infinite-Null 4ec1a4f
refactor: remove unnecessary Fragment wrapper from AccessControlSetti…
Infinite-Null 8f8eab9
fix: remove conditional spinner from save button to prevent layout shift
Infinite-Null 2b786d1
test: add registration tests and cleanup for roles and users settings
Infinite-Null e51cd85
feat: reset unrelated changes
Infinite-Null 6062b1f
chore: update @since version tags to x.x.x in Settings_IO_ControllerTest
Infinite-Null 5841ce5
refactor: reset unrelated changes
Infinite-Null ad722d6
chore: remove unrealated changes
Infinite-Null bedff1a
refactor: simplify ability unregistration in HelpersTest
Infinite-Null 72b03ec
test: add helper to clear feature access settings and integrate into …
Infinite-Null b8205a5
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null b0e10f8
Merge branch 'develop' into feat/add-role-user-access-controls
jeffpaul 0fa70ce
feat: restrict access for subscribers and contributors, and extend ac…
Infinite-Null f63e445
refactor: simplify formatting of FEATURES_BY_SETTING map definition
Infinite-Null 6d4f76b
test: restrict subscriber and contributor access to features and excl…
Infinite-Null f08df20
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null d3312b2
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 7f2ab27
Merge branch 'develop' into feat/add-role-user-access-controls
dkotter cf0e6ef
refactor: centralize access control and feature registration in Abstr…
Infinite-Null d64e926
feat: set default feature access control roles to administrator, edit…
Infinite-Null 048c2a2
refactor: remove ID fallback parsing from label in AccessControlSettings
Infinite-Null 5af7b77
refactor: separate access control settings into a distinct option gro…
Infinite-Null aac5d44
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 994dee4
style: format declare strict types and fix whitespace across experime…
Infinite-Null d635f1c
test: set current user as administrator in integration test setups an…
Infinite-Null e0be34f
refactor: restrict default feature roles to administrator and editor …
Infinite-Null 7fb8c98
feat: support including specific user IDs in user search and access c…
Infinite-Null 025541d
re-run test
Infinite-Null 2cf1b8a
re-run test
Infinite-Null bddea88
Merge branch 'develop' into feat/add-role-user-access-controls
Infinite-Null 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
refactor: clean up AccessControlSettings hook usage and implement log…
…ic to reset access control settings upon toggle
- Loading branch information
commit d6ad4d79bf213973e6916c41c53cd5b94792cd7c
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,9 @@ | ||
| <?php | ||
| /** | ||
| * REST controller for roles and users. | ||
| * | ||
| * @package WordPress\AI\REST | ||
| */ | ||
|
|
||
| declare( strict_types=1 ); | ||
|
|
||
|
|
||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.