-
Notifications
You must be signed in to change notification settings - Fork 3
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
allow for direct links to specific viz pages #372
Comments
Maybe something like the "quick query" feature (my term) that we added for forecasts: https://zoltardata.com/forecast/106743?unit=4725&target=3625#search . It's a kind of permalink, I suppose. |
Yeah, exactly. |
Question: Would you want to update the browser history with every click so that users can go forward and back? ( https://reichlab.io/flusight-eval/ does this). The possible problem with doing so is that the history could get pretty long - not a memory problem, but more of unnecessary work that would show up in the browser's back/forward dropdown menu. If we did not support history then the URL would still be updated with each click, but forward/back would not be possible. |
I think we don't need to update browser history -- the main use case is probably sharing links to specific views, not necessary navigating with a back/forward button in the browser |
Regarding url parameter names and encoding, I suggest the following:
-> Firefox parses these seven params as: |
Adding comments about possibly fixing the y-axis as part of this...
Draft statement of desired behavior:
|
The updated functionality looks good to me. I'll note that I tried to manually change one of the dates and it ended up at a place with no data, and a very empty looking window. direct link Maybe this is a separate issue, but we are maybe introducing the possibility of directly navigating to a place with no data to show, with editable urls? |
Good catch, Nick. Looking at the browser console I see the problem:
What's going on is that the program reads parameters (if present) from the URL and then validates them, same as is done with the initial As a solution, maybe we can have a bailout where, if the offending parameter was loaded from the URL, then all of the URL parameters are dropped. This would put the program into an initial "good" state, assuming the above |
Following up, we decided to go ahead with the bailout, but it needs to inform the user of its actions and why. |
If I'd like to share a link to a specific plot, e.g. a specific set of drop-down and check-box selections, could those be encapsulated within a custom url? Say I want to send someone to the page with a specific set of models and a specific date chosen, I can't do that right now. There are a lot of knobs here (e.g. the axis limits?), so it might get too messy, but a way to specify an outcome, unit, interval, models, and date would be really nice so that the link could then be passed along to others to see and explore what you are looking at.
The text was updated successfully, but these errors were encountered: