Skip to content

Feat/dialog cont - #945

Merged
SharonStrats merged 41 commits into
stagingfrom
feat/dialog-cont
Dec 5, 2026
Merged

SharonStrats merged 41 commits into
stagingfrom
feat/dialog-cont

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Added accessible titles and focus-safe behavior for dialogs.
  • Improved Advanced Sharing exit confirmation and lifecycle handling.
  • Added owner/access validation and clearer save errors.
  • Added responsive General Access layouts for desktop and mobile.
  • Added General Access information dialogs with accessible triggers.
  • Preserved folder and contents permissions when splitting or narrowing scopes.
  • Prevented stale access refreshes from replacing newer resource state.
  • Aggregated duplicate General Access grants by subject and scope.
  • Displayed mixed or conditional permissions as read-only.
  • Added hover guidance:

    This access has conditional permissions. Please update it in the app that created them.

  • Added accessibility and regression tests for the updated access-control flows.

SharonStrats and others added 8 commits December 4, 2026 06:08
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Owner-scope validation can allow removal of the last folder owner, while grant consolidation can hide effective permissions.

8 open issues
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

github-actions Bot and others added 3 commits December 4, 2026 01:19
Prompt: Add axe testing follow contacts pane

Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SharonStrats and others added 2 commits December 4, 2026 14:33
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The permission merge can leave broader Editor access intact when Viewer access is selected across three grants, and the scope controls lack recipient-specific accessible labels.

2 open issues

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical ordering and failure-guard flaw can remove the last contents owner when a replacement Owner grant fails, despite ownership validation passing.

1 open issue
2 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +197 to +203
<span
class="access-role-readonly"
role="status"
title=${message}
>
Mixed permissions
<span class="sr-only">${message}</span>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have a look and maybe add the info icon

SharonStrats and others added 2 commits December 5, 2026 22:29
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@SharonStrats
SharonStrats enabled auto-merge (rebase) December 5, 2026 12:55
@SharonStrats
SharonStrats disabled auto-merge December 5, 2026 12:56
@SharonStrats
SharonStrats merged commit 94a2141 into staging Dec 5, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Dec 5, 2026
@SharonStrats
SharonStrats deleted the feat/dialog-cont branch December 5, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

2 participants