Skip to content
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

feat(v2): add admin form collaborator modal #3771

Merged
merged 31 commits into from
Apr 26, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Apr 19, 2022

Problem

This PR adds the initial admin form collaboration feature, where admins can add/remove collaborators.

Note that there is still no transfer ownership feature, or viewer-only modal. Those will come in later PRs.
Meaning there are no client-side guards if a user with view-only rights attempts to modify collaborator permissions (backend will correctly block the action).

Related to #2487

Solution

Features:

  • add CollaboratorModal component and stories, and use in admin nav bar
    • includes useCollaboratorModal hook to control modal open close
    • add various skeleton states

Before & After Screenshots

New stories in storybook

karrui added 26 commits April 19, 2022 15:51
note that there is no checks for if the person has permissions, or if the collaborator to be removed is self
@karrui karrui requested a review from timotheeg April 19, 2022 10:05
Copy link
Contributor

@timotheeg timotheeg left a comment

Choose a reason for hiding this comment

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

lgtm 👍

Copy link
Contributor

@timotheeg timotheeg left a comment

Choose a reason for hiding this comment

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

👍 again

@karrui karrui merged commit 8e1a8d8 into form-v2/develop Apr 26, 2022
@karrui karrui deleted the form-v2/feat/collaborators-0 branch April 26, 2022 08:23
@justynoh justynoh mentioned this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants