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

Redux setup #2

Merged
merged 7 commits into from Apr 6, 2022
Merged

Redux setup #2

merged 7 commits into from Apr 6, 2022

Conversation

Micky373
Copy link
Owner

@Micky373 Micky373 commented Apr 6, 2022

Hello Reviewer,

In this PR I:

  • Add the react-redux dependency
  • Implement the proper folder structuring
  • Write the book action and reducer as per the requirements
  • Write the categories action and reducer as per the requirements
  • Configure the redux store in the configure.js file by combining the reducers
  • No linter errors
  • Followed the proper git flow
  • Followed the best practices
  • Fix CR's issues

Thanks 馃憤馃徑

Copy link

@micheaol micheaol 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 ,

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:

  • Your project is professional 馃挴
  • Your repo is professional 馃挴
  • Well structured files 馃挴

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.

Comment on lines 1 to 2
const ADD_BOOK = 'ADD_BOOK';
const REMOVE_BOOK = 'REMOVE_BOOK';
Copy link

Choose a reason for hiding this comment

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

Please ensure that value of each action type follows the ducks pattern, so it will be something like: const ADD_BOOK = bookstore/books/ADD_BOOK and const REMOVE_BOOK = bookstore/books/REMOVE_BOOK

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks well noted

@@ -0,0 +1,16 @@
const CHECK_STATUS = 'CHECK_STATUS';
Copy link

Choose a reason for hiding this comment

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

Please ensure that value of each action type follows the ducks pattern, so it will be something like: const CHECK_STATUS = bookstore/categories/CHECK_STATUS

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks well noted

Comment on lines +5 to +13
export const addBook = (book) => ({
type: ADD_BOOK,
payload: book,
});

export const removeBook = (id) => ({
type: REMOVE_BOOK,
payload: id,
});
Copy link

Choose a reason for hiding this comment

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

Your application is not performing as expected, I cannot add books. When I click on the add book button nothing happens. Kindly fix this. As a result of this, I couldn't test your remove book function.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Hello reviewer, That is the functionality that should be added in the next milestone when we link the react and redux.
We are not supposed to complete that action at this branch.

Copy link

@dasileker dasileker 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,

Congratulations! 馃帀

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

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.


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 d7480d7 into development Apr 6, 2022
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

3 participants