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

Implement Delete Button to Admin Page #297

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Implement Delete Button to Admin Page #297

merged 2 commits into from
Oct 12, 2023

Conversation

AnkitLakkapragada
Copy link
Contributor

@AnkitLakkapragada AnkitLakkapragada commented Sep 24, 2023

Summary

This pull request implements the delete button to the admin page for the declined section so that admin users can stop seeing reviews that they want to delete.

PNG image PNG image

Test Plan

Tested it locally.

Notes

Breaking Changes

None

@dti-github-bot
Copy link
Member

[diff-counting] Significant lines: 28.

@github-actions
Copy link

github-actions bot commented Sep 24, 2023

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

https://cu-apts-staging--pr297-add-delete-button-i4kyalgr.web.app

(expires Thu, 19 Oct 2023 15:42:43 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 096ac87b789b31770a01964fe0aaa92d563b9353

@cyrus14
Copy link
Contributor

cyrus14 commented Sep 25, 2023

Hey Ankit! Great job on this feature, I think you've made a valuable addition to our admin page with the delete button for the declined section. This enhancement will undoubtedly streamline the workflow for our admin users, making it easier for them to manage and declutter their review queues. Looking at the code I like how you don't have any redundancies and the functionality works great when I tested it. Again great job!

Copy link
Contributor

@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.

Code looks good, and this feature works! I especially like that you made it a status rather than actually deleting it, as soft deletes are generally good practice. I also like how you reused the components for showing the reviews and just added an extra argument. A good solution!

Not sure what's up with your yarn file though, since there shouldn't be any changes as far as I'm aware.

@jesshan700
Copy link
Contributor

This looks really good! The delete button is a really important feature when it comes to how users will view our product - it will definitely clean up a lot on the admin page.

Copy link
Collaborator

@thuypham03 thuypham03 left a comment

Choose a reason for hiding this comment

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

Good job on soft-delete practice!

@thuypham03 thuypham03 temporarily deployed to staging October 12, 2023 15:40 — with GitHub Actions Inactive
@thuypham03 thuypham03 merged commit a41e509 into main Oct 12, 2023
6 checks passed
@thuypham03 thuypham03 deleted the add-delete-button branch October 12, 2023 15:43
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.

6 participants