Skip to content

Feat/dialog cont - #945

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

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

Conversation

@SharonStrats

Copy link
Copy Markdown
Collaborator

No description provided.

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.

Comment on lines +969 to +970
const changed = !previous || previous.role !== entry.role || previous.scope !== entry.scope
if (!changed || (entry.role === 'No Access' && (!previous || previous.role === 'No Access'))) return []
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