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

Feature to add a comment #27

Merged
merged 2 commits into from
Nov 24, 2022
Merged

Feature to add a comment #27

merged 2 commits into from
Nov 24, 2022

Conversation

yonas44
Copy link
Collaborator

@yonas44 yonas44 commented Nov 23, 2022

Hello @Abdessittir, so in this feature I implemented comment adding functionality, when you add a comment;

  • When a user submits a comment through the form, it uses the involvement API to append a comment.

@yonas44 yonas44 requested a review from AHP15 November 23, 2022 10:58
Copy link
Owner

@AHP15 AHP15 left a comment

Choose a reason for hiding this comment

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

Hi @yonas44 great work 👍 , It was so close

STATUS: CHANGES REQUIRED ♻️

soclose

Here are some things you need to work on:

  • Take a look at the comment below
  • Kindly make sure that the comment show up un the screen when it gets added, because that is included in the project requirement

req

commenttoDom

OPTIONAL:

Those are optional and you can skip them:

  • Kindly give the form elements some padding, so it look nice on the screen

padding

If you have any questions please feel free to ask 👍

Happy coding 💯

@@ -0,0 +1,27 @@
const addComment = async (id, name, insight) => {
try {
const res = await fetch(`${process.env.INVOLVMENT_URL}/apps/${process.env.APP_ID}`, {
Copy link
Owner

@AHP15 AHP15 Nov 23, 2022

Choose a reason for hiding this comment

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

Please make sure that the URL is correct because the addComment is failing with status code 404

@yonas44
Copy link
Collaborator Author

yonas44 commented Nov 23, 2022

Thank you @Abdessittir for your feedback, I have added the changes please have a look at it and give me your feedback!

@yonas44 yonas44 requested a review from AHP15 November 23, 2022 19:05
Copy link
Owner

@AHP15 AHP15 left a comment

Choose a reason for hiding this comment

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

Hi @yonas44 amazing work 💯, there is nothing to say other than it's time to merge your pull request.

STATUS: APPROVED 🥇

68747470733a2f2f6d65646961322e67697068792e636f6d2f6d656469612f6c3366516333614356304871707a5763552f67697068792e676966

Highlights 💪🏻

✅ Comment posted to the API correctly
✅ No linter errors
✅ Dom manipulated to add new comment 💯

Happy Coding 👍

@yonas44 yonas44 merged commit acd7561 into dev Nov 24, 2022
@yonas44 yonas44 deleted the Add-comment-feature branch November 24, 2022 08:17
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.

None yet

2 participants