Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Added Feature(s): Replies to comments #9

Merged
merged 8 commits into from
Jul 25, 2021
Merged

Conversation

Jaagrav
Copy link
Contributor

@Jaagrav Jaagrav commented Jul 24, 2021

DO NOT MERGE BEFORE PROPER TESTING!
Added replies feature, here's the User Interface I developed

image

Everything is properly validated, although I would like the devs to test it before, on the deploy preview.

The replies get added and are sorted according to most recent order. Let me know if you'd like it to be sorted according to fcfs basis XD.

I am simply using the /api/POST/comment-cheatsheet and the /api/POST/comment-review-cheatsheet API to add an object property called replies (ARRAY OBJECT) under the comment property. I did this since the comment gets added to an array instead of getting pushed with an unique ID. This makes it easy to recognize comments and show replies for the right comment.

@vercel
Copy link

vercel bot commented Jul 24, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @saviomartin on Vercel.

@saviomartin first needs to authorize it.

@Jaagrav Jaagrav marked this pull request as ready for review July 24, 2021 21:36
@vercel
Copy link

vercel bot commented Jul 25, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/saviomartin/codehouse/9MfxGmKCEWGxC5uJPT3xms7i5Gfy
✅ Preview: https://codehouse-git-fork-jaagrav-main-saviomartin.vercel.app

@saviomartin
Copy link
Owner

Thanks a lot for the PR @Jaagrav, Thanks for the new feature buddy

@saviomartin saviomartin merged commit fa69ebc into saviomartin:main Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants