Skip to content

feat: add delete custom role context menu button and modal #14228

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 2 commits into from
Aug 9, 2024

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented Aug 9, 2024

  • Add edit button to row options context menu to edit role instead of clicking the row
  • Add delete context menu button to display delete modal
  • Custom Role Delete modal
  • Delete mutation to delete role
Screenshot 2024-08-09 at 3 17 09 PM Screenshot 2024-08-09 at 3 17 20 PM

@jaaydenh jaaydenh self-assigned this Aug 9, 2024
@jaaydenh jaaydenh changed the title feat: delete custom role feat: add delete custom role context menu button and modal Aug 9, 2024
Copy link

alwaysmeticulous bot commented Aug 9, 2024

🤖 Meticulous spotted visual differences in 53 of 1313 screens tested: view and approve differences detected.

Last updated for commit 84524d0. This comment will update as new commits are pushed.

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.

awesome!

@@ -601,20 +601,20 @@ class ApiMethods {
};

patchOrganizationRole = async (
organizationId: string,
organization: string,
Copy link
Member

Choose a reason for hiding this comment

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

can you copy-paste the doc comment a lot of these other org functions have? it's a minor thing, but I like the easily accessible reassurance that it can be the id or the name 😄

role,
);

return response.data;
};

deleteOrganizationRole = async (organizationId: string, roleName: string) => {
deleteOrganizationRole = async (organization: string, roleName: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

same for this function pls

@jaaydenh jaaydenh merged commit 0b9ed57 into main Aug 9, 2024
30 checks passed
@jaaydenh jaaydenh deleted the delete-custom-role branch August 9, 2024 20:59
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 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.

2 participants