Skip to content

Feat/dialog cont - #945

Open
SharonStrats wants to merge 22 commits into
stagingfrom
feat/dialog-cont
Open

SharonStrats wants to merge 22 commits into
stagingfrom
feat/dialog-cont

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

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.

SharonStrats and others added 2 commits December 4, 2026 14:56
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.
@SharonStrats
SharonStrats requested a balanced review from Copilot December 4, 2026 08:40

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 3 commits December 4, 2026 19:51
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>
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>

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
SharonStrats force-pushed the feat/dialog-cont branch 2 times, most recently from fbab79d to 131bbdb Compare December 4, 2026 09:31
@SharonStrats
SharonStrats requested a balanced review from Copilot December 4, 2026 09:31

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

Human assessment is needed because overlapping folder and contents scope changes can retain stale permissions or unintentionally broaden access.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Access Control: should always be an owner or admin Access Control: General Access also needs multiaccess for containers (advanced)

2 participants