Repository navigation
handle container access for folder only and container only - #941
Open
SharonStrats wants to merge 6 commits into
Open
SharonStrats wants to merge 6 commits into
SharonStrats wants to merge 6 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…istry@5.1.3-0) (latest: rdflib@2.4.1)
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Access-change ordering and cancelled additions can incorrectly revoke existing permissions, and an existing test still expects the previous operation order.
2 open issues
What changed in this PR
This PR extends the access-control modal to manage separate permissions for a folder and its contents.
Changes:
- Splits combined grants into independently editable folder and contents roles and validates overlapping scopes.
- Updates grant ordering and scope-specific revocation, with tests for the new flows.
- Adjusts shared-access controls for smaller screens.
| File | Description |
|---|---|
test/components/access-control-modal.test.ts |
Adds tests for split grants, overlap validation, and folder-only revocation. |
src/components/access-control-modal/buildAccessChanges.ts |
Reorders pending grants and scope transitions. |
src/components/access-control-modal/applyAccessChanges.ts |
Uses folder-specific revocation for removals and scope changes. |
src/components/access-control-modal/AccessControlSharedAccess.ts |
Wraps scope controls for responsive layout. |
src/components/access-control-modal/AccessControlSharedAccess.styles.css |
Adds a mobile layout for shared-access rows. |
src/components/access-control-modal/AccessControlModal.ts |
Adds grant splitting, independent row identifiers, and overlap validation. |
Review effort: Balanced
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This branch has not been deployed
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.


Improve advanced access-control editing for containers while preserving independent
folder and contents permissions.
This update makes the access-control modal better reflect the underlying ACL
authorizations and avoids destructive revoke-then-grant behavior when changing
container scopes.
Changes
Mixed permissionswhen a subject has different roles acrossauthorizations instead of incorrectly merging them.
planChangeContainerAccessfor existing container scope changes sotransitions are planned atomically.
Advanced sharing.
to another resource.