Skip to content

feat: improve custom roles create/edit page #14456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented Aug 27, 2024

Resolves #14311

  • Add a parent checkbox for resource/action groups to check/uncheck all actions for that resource.
  • Change "Show all permissions" to "Show advanced permissions"
  • "Show advanced permissions" should change to "Hide advanced permissions". Currently the text does not change on being clicked.
  • Align action description text
Screenshot 2024-08-27 at 2 25 03 PM

@jaaydenh jaaydenh self-assigned this Aug 27, 2024
@jaaydenh jaaydenh changed the title feat: improvements for custom roles create/edit page feat: improve custom roles create/edit page Aug 27, 2024
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

🥂

}),
actionItem: {
display: "grid",
gridTemplateColumns: "270px 3fr",
Copy link
Member

Choose a reason for hiding this comment

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

ultra nit: this could be 1fr since there aren't any other columns taking fractions

@BrunoQuaresma
Copy link
Collaborator

Minor design considerations:

Screen.Recording.2024-08-28.at.09.40.48.mp4

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

I noticed the tests for some of the points you mentioned in the PR description are missing. Could you add those?

@jaaydenh
Copy link
Contributor Author

I noticed the tests for some of the points you mentioned in the PR description are missing. Could you add those?

I could add a storybook for the indeterminate state of the parent checkbox. What other types of tests are you thinking of?

@jaaydenh
Copy link
Contributor Author

@BrunoQuaresma I added 2 additional stories for now, there is definitely a learning curve for figuring out the best way to query all the elements needed for the tests.

@jaaydenh jaaydenh merged commit 15d74a1 into main Aug 28, 2024
28 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/custom-roles-improvements branch August 28, 2024 22:13
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements for custom roles create/edit page
3 participants