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

Add admin #176

Merged
merged 9 commits into from
Aug 6, 2023
Merged

Add admin #176

merged 9 commits into from
Aug 6, 2023

Conversation

JustKong13
Copy link
Contributor

Summary

This PR is the first step in making the full functionality to add admins to the allowed users list

  • implemented ability to add admins (name and admins)
  • shows the new admin on the newly updated administrator table

Test Plan

The simple act of being able to add an admin is there

In this example, I was originally deleted
image

And then I filled myself out as a new administrator
image

After adding myself, I appear back on the administrators' table
image

Notes

Edit function still does not work but that can be overrided by removing an admin and then adding the same admin with updated information

Breaking Changes

@JustKong13 JustKong13 requested a review from a team as a code owner April 25, 2023 17:43
@dti-github-bot
Copy link
Member

dti-github-bot commented Apr 25, 2023

[diff-counting] Significant lines: 158.

@github-actions
Copy link

github-actions bot commented Apr 25, 2023

Visit the preview URL for this PR (updated for commit ea57c36):

https://zing-lsc--pr176-add-admin-xpi182yo.web.app

(expires Sun, 13 Aug 2023 00:59:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1fc18307b178c916e2663810a6932f60b173c01b

Copy link
Contributor

@b3njamint b3njamint left a comment

Choose a reason for hiding this comment

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

Very nice fix! I tried playing around with it and didn't find anything bad. I really like how you had the undo button in the "confirmation state," but it's really big and stretches the table row (idk if that is intentional).

Is the edit feature going to be done in a future PR?

Copy link
Collaborator

@mluo24 mluo24 left a comment

Choose a reason for hiding this comment

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

Nice work Justin! I would just remove the edit icons and you should be good to go. I like how you accounted for duplicate emails.

JustKong13 and others added 5 commits May 24, 2023 13:00
# Conflicts:
#	frontend/src/modules/Settings/Components/AdministratorsTable.tsx
#	frontend/src/modules/Settings/Components/Settings.tsx
#	frontend/src/modules/Settings/Components/types.ts
@mluo24
Copy link
Collaborator

mluo24 commented Aug 6, 2023

fixed it up and merged main.

@mluo24 mluo24 merged commit 04390cb into main Aug 6, 2023
3 of 4 checks passed
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.

4 participants