cal-itp / calitp.org

A brief explainer website for the California Integrated Travel Project (Cal-ITP).
https://www.calitp.org
GNU Affero General Public License v3.0
2 stars 3 forks source link

Refactor: initiative pills change hash #370

Closed thekaveman closed 3 months ago

thekaveman commented 3 months ago

Quick follow-up to #363

How to test

  1. Run the app locally
  2. Ensure the existing behavior of going directly to e.g. http://localhost:4000/#initiatives-gtfs still loads that pill content
  3. Change pills
  4. Observe the window.location.hash value update accordingly
  5. Observe the associated pill content become visible
  6. Click the back button
  7. Observe the previous hash / pill content is visible

Demos

Loading the page with a hash link https://github.com/user-attachments/assets/382b3130-f173-459f-93b0-f68bbaab0a3d
Clicking pills and the back button https://github.com/user-attachments/assets/19298fa6-a8c1-4123-a27e-9196a80c1c83
netlify[bot] commented 3 months ago

Deploy Preview for cal-itp-website ready!

Name Link
Latest commit 1fbedd7efc3463ff831e27d4b749b533a7572bff
Latest deploy log https://app.netlify.com/sites/cal-itp-website/deploys/669edd412eddd500085154b2
Deploy Preview https://deploy-preview-370--cal-itp-website.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.