Skip to content

Access policies permissions improve select ux#26410

Merged
rijkvanzanten merged 10 commits intodirectus:mainfrom
thanhle98:access-policies-permissions-improve-select-ux
Jan 7, 2026
Merged

Access policies permissions improve select ux#26410
rijkvanzanten merged 10 commits intodirectus:mainfrom
thanhle98:access-policies-permissions-improve-select-ux

Conversation

@thanhle98
Copy link
Contributor

Scope

What's changed:

image
  • Problem 1: User has to reopen the modal repeatedly when adding multiple collections
    Fix: Keep modal open after each addition

  • Problem 2: Added collections disappear from list, causing a distracting reorder flash
    Fix: Disable added items in dropdown instead of removing them

image

Potential Risks / Drawbacks

  • UX behavior change (modal no longer auto-closes)

Tested Scenarios

  • User can select multiple collections and click outside to close modal
  • Added collections appear disabled and cannot be re-added

Fixes #24241

@thanhle98
Copy link
Contributor Author

@licitdev Hi Ian, Thanh's here. could you help me check on this :D Thank you!

Copy link
Member

@licitdev licitdev left a comment

Choose a reason for hiding this comment

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

@thanhle98 The improvement looks good! 👍 Could we also include unit tests for the changes? Thanks!

@rijkvanzanten rijkvanzanten merged commit 56f83f1 into directus:main Jan 7, 2026
65 checks passed
@github-actions github-actions bot added this to the Next Release milestone Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Adding Multiple Collections at once when adding permissions within Access Policies

3 participants