-
Notifications
You must be signed in to change notification settings - Fork 1
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 comments to submissions #18
Conversation
@technophile-04 @rin-st for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @damianmarti ! Overall working good, added some comments
And also date and textarea looking strange, I think it's better to fix it, just to not forget about them
packages/nextjs/app/api/submissions/[submissionId]/comments/route.ts
Outdated
Show resolved
Hide resolved
Yeah, sure, I didn't spend too much time with styles now and I focused on features |
@rin-st For the date and time text, do you think that makes sense to use dayjs or something like that, or can we just format the date using the regular Date functions? |
Yeah, but I should add hours and minutes here, I think it's important for the comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Thanks @damianmarti!! Just pushed a couple of commits.
|
Thanks @technophile-04 !! Yes, I thought it would be better to refetch only the submissions after mutation. |
Allow admin users to add comments to each submission.
closes #15