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

JavaScript capstone project - Your API-based webapp #40

Merged
merged 65 commits into from
Apr 23, 2023
Merged

JavaScript capstone project - Your API-based webapp #40

merged 65 commits into from
Apr 23, 2023

Conversation

danifromecuador
Copy link
Owner

In this pull request my partner @Mylo16 and I have created a movie web app using an API and following the following requirements:

  • Use ES6, linters, git flow, and Webpack
  • Send and receive data from two different APIs
  • Working with asynchronous Javascript
  • Performing code reviews for team members
  • Writting units test for JavaScript functions.

Also, we have recorded a video presentation:

Copy link

@addod19 addod19 left a comment

Choose a reason for hiding this comment

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

Hi @danifromecuador and @Mylo16,

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!

Highlights

  • Involvement API is used to record user interaction 🚀
  • App contains a home page and a comments pop up 💯
  • The web app should retrieve data from the selected API and show the list of items on the screen 🎆
  • Homepage footer is similar to the mockup 👍
  • Comment pop up works as expected 🥇
  • When a user clicks on the Like button of an item, the interaction gets recorded in the Involvement API, and the screen gets updated 🚀
  • Function for the counters present 👍
  • All unit test passed with edge cases 💯

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.

You can also consider:

  • Capitalizing all commit messages and also write commit messages like Fix instead of Fixed going forward

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.html Outdated
Comment on lines 17 to 26
<header>
<nav>
<div class="logo-container"><img class="logo" src="../assets/logo.png" alt="application logo"></div>
<ul id="nav-lists">
<li class="nav-list"><a href="#arrow">Arrow(1)</a></li>
<li class="nav-list"><a href="#blacklist">BlackList(1)</a></li>
<li class="nav-list"><a href="#blacklist">The Last of Us(1)</a></li>
</ul>
</nav>
</header>
Copy link

Choose a reason for hiding this comment

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

  • It would be better if the home page header can be seen as we have in the mock up. Currently the header is not accessible as we can see in the screenshot below as compared to the mockup
    Screenshot from 2023-04-22 22-01-50
    Screenshot from 2023-04-22 21-59-54

src/index.html Outdated
<footer>
<p>Created by Eric and Dani under CC license</p>
</footer>
<!-- <script src="index.js" type="module"></script> -->
Copy link

Choose a reason for hiding this comment

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

Optional

  • It would be nice if we remove commented piece of code, it makes our codebase messy and difficult to understand

const epiArray = await apiGet();
for (let i = 0; i < epiArray.length; i += 1) {
if (epiArray[i].season === 1) {
mainBody.innerHTML += generateMovies(epiArray[i], numberOfLikes[i].likes);
Copy link

Choose a reason for hiding this comment

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

  • It would be better if we can see the like icons as we have in the mockup, our is not showing
    Screenshot from 2023-04-22 22-07-39

return `
<div id = "modal">
<div id = "modal-content">
<img id = "close-btn" src = "../assets/closebtn.png" alt = "close button"/>
Copy link

Choose a reason for hiding this comment

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

  • The close icon in the popup window is not showing as expected, it could be a path problem. Let us kindly resolve this

src/styles.css Outdated
width: 80%;
position: relative;
margin: auto;
display: flex;
Copy link

@addod19 addod19 Apr 22, 2023

Choose a reason for hiding this comment

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

  • It would be better if we follow CSS best practices, like for example; display: flex has appeared more than 3 times so it would be better if we create a class for it and attach it to the HTML elements

src/styles.css Outdated

/***** MAIN SECTION *****/

#main {
Copy link

@addod19 addod19 Apr 22, 2023

Choose a reason for hiding this comment

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

  • It would be better if we use class attributes for styling our elements instead of the ID we have currently


## 📝 License <a name="license"></a>

This project is [MIT](./MIT.md) licensed.
Copy link

@addod19 addod19 Apr 22, 2023

Choose a reason for hiding this comment

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

  • It would be better if we create the MIT license file in our root directory so that we can fix the 404 error page not found

Copy link

@Owusu-Desmond Owusu-Desmond left a comment

Choose a reason for hiding this comment

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

Hi @danifromecuador and @Mylo16 👋

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 changes you still need to work on before you move on to the next project but you are almost there.

Highlights 👍

✔️ Good commit history.
✔️ No linter errors.
✔️ Your project is well documented

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, 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 +18 to +19
if (epiArray[i].season === 1) {
mainBody.innerHTML += generateMovies(epiArray[i], numberOfLikes[i].likes);

Choose a reason for hiding this comment

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

  • As requested by the previous code reviewer, It would be better if you make the like icons show as we have in the mockup or design guidelines. Currently, the icons are not showing as you can see below 👇

    image

    image

@danifromecuador danifromecuador temporarily deployed to github-pages April 23, 2023 01:08 — with GitHub Pages Inactive
Copy link

@Shedrack-Sunday Shedrack-Sunday left a comment

Choose a reason for hiding this comment

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

Hi @danifromecuador

Congratulations! 🎉 Your project is complete and ready to be merged! 🚀

image

Highlights

  • Descriptive PR ✔️
  • Nice use of code semantics✔️
  • Beautiful UI ✔️

Optional Suggestions 💡

While these comments with the [OPTIONAL] prefix won't prevent the approval of this pull request, I strongly recommend taking them into account as they can improve your code. Some of them were missed by the previous reviewer and addressing them will really enhance your application.
Cheers and Happy coding!👏👏👏

If you have any questions or need clarification on anything, feel free to leave a comment in the pull request thread, and don't forget to tag me so I'll receive the notification.

As per the Code reviews limits policy, you have a limited number of reviews per project. If you feel that the code review was unfair, you can request a second opinion using this form.

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.

5 participants