-
Notifications
You must be signed in to change notification settings - Fork 0
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
Organization Settings Page #183
Conversation
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.
Sheesh looks clean. LGTM
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.
Looks amazing! Thank you for this. Just left a few comments
frontend/src/app/(authenticated)/(main)/settings/organization/_components/member-actions.tsx
Show resolved
Hide resolved
return apiClient.delete(`/membership`, { | ||
data: { | ||
user_id: userId, | ||
org_id: orgId, | ||
role: role, | ||
}, | ||
}) |
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.
@Zheng-Zhi-Qiang why does this endpoint require the role
parameter? if we are dependent on this parameter, it could be easily abused
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.
should be okay to remove, abused in what way though
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.
the backend api don't need body for delete though
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
Description
Added a new settings page, currently only has organization settings. Users will be able to change name of organization (need to be Owner) and perform CRUD functions to organization including:
Demo for changing organization name
2024-06-26.20-27-38.mp4
Demo for Viewing/Searching for members and adding new member
2024-06-26.20-27-59.mp4
Demo for Member actions and leaving of organization
2024-06-26.20-29-31.mp4
Other changes
SelectOrganizationsStatement
SQL statement to check forfalse
membershipsPATCH
to server allowed methods