10000 Like Button State Managing & Rendering, Dynamic Data Fetching by lincoln0623 · Pull Request #40 · MakanMatch/Frontend · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Like Button State Managing & Rendering, Dynamic Data Fetching #40

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

Merged
merged 49 commits into from
Jul 11, 2024

Conversation

lincoln0623
Copy link
Contributor

Overview of Changes Made

  • Like button UI for like and liked state
  • Like state is sustained upon upon refreshing for display what review is liked before by the user
  • Updated hostID and guestID from static ID to dynamic which fetches from the url parameters
    • TO DIRECT TO REVIEW PAGE:
    • E.g. reviews?hostID=272d3d17-fa63-49c4-b1ef-1a3b7fe63cf4&guestID=47f4497b-1331-4b8a-97a4-095a79a1fd48
  • Able to expand guest and host profile picture ( static src link )
  • Set minimum star rating to 1 star for both food and hygiene rating
  • Implemented showToast for toast rendering

@lincoln0623 lincoln0623 requested a review from Prakhar896 July 8, 2024 08:45
@lincoln0623 lincoln0623 self-assigned this Jul 8, 2024
@Prakhar896 Prakhar896 added the enhancement New feature or request label Jul 8, 2024
Copy link
Contributor
@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

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

Disappointed in how you are writing your frontend code. For each refresh on root Reviews.jsx there is an exponentially increasing number of requests to fetch redundant and similar data. Data flow and sharing across sub-components isn't uniform also. This review demands a better and more uniform data flow. Each request to the backend is costly, use wisely.

@lincoln0623 lincoln0623 requested a review from Prakhar896 July 11, 2024 05:10
Copy link
Contributor
@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

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

Well-written; minor changes needed.

@lincoln0623 lincoln0623 requested a review from Prakhar896 July 11, 2024 08:39
Copy link
Contributor
@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

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

LGTM

@Prakhar896 Prakhar896 merged commit 13b496b into main Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0