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

Fix/Feat: comment counters, actions based on role, pinned comment #170

Merged
merged 3 commits into from
Mar 17, 2024

Conversation

siinghd
Copy link
Collaborator

@siinghd siinghd commented Mar 9, 2024

Fix:
Fixed problems with comments counter, on delete the counter wasn't descreasing.

Feat:
Introducing pinned comments, now admin can pin comments(one per content).
Introduced dropdown for actions on single comment.
Now admin can delete,approve chapter comments directly from the dropdown.
This is thanks to do the #154 , as now we have role based access.

Also improved upvoting and downvoting, if user already upvoted and downvoted the icon is filled now

Screenshot 2024-03-09 at 12 05 55 PM

@siinghd siinghd changed the title Fix/Feat: comment counters, actions based on role Fix/Feat: comment counters, actions based on role, pinned comment Mar 9, 2024
src/app/admin/page.tsx Outdated Show resolved Hide resolved
@siinghd
Copy link
Collaborator Author

siinghd commented Mar 12, 2024

@hkirat hi veere, have removed console.log

@hkirat hkirat merged commit 132db11 into code100x:main Mar 17, 2024
1 check passed
@hkirat
Copy link
Contributor

hkirat commented Mar 17, 2024

/bounty $75

@nimit9
Copy link
Contributor

nimit9 commented Mar 17, 2024

Hey @siinghd , I think you missed adding the new migration of 'isPinned' column in Comment Table

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.

3 participants