8000 authState, pivoting from localStorage to state, multiple bug fixes and slight UI improvement by Sadliquid · Pull Request #50 · MakanMatch/Frontend · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

authState, pivoting from localStorage to state, multiple bug fixes and slight UI improvement #50

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 30 commits into from
Jul 19, 2024

Conversation

Sadliquid
Copy link
Contributor
@Sadliquid Sadliquid commented Jul 13, 2024

What was done in this PR

1.) Completed authState integration
2.) Switched from using localStorage to directly passing down a state when navigating to /targetListing
3.) Fixed multiple bugs (mostly related to authState integration)
4.) Removed hardcoded data
5.) Slightly improved UI
6.) Enhanced conditional rendering
7.) Added re-routing to /*'s 404 page if user accidentally hits the /targetListing route manually by accident without data passed down from state
8.) Non logged-in users can now view the GoogleMapsPage, but will need to login in order to favourite the listing.
9.) Implmented a new displayToast factorised function due to unstable showToast function in FoodListing and Homepage components/pages

Sensitive changes

1.) Replaced the useEffect code in both AuthLayout.jsx and Layout.jsx with the new one @Prakhar896 provided

Possible suggestions

1.) Restrict Navbar minWidth to 371px. Widths < 371px are too narrow
2.) Add a back button in Reservations page, so user doesn't have an impression that they are stuck at the Reservations page. A back button is a clearer CTA than the Sidebar

Sadliquid and others added 11 commits July 12, 2024 11:38
…nt data to reduce addresses to a approximate addess
…State flow. Updated useLocation state to just hostID, as userID is no longer needed after authState
…useEffect in AuthLayout and Layout, and added navigate back to homepage if state was not found. Also fixed bug where rendering contents on homepage were jerky and glitchy
@Sadliquid Sadliquid added the enhancement New feature or request label Jul 13, 2024
@Sadliquid Sadliquid requested a review from Prakhar896 July 13, 2024 18:15
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.

Great work with the integration overall; few changes needed and may need to implement updated flow as discussed.

…r user before rendering content, removing the need for the ternary condition
@Sadliquid Sadliquid requested a review from Prakhar896 July 18, 2024 15:06
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.

Quite well-done. Just do one last check for consistency and workflow. Test different variations of penetration angles of vulnerability, especially when it comes to the host's address. Ensure some invalid addresses do not crash the rendering workflow for remaining valid addresses.

@Sadliquid Sadliquid requested a review from Prakhar896 July 19, 2024 06:56
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 2e8552a into main Jul 19, 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