Skip to content

Request for review #24

Merged
MosDevx merged 9 commits intodevelopfrom
displayItme
Dec 2, 2022
Merged

Request for review #24
MosDevx merged 9 commits intodevelopfrom
displayItme

Conversation

@aster-alemu
Copy link
Copy Markdown
Collaborator

In this PR, I have been doing the following activities.

  1. Display list of items on home page
  2. Display number of likes for each item on the home page
  3. Create feature add new like
  4. Add all item counters
  5. Add tests for item counter

@aster-alemu aster-alemu requested a review from MosDevx December 2, 2022 19:35
Comment thread src/index.html
Copy link
Copy Markdown
Owner

@MosDevx MosDevx left a comment

Choose a reason for hiding this comment

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

STATUS: Required Changes ♻️ ♻️

###Hi @aster-alemu 👋 Im @MosDevx . Your Reviwer for this Pull Request

Great Job so far 👍 👍
There are some few issues you still need to work on before you can merge.

Highlights 🏅 🏅

  • Great work using the right GitHub Flow ✔️
  • No Linter errors ✔️
  • Code is well organized with good folder structure ✔️

Required Changes ♻️

Kindly sort out the issues highlighted below 👍

Comment thread src/index.js Outdated
Comment on lines +32 to +73
// //! My Own index js
// import './style.css';
// // import './css/pop-window.css'

// import popupWindow from './modules/commentsPopupWindow.js';
// import getMovies from './modules/getMovies.js';
// import {
// getComments,

// } from './modules/commentsApi.js';

// const popupContainer = document.getElementById('popup-container');

// const movieArray = await getMovies();

// const allIdsArray = [];
// movieArray.forEach((movie) => {
// allIdsArray.push(movie.showId);
// });

// async function getAllComments(showIdsArray) {
// const allCommentsArray = [];

// let allArray = [];
// for (let index = 0; index < showIdsArray.length; index += 1) {
// const comment = getComments(showIdsArray[index]);
// allCommentsArray.push(comment);
// }
// allArray = await Promise.all(allCommentsArray);

// return allArray;
// }

// const commentsArray = await getAllComments(allIdsArray);

// function closeModal() {
// popupContainer.innerHTML = '';
// }

// const popup = popupWindow(movieArray[2], commentsArray[2], closeModal);

// popupContainer.append(popup); No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please remove all commented code from you codebase. This ensures readability and clean code practices. There will be less chance of hard to trace errors in the future

Comment thread package.json Outdated
"test": "jest --env=jsdom"
},
"dependencies": {
"dotenv-webpack": "^8.0.1",
Copy link
Copy Markdown
Owner

@MosDevx MosDevx Dec 2, 2022

Choose a reason for hiding this comment

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

Kindly remove all packages you are not using from you project {dotenv-webpack}
This will enable faster download and installation in the future.
It also reduces the chances of depending on packages that are poorly maintained and which will thus introduce security holes.

Comment thread package.json Outdated
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1"
"jest-environment-jsdom": "^29.3.1",
"node-vibrant": "^3.1.6"
Copy link
Copy Markdown
Owner

@MosDevx MosDevx Dec 2, 2022

Choose a reason for hiding this comment

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

Kindly remove all packages you are not using from you project. { node-vibrant}
This will enable faster download and installation in the future
It also reduces the chances of depending on packages that are poorly maintained and which will thus introduce security holes.

@aster-alemu aster-alemu requested a review from MosDevx December 2, 2022 22:00
Copy link
Copy Markdown
Owner

@MosDevx MosDevx left a comment

Choose a reason for hiding this comment

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

Status Aprroved 🥇 🥇

To Highlight 💪🏻

You've done a great job implementing the changes.

Great job man! 👏 There is nothing to say except to merge it!
Happy coding!!!!

@MosDevx MosDevx merged commit cdd1264 into develop Dec 2, 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.

2 participants