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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remove feature #2

Merged
merged 11 commits into from Feb 18, 2022
Merged

Add remove feature #2

merged 11 commits into from Feb 18, 2022

Conversation

Micky373
Copy link
Owner

@Micky373 Micky373 commented Feb 17, 2022

Hello Reviewer,

In this milestone I have done:

  • Removed the hard coding
  • Add functionality to add and remove tasks
  • Add functionality to delete task
  • Used local storage to store tasks
  • No linter errors
  • Used ES6 best practices and ES6 modules
  • Fix CR's issue

Thank you 馃榿

@github-pages github-pages bot temporarily deployed to github-pages February 17, 2022 23:12 Inactive
@github-pages github-pages bot temporarily deployed to github-pages February 17, 2022 23:45 Inactive
@github-pages github-pages bot temporarily deployed to github-pages February 17, 2022 23:57 Inactive
Copy link

@Cathella Cathella left a comment

Choose a reason for hiding this comment

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

馃煛 Status: Changes Required 馃洃

Hi @Micky373 馃憢馃徎,

Good job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!

To Highlight 馃憦馃徎

鉁旓笍 No linter errors.
鉁旓笍 You used correct Github Flow.
鉁旓笍 Professional README.
鉁旓笍 Used webpack to bundle JavaScript.
鉁旓笍 Implemented adding a new task
鉁旓笍 Implemented editing task descriptions
鉁旓笍 Implemented deleting a task
鉁旓笍 Removed hard-coded items from the tasks array
鉁旓笍 Used local storage to store To-Do List changes

Required Changes 鈾伙笍

Check the comments under the review.

Optional suggestions

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

Cheers and Happy coding!馃憦馃憦馃憦

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

src/index.js Outdated
Comment on lines 77 to 86
const addTask = () => {
const activity = document.querySelector('#add_task').value;
if (activity !== null) {
const tasks = new Task(activity, false, ((taskLists.length) + 1));
taskLists.push(tasks);
showActivity([tasks]);
addToLocalStorage(taskLists);
}
};

Copy link

@Cathella Cathella Feb 18, 2022

Choose a reason for hiding this comment

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

Hello @Micky373, It is a good job you are doing here 馃挭馃徎! Your project looks amazing 鉂わ笍 - I like the font you used and the red trash icons to be exact. Every thing looks great,

  • I will just request you to use a new JavaScript file for the new functionality (add, edit, delete) that was introduced as required in this milestone

@github-pages github-pages bot temporarily deployed to github-pages February 18, 2022 10:50 Inactive
Copy link

@elyor-doniyorov elyor-doniyorov left a comment

Choose a reason for hiding this comment

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

Hi @Micky373,

Great work on making the changes requested by a previous reviewer 馃憦
You've done well implementing some of the requested changes, but there are still some which aren't addressed yet.

Required Changes 鈾伙笍

Check the comments under the review.

Optional suggestions

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

Cheers and Happy coding!馃憦馃憦馃憦

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


const taskLists = JSON.parse(localStorage.getItem('data'));

const addTask = () => {
Copy link

@elyor-doniyorov elyor-doniyorov Feb 18, 2022

Choose a reason for hiding this comment

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

  • Great job implementing the changes requested by the previous reviewer. But, I think the changes you have made caused more issues. For example, when I tried to add a task it did not work properly. Below you can see the screenshot please fix the issue then request another review.
    Screenshot (194)

Copy link

@Meltrust Meltrust Feb 18, 2022

Choose a reason for hiding this comment

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

Hello @Micky373, I'm your new reviewer.

In this new commit, it is now possible to add tasks, but it is impossible to delete them because the delete buttons are not generated now, and therefore, missing. I can confirm this was not happening before the original review.

I can help. I'll be waiting on slack for the next 30 minutes, otherwise, I'll have to request changes.

I already contacted you on Slack, please respond. It's now 6:54 am for me.

Note: The student responded on Slack, we are working out the issue.

@github-pages github-pages bot temporarily deployed to github-pages February 18, 2022 12:08 Inactive
@github-pages github-pages bot temporarily deployed to github-pages February 18, 2022 12:23 Inactive
@github-pages github-pages bot temporarily deployed to github-pages February 18, 2022 13:18 Inactive
@github-pages github-pages bot temporarily deployed to github-pages February 18, 2022 13:22 Inactive
Copy link

@Meltrust Meltrust left a comment

Choose a reason for hiding this comment

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

Hi @Micky373,

Wow, you did it 馃帀

Brilliant

Thank you for answering on Slack, and for explaining to me that you need to click on a task in order for the delete button to appear, just like in the template video. 馃挭 馃 銑楋笍

The changes requested by the previous reviewer have been implemented, therefore, I'm approving the pr.

Well done!

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 馃帀

Cheers and Happy coding!馃憦馃憦馃憦

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@Micky373 Micky373 merged commit e5b000a into main Feb 18, 2022
@Micky373 Micky373 deleted the Add_Remove_feature branch February 18, 2022 13:37
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

4 participants