Repository navigation
Feat/dialog cont - #945
Feat/dialog cont#945SharonStrats wants to merge 22 commits into
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
Critical access-control defects allow last-owner demotion to pass validation, leave excluded contents permissions intact, and let stale refreshes overwrite another resource’s drafts.
3 open issues
6 resolved since last review
Unchanged permission rows enable unintended saves Confirmation can save canceled drafts to a different resource Authenticated owner coverage ignores per-entry scope Saving inherited permissions leaves stale ACL context Owner check only considers the first authenticated entry Mixed-role drafts can block saves despite existing owner access
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…nd preserve contents revocations when General Access narrows from folder-and-contents to folder-only.
…istry@5.1.3-2) (latest: rdflib@2.4.1)
There was a problem hiding this comment.
🟡 Changes recommended
Critical ACL defects can leave access enabled despite No Access selections, revoke unrelated grants, and apply changes twice during concurrent saves.
5 open issues
Recheck save eligibility after awaiting updateComplete · New Do not skip No Access grants when their scope changes · New Preserve authorization identity when planning grant edits · New Retain only failed grants when matching pending additions · New Prevent dialog content from exceeding narrow viewport width · New
3 resolved since last review
Review effort: Balanced
Refactor access control logic to improve error handling and condition checks. Update styles for confirmation content. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…istry@5.1.3-2) (latest: rdflib@2.4.1)
Prompt: fix the pr feedback but also please make mixed permissions readonly, with hover to say they need to be updated in the app that created them. SolidOS not not support conditional statements Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
| (this.authenticatedAccessEntries.length | ||
| ? this.authenticatedAccessEntries.some(entry => isOwnerOrAdmin(entry.role)) | ||
| : isOwnerOrAdmin(this.authenticatedAccessRoleValue)) |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>


Summary
Improves the access-control modal’s sharing, accessibility, and General Access behavior.
Changes