-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Assets feature
In this pull request I'm suggesting the API for our movies webpage
Setup project
Create footer in HTML
Display list of items
Likes counter API
Finished comments counter and its testing
Test items counter function
Add second author and live demo link
Change source of heart button link
There was a problem hiding this 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 ofFixed
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
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
<footer> | ||
<p>Created by Eric and Dani under CC license</p> | ||
</footer> | ||
<!-- <script src="index.js" type="module"></script> --> |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/modules/userInteraction.js
Outdated
return ` | ||
<div id = "modal"> | ||
<div id = "modal-content"> | ||
<img id = "close-btn" src = "../assets/closebtn.png" alt = "close button"/> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 aclass
for it and attach it to the HTML elements
src/styles.css
Outdated
|
||
/***** MAIN SECTION *****/ | ||
|
||
#main { |
There was a problem hiding this comment.
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 theID
we have currently
|
||
## 📝 License <a name="license"></a> | ||
|
||
This project is [MIT](./MIT.md) licensed. |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
if (epiArray[i].season === 1) { | ||
mainBody.innerHTML += generateMovies(epiArray[i], numberOfLikes[i].likes); |
There was a problem hiding this comment.
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 👇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 Your project is complete and ready to be merged! 🚀
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.
In this pull request my partner @Mylo16 and I have created a movie web app using an API and following the following requirements:
Also, we have recorded a video presentation: