Closed inkerton closed 1 month ago
@inkerton is attempting to deploy a commit to the notsoocool's projects Team on Vercel.
A member of the Team first needs to authorize it.
This is in response to the issue #74 @notsoocool Review the PR and merge it
Instead of directly deleting a snippet, I propose implementing a request deletion option. If a user wishes to delete a snippet, they should provide a reason for the deletion. This reason will be displayed on the admin page alongside the snippet. The admin will then have the authority to approve or reject the delete request. If the admin approves the request, the snippet will be deleted from the system.
Then shall I make a DeleteRequest model also with a reason from the user to delete it and then store in the deleteRequest collection. Also I don't have admin access so I won't be able to do much on that part till u tell me how to access the admin panel.
Also since I will be making a whole new model and request setup I would like the issue to be raised to level3. I will start working on the model and I was thinking of a Dialogue box that will open up on delete where the user can enter the delete request along with the reason.
@notsoocool
Then shall I make a DeleteRequest model also with a reason from the user to delete it and then store in the deleteRequest collection. Also I don't have admin access so I won't be able to do much on that part till u tell me how to access the admin panel.
Also since I will be making a whole new model and request setup I would like the issue to be raised to level3. I will start working on the model and I was thinking of a Dialogue box that will open up on delete where the user can enter the delete request along with the reason.
@notsoocool
Hey, this looks perfect! You can go ahead with the implementation. For admin access, you have an environment variable named ADMIN_USER_IDS
in the .env.sample
file. Just add your user ID (which you can get from Clerk) and save it, and you'll have admin access.
Also, for labeling issues or PRs, don’t worry—I’ll label you appropriately based on the work. I won't show any bias to anyone 😊.
created the delepteRequest Model
created the delepteRequest Model
just a suggestion no need to have so many field, just have the user id, description, snippet id, thats it
Changed the Model @notsoocool
Tabs for easy admin navigation
Table with delete Requests data and Accept and Reject row actions
I have completed my work. Since the whole process has been completed please check out the PR merge it and raise the level to level3. @notsoocool
I added these following
Screenshots added above @notsoocool
@notsoocool Have you checked my PR. Please merge it and add level3 tag also.
Is there any issue with the PR ???
@notsoocool If not then please do merge it i need to work on the edit snippet too that I will build upon this one.
Is there any issue with the PR ???
@notsoocool If not then please do merge it i need to work on the edit snippet too that I will build upon this one.
I understand your concern, but I'm not available at the moment. Please wait until the evening, and I will review the code changes by then and let you know.
@notsoocool Have you checked my PR. Please merge it and add level3 tag also.
Just a friendly reminder—please avoid mentioning what to label your PR. This is your second reminder, so I kindly ask you to keep this in mind moving forward. Thank you for understanding!
@inkerton I’ve tested your code locally, and everything works smoothly until I reach the snippet deletion page. The issue arises when I attempt to delete a snippet—it doesn’t get removed from the database. Could you please take a look and see if anything might be causing this?
Also i need you add some toast notification and also need to improve the UI for level3 label, but before that solve the above mentioned problem
And for deleted also i added the toast. @notsoocool
What UI changes do you want?? Specify please @notsoocool
@inkerton Thanks for the PR, I’m satisfied with the changes! However, I noticed that the snippet rating isn’t displaying anymore. Could you also add a toast notification on the profile page after submitting the reason? Additionally, when a request is accepted, the snippet should be dynamically removed from the list, but currently, it's only disappearing after a page reload. Could you look into that as well?
This would be some last Checks you have to complete and you are good to go.
Their was no snippet rating being displayed in the first place @notsoocool
Refer to the original PR #50
@notsoocool As for the dynamic removal of table row . it is done.
Hi @inkerton,
Could you please fetch the latest changes from the develop branch and test it? The rated snippet section is functioning properly there.
Everything else is working well, so you're good to go! Could you please check what’s causing the rated snippets not to display?
Thank you!
@notsoocool you can Merge PR now