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 #31

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

#javascript capstone project #31

wants to merge 34 commits into from

Conversation

Yemisirach
Copy link
Owner

@Yemisirach Yemisirach commented Feb 25, 2023

we should build these interfaces:

  • The home page.

  • The comments popup.

  • we should follow the layout of the wireframes provided. You should personalize the rest of the design including colors, typographies, spacings, etc.

  • Home page

    • When the page loads, the webapp retrieves data from:

      • The selected API and shows the list of items on screen.
      • The Involvement API to show the item likes.
    • Remember that your page should make only 2 requests:

      • One to the base API.
      • And one to the Involvement API.
    • When the user clicks on the Like button of an item, the interaction is recorded in the Involvement API and the screen is updated.

    • When the user clicks on the "Comments" button, the Comments popup appears.

    • Home page header and navigation similar to the given mockup.

    • Home page footer similar to the given mockup.

  • Comments popup

    • When the popup loads, the webapp retrieves data from:
      • The selected API and shows details about the selected item.
      • The Involvement API to show the item comments.
    • When the user clicks on the "Comment" button, the data is recorded in the Involvement API and the screen is updated.
    • When the popup loads, the webapp retrieves data from:
      • The selected API and shows details about the selected item.
        Counters
        We have counters in all the interfaces that show:
  • The number of items (home).

  • The number of comments (comments popup).

Copy link

@rotimiazeez rotimiazeez left a comment

Choose a reason for hiding this comment

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

Hi TEAM 👍🏽,

Good job so far!

To Highlight 👇🏽

  • Good UI 👍🏽
  • No Linter error ✔️
  • Good PR description 👍🏽
  • Good commit message(s) 😉
  • Descriptive README 📖
    You still need to work on some issues to prepare your project for the final evaluation, but you are almost there!

Suggested changes

  • As a team of 3, you should have a Reservation popup that loads. The web app should retrieve data from the selected API and show details about the selected item. And likewise, retrieve data from the Involvement API to show the item reservations.
  • Also, you should have a reserve button, in which when a user clicks on the "Reserve" button, the data should be recorded in the Involvement API and the screen updated as a result.
  • Please ensure counter functions are covered with unit tests using Jest. Make sure that you have tests for all edge cases.

Check the comments under the review.

Please feel free to use as many of my suggestions as you want. If there is anything you would like to skip - feel free to do that. However, I strongly recommend considering them as they can improve your code._

You can also consider the following:

  • Have a fair workload distribution across the team.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag (@rotimiazeez) 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.

README.md Outdated
Comment on lines 159 to 161
This project is [MIT](./LICENSE) licensed.

Choose a reason for hiding this comment

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

  • The MIT link provided is broken 😢, kindly provide a valid license link 👍🏽.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The License link is fixed

Comment on lines 14 to 18
const addLike = async (id) => {
const body = JSON.stringify({ item_id: id });
const headers = { "Content-type": "application/json; charset=UTF-8" };
/* eslint-disable */

Choose a reason for hiding this comment

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

  • Please ensure users can like a meal. Currently I'm unable to, kindly fix this 👍🏽

Comment on lines 22 to 30
if (e.target.classList.contains('comment-btn')) {
const mealItem = e.target.parentElement.parentElement;
fetch(
`https://www.themealdb.com/api/json/v1/1/categories.php?i=${mealItem.dataset.id}`,
)
.then((response) => response.json())
.then((data) => mealsFunction(data.categories));
}
}

Choose a reason for hiding this comment

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

Just so you know, when I try to get more information about a meal, I keep getting information about the first food on the list. Please take a look at this; users should be able to see the information on the specific meal they chose. 👍🏽

Copy link
Collaborator

Choose a reason for hiding this comment

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

The License link is fixed

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.

4 participants