USEPA / the-manifest-game

Interactive decision tree to help e-Manifest users
https://usepa.github.io/the-manifest-game/
MIT License
1 stars 1 forks source link

Render decision tree based on url #125

Closed dpgraham4401 closed 4 months ago

dpgraham4401 commented 4 months ago

Description

This PR renders the tree based on the URL query parameter path if it is set upon loading the page.

A departure from #124 we actually, do not update the URL when a user makes a decision.

The reasons for this departure.

  1. We don't want the user to have to click the back button 1 BILLION times after using TMG. This would not be a expected behavior to most users of the web since the page doesn't change from their perspective.
  2. It means we would be storing the state of the path in multiple locations that would be unnecessary and costly to keep in sync.

Issue ticket number and link

closes #100

Checklist