Repository navigation
Feat/dialog cont - #945
Feat/dialog cont#945
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Prompt: Position the information dialog near the button Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
Prompt: Help fix a problem with splitting the folder and contents permissions Co-authored-by: GPT-6.1 Terra <GPT-6.1-terra@openai.com>
There was a problem hiding this comment.
🟡 Changes recommended
Owner-scope validation can allow removal of the last folder owner, while grant consolidation can hide effective permissions.
8 open issues
Validate owner coverage separately for folder and contents · New Preserve all applicable grants when combining scope rows · New Retain recipient identity in grant and revoke error details · New Give the information dialog an accessible name · New Move mobile host styles outside the nested host rule · New Count write-locked owners when validating ownership · New Show scopes for individually scoped general-access grants · New Refresh grant baselines after saving without closing · New
What changed in this PR
This PR extends the access-control dialog with scoped General Access editing, owner validation, and improved dialog and mobile interactions.
Changes:
- Adds folder/content controls and owner/admin validation.
- Replaces Advanced-mode exit confirmation with a shared save/discard dialog.
- Updates responsive layouts, accessibility, error presentation, and tests.
| File | Description |
|---|---|
| test/components/access-control-modal/accessGrantDrafts.test.ts | Tests scoped grant grouping. |
| test/components/access-control-modal.test.ts | Expands validation, scope, and dialog tests. |
| src/lib/file-explorer/context.ts | Adds layout context. |
| src/components/file-explorer-provider/FileExplorerProvider.ts | Supplies environment layout. |
| src/components/file-explorer-header/FileExplorerHeaderControls.ts | Passes layout and updates mobile handling. |
| src/components/dialog/Dialog.ts | Adds accessible dialog names. |
| src/components/dialog/Dialog.stories.ts | Documents dialog titles. |
| src/components/access-control-modal/types.ts | Defines scoped entries and validation errors. |
| src/components/access-control-modal/AdvancedSharingExitConfirmation.ts | Adds save/discard confirmation. |
| src/components/access-control-modal/AdvancedSharingExitConfirmation.styles.css | Styles confirmation content. |
| src/components/access-control-modal/accessGrantDrafts.ts | Derives General Access scope entries. |
| src/components/access-control-modal/AccessControlSharedAccess.ts | Expands scope-control visibility. |
| src/components/access-control-modal/AccessControlModal.ts | Coordinates validation, scoped edits, and confirmation. |
| src/components/access-control-modal/AccessControlModal.styles.css | Updates mobile modal styling. |
| src/components/access-control-modal/AccessControlGeneralAccess.ts | Adds scoped controls and information dialogs. |
| src/components/access-control-modal/AccessControlGeneralAccess.styles.css | Styles scoped rows and responsive layouts. |
| src/components/access-control-modal/AccessControlErrors.ts | Updates validation and save-error presentation. |
| src/components/access-control-modal/AccessControlErrors.styles.css | Simplifies responsive error styling. |
| src/components/access-control-modal/AccessControlAddAccess.ts | Adds Advanced-toggle focus restoration. |
Review effort: Balanced
…istry@5.1.3-2) (latest: rdflib@2.4.1)
Prompt: A few different prompts based on the copilot feedback to address the issues Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
a45c285 to
56ceaef
Compare
…istry@5.1.3-2) (latest: rdflib@2.4.1)
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues can submit unintended permission changes, remove the last contents administrator, and persist canceled drafts or act on a replacement resource.
6 open issues
Authenticated owner coverage ignores per-entry scope · New Confirmation can save canceled drafts to a different resource · New Unchanged permission rows enable unintended saves · New Mixed-role drafts can block saves despite existing owner access · New Owner check only considers the first authenticated entry · New Saving inherited permissions leaves stale ACL context · New
8 resolved since last review
Preserve all applicable grants when combining scope rows Validate owner coverage separately for folder and contents Refresh grant baselines after saving without closing Show scopes for individually scoped general-access grants Count write-locked owners when validating ownership Move mobile host styles outside the nested host rule Give the information dialog an accessible name Retain recipient identity in grant and revoke error details
Review effort: Balanced
Refactor access control logic to handle authenticated entries and update access context. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Refactor access control logic to handle authenticated entries and update access context. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The save flow can write pending edits to the wrong resource because it captures the target URI and lifecycle only after awaiting, allowing a resource change during the wait to bypass the guards.
1 open issue
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Authorization-ID scope transitions rely on solid-logic planners unavailable for review and mocked in regression tests, requiring human integration validation of conditional ACL behavior and preservation of owner and unrelated-subject permissions.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Enhanced the condition to check for changes in subject URI and lifecycle version. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
7a71489 to
bde6235
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
dce1ecb to
6da3fd5
Compare
…istry@5.1.3-3) (latest: rdflib@2.4.1)
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved ownership-validation and transfer-ordering bugs can remove the last effective Owner/Admin access, leaving a resource or scope without an administrator.
9 open issues
Require reliable remaining owner coverage before downgrading · New Make owner/admin scope transfers atomic and replacement-safe · New Allow restoring an existing grant's elevated role · New Include scope in General Access control labels · New Block Advanced-exit saves after a save failure · New Dismiss queued confirmations using their assigned dialog ID · New Clear owner-validation errors when restoring container scope · New Make read-only explanations accessible without hover · New Use the header's mobile layout state for the modal · New
1 resolved since last review
Review effort: Max
| <span | ||
| class="access-role-readonly" | ||
| role="status" | ||
| title=${message} | ||
| > | ||
| Mixed permissions | ||
| <span class="sr-only">${message}</span> |
There was a problem hiding this comment.
We can have a look and maybe add the info icon
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>


Notes: there was a lot of complexity with the Advanced sharing and the newer feature from the specification conditions. Although we are not currently supporting conditions I wanted to make sure that if someone has conditions set on their access already, it handled it with some ease. The way it works is if there is just one set of access with conditions changes can be applied to the role and access to (folder only, contents only, folder and contents) can be changed and it will applied with the existing conditions, if an agent or agentGroup has mutliple rows of access with different conditions then it simply says "Mixed Permissions" and it's read only so it can not be changed and if you hover you see a message to say you need to use the system you created them in basically to update these.
I ran through many iterations of copilot feedback including the last one set as "Max"
Also, tested by e2e
Summary
Improves the access-control modal’s sharing, accessibility, and General Access behavior.
Changes