-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Manage members in organization [INS-2705] #7949
Conversation
b80ae5a
to
9c13211
Compare
9c13211
to
f1bad6e
Compare
e43aa2d
to
ef85afb
Compare
9485e3f
to
2d06c9b
Compare
It is better to show a skeleton like web when user opens the invite modal. Users will see "no member" first for now. Screen.Recording.2024-09-20.at.14.23.57.mp4 |
This pr include some changes that are not part of this feature:
It is better to explain these changes in pr description to make review easier |
packages/insomnia/src/ui/components/modals/invite-modal/organization-invite-form.tsx
Outdated
Show resolved
Hide resolved
packages/insomnia/src/ui/components/modals/invite-modal/organization-invite-form.tsx
Show resolved
Hide resolved
packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx
Show resolved
Hide resolved
There are much typescript definition and util functions in component file, we can discuss if it is better to move them to some other dir together. |
packages/insomnia/src/ui/components/modals/invite-modal/organization-invite-form.tsx
Show resolved
Hide resolved
Yeah, I have added it. |
e98eb1d
to
8853a5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
8853a5e
to
e77488e
Compare
27d0f6f
to
afdc4bf
Compare
…se when close another error modal. Clarify situations of remove button's disable state. Refetch organization info and user info every time invite modal is opened, so that we can get latest status if org's plan or user's role are changed.
Use another alert modal. Generate errMsg in insomniaFetch.
afdc4bf
to
2fc2fa2
Compare
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Now users can
in app. It's basically migrated from insomnia-website-app. The logic for permission validation and error messages is essentially the same as in the web version. Except that:
Other changes:
useStateRef
to get latest state immediately after setState, rather than in next round of render.onlyResolveOnSuccess
to insomniaFetch so that it can reject when the response status code is not 2xx.