hackforla / lucky-parking

Visualization of parking data to assist in understanding of the effects of parking policies on a neighborhood by neighborhood basis in the City of Los Angeles
https://www.hackforla.org/projects/lucky-parking.html
33 stars 61 forks source link

[Frontend] Logo links to home route #624

Closed glenflorendo closed 8 months ago

glenflorendo commented 9 months ago

User Story

As a user, I want the logo to link to the home route, so that I can easily navigate to the home page.

Description

A popular convention in web development is to treat the logo, usually located in the header, as a link to the home page of the website.

We want to replicate this behavior in our web application.

Be mindful that, in React Router, the page may not navigate because the new route doesn't change (as is in our case). You may need to read through the docs to ensure that the page is always navigated regardless.

Acceptance Criteria

  1. The full logo is linked to the home route.
  2. Clicking anywhere on the logo navigates to the home route.

Technical References

dannycpham commented 8 months ago

@bzzz-coding Hi there! Thanks for your work on this. Can you also make sure that it would navigate to the homepage even if we're on the home page already. Basically resetting lucky parking. :)

bzzz-coding commented 7 months ago

@dannycpham Hi Danny, I thought by setting the reloadDocument to true, the page would do a reload even if the user is currently on the home page. The Link wrapping the logo should now act like an anchor link, which reloads the page. Maybe I misunderstood the request... Could you help me understand why we want to reload the page instead of only re-render updated components?