-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Sync-up PR (Joshua)
…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
… viewing their own listing
…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
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.
Great work with the integration overall; few changes needed and may need to implement updated flow as discussed.
… useEffect dependancy array
…r user before rendering content, removing the need for the ternary condition
…at coordinates are only generated once per listing now, instead of once per listing on every page load
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.
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.
expandedgooglemap
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.
LGTM
…joshua merging local and remote paths
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 state8.) 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 unstableshowToast
function inFoodListing
and Homepage components/pagesSensitive changes
1.) Replaced the
useEffect
code in bothAuthLayout.jsx
andLayout.jsx
with the new one @Prakhar896 providedPossible suggestions
1.) Restrict Navbar
minWidth
to371px
. Widths < 371px are too narrow2.) Add a
back
button inReservations
page, so user doesn't have an impression that they are stuck at theReservations
page. Aback
button is a clearer CTA than theSidebar