Attempting to iron out some of the quirks relating to the location drawer and location navigation.
[x] Prevent navigation and Street View button clicks from closing the location drawer. Closes #340.
[x] Back button in edit review form goes back to previous route in history, rather than the clearly wrong placeholder behavior (/locations/:review_id).
[x] Similarly, use history.goBack() instead of history.push(...) to go back to the correct location view (map or list) from edit / review forms.
[x] Expands drawer from 500 px wide (CupertinoPane default?) to full width, avoiding big gaps on left and right sides in displays between 500 and 767 pixels wide and matching list-location view.
But there are unresolved issues. For instance:
[ ] Going back from edit location / add review / edit review / Street View (accessed from map-location) reopens the drawer in middle position rather than showing the location in the position it was previously in (usually fully open).
[ ] Closing Google Street View opened from list-location opens map-location rather than list-location. This is because opening Street View redirects first to map-location. Could this be fixed by using a separate Google Map component for Street View? Or by some other way displaying Google Street View without the need to switch to the map first?
Attempting to iron out some of the quirks relating to the location drawer and location navigation.
/locations/:review_id
).history.goBack()
instead ofhistory.push(...)
to go back to the correct location view (map or list) from edit / review forms.But there are unresolved issues. For instance: