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

Organization Settings Page #183

Merged
merged 51 commits into from
Jun 27, 2024
Merged

Organization Settings Page #183

merged 51 commits into from
Jun 27, 2024

Conversation

Ziyang-98
Copy link
Collaborator

@Ziyang-98 Ziyang-98 commented Jun 26, 2024

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:

  • Viewing members of the organization (need to be Member)
  • Searching for members of the organization (need to be Member)
  • Adding new members to the organization (need to be Admin)
  • Removing members in the organization (need to be Admin)
  • Transfering ownership (need to be Owner)
  • Leaving organization (need to be Member and not Owner)

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

  • Removed sign up button since it has no function
  • Fixed styling for main page side bar
  • Fixed SelectOrganizationsStatement SQL statement to check for false memberships
  • Added PATCH to server allowed methods

Ziyang-98 added 30 commits June 20, 2024 15:15
@Ziyang-98 Ziyang-98 added frontend Frontend related backend Backend related feature A new feature fix Fixes something labels Jun 26, 2024
@Ziyang-98 Ziyang-98 self-assigned this Jun 26, 2024
Copy link
Collaborator

@Zheng-Zhi-Qiang Zheng-Zhi-Qiang left a 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

Copy link
Owner

@joshtyf joshtyf left a 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

Comment on lines +226 to +232
return apiClient.delete(`/membership`, {
data: {
user_id: userId,
org_id: orgId,
role: role,
},
})
Copy link
Owner

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

Copy link
Collaborator

@Zheng-Zhi-Qiang Zheng-Zhi-Qiang Jun 26, 2024

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

Copy link
Collaborator

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

Copy link
Owner

@joshtyf joshtyf left a comment

Choose a reason for hiding this comment

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

LGTM

@Ziyang-98 Ziyang-98 merged commit a8f51a2 into main Jun 27, 2024
2 checks passed
@joshtyf joshtyf deleted the feature/fe-org-settings branch July 1, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related feature A new feature fix Fixes something frontend Frontend related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants