-
Notifications
You must be signed in to change notification settings - Fork 5
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
Exploration improvements from feedback. #767
Conversation
Avoid race conditions
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome to see these improvements! 😍
A few issues I discovered:
1. Timelime zoom buttons should be shown by default
The buttons currently only appear when there is an active analysis. They are also useful when just viewing data coverage, so they should be always visible.
2. Timeline zoom-in button faster than zoom-out
Pressing zoom-in (+) seems to jump two increments, where zoom-out (-) jumps one.
3. Timeline zoom increments could be smaller in the long time range (years)
Steps to reproduce
- Add multi-year dataset (e.g. NO2 PT)
- Run an analysis for some area over a 2-year time period
- Zoom all the way out to multi-year view
- Try to use the timeline zoom slider or +/- buttons to find a view that nicely fits the time series
I found this hard, because the first 1-2 zoom increments take me from full-domain 8-year view to roughly 1-year view, which is too close to view my 2-year time series. It would be great if the first zoom increments did not make that big a jump.
I know this will be hard to optimize for every possible dataset and analysis length combination. But multi-year datasets are quite common and that users will want to slowly zoom in from full-domain view, so perhaps we could try to improve this end a little?
Idea: every increment halves the domain length. Perhaps keeping it centered on the playhead, when possible.
4. Some icons / buttons are missing tooltips
Great job implementing the changes @danielfdsilva , that was fast ⚡ Great solution for integrating the trash icon on the analysis options panels too! Love the new selection modal 👍 +1 to what @j08lue said, though I don't think we need the tooltips on the chevron-down icons which are part of the dropdown and a common pattern (the label is the date in this case). I would also rename the expand icons to "Expand charts" "Collapse charts" These are other small things I found:
|
@danielfdsilva The designs are ready but I'd like to discuss their technical feasibility, any time that works on your side :) |
@j08lue Comments addressed. I made the zoom halve the width as you suggested. It looks good but the slider jumps are not constant (as expected), but looks somewhat strange... still better than before IMO.
|
Got it, thanks for the clarification!
If we want to keep the subtitle there to make the block more balanced I suggest we change the text to "[number] layer(s) added." It still would give you the number of active layers so people know they have to scroll, which I think is the purpose of the subtitle. What I find a bit confusing about putting the total number of available layers there is that people won't necessarily know what that total number is referring to. That is my assumption, what do y'all think? 🤔
Great, I'll book a session for this week 👍 |
@faustoperez great suggestion. Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of previous review addressed, thanks!
Linearizing the timeline zoom slider
I made the zoom halve the width as you suggested. It looks good but the slider jumps are not constant (as expected), but looks somewhat strange...
It would actually work a lot better if the slider was moving linearly (stepping from 0 to n in steps of 1), but this would translate into powers of two for scaling the time domain.
Like
Maybe using a D3 log₂ scale can do the same?
This would mean it feels linear when you drag the zoom slider or step through zoom levels with +/-, even though the actual time lone scaling happens in powers of two. It would also make the slider equally sensitive to dragging in the lower and higher ranges.
No, I think this is not overengineering. 😄
Side-by-side comparison falsely causes Analysis state to be Outdated
Issue: When you have an active analysis and activate the side-by-side comparison, the analysis state changes to "Outdated", even though none of the analysis parameters (time range, AOI) have changed.
Steps to reproduce:
- Add a dataset
- Complete an analysis
- Activate the side-by-side comparison
- Analysis state is now "Outdated", even though analysis-relevant parameters did not change.
New issue: AOI is not active after being drawn
Steps to reproduce:
- Add a dataset
- Draw an AOI
- AOI is not selected and message says I have to select one before I can start an analysis
Expected behavior would be that the AOI I just drew is selected by default.
New issue: AOI flickers while analysis results are loading
While analysis results are loading, the AOI on the map seems to flicker - quickly changing color or other kind of style intermittently.
Also happens when applying changes after changed parameters.
Log scale... Love it ❤️ Compare and analysis: Actually I think that this should be disabled. You can't compare 2 analysis and this is a bit misleading. Thoughts @j08lue @faustoperez ? |
Agree! I think those two "modes" should be mutually exclusive. But analysis should be persistent, i.e. when exiting comparison mode, if there was an analysis running, the app should remember its previous state. What do y'all think? |
I could actually see the combination to be useful: Zonal statistics time series analysis might point out two interesting states of the system - e.g. a pronounced positive and a negative excursion - and then you can use the slider to compare the two. Our toy task for users was to look at peak fire activity over an area and see whether the spatial patterns were the same between seasons. But you can do that by switching between points in time, too, instead of slide-comparison. And this was only a toy example... So, we could disable this duality for now, to keep it simple, and see whether any (test) user ever mentions it - or ask them directly at some point. |
I loove the smooth time line zooming now, @danielfdsilva, awesome work! ✨😍 Only things left from my previous review, for the record:
|
I see your point, the tricky part then would be to make the comparison slider work with the analysis menus and states 🤔 . I will take another look and report back |
@j08lue Fix reported problems, and introduced a new one. The flickering was happening because the analysis would update the dataset layers, which would cause the map style to be updated. This map style is created by our generators, which were not contemplating the map layers added by the aoi tool. The solution I implemented is for the style generator, not to touch (read delete) any layer that was not created by it. This solves the flickering because the layers are not removed. However, it introduced a new bug: When enabling the compare map, the style applied to it, is the same from the main map, which means that the aoi layers will also be there. The aoi plugin is then initialized on the compare map and it tries to add all its layers, causing an Error ( Just wanted to log this for the future. Not sure how much you want to keep track of this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, the flickering is gone. All complete for the scope of this PR and review! ✨
We can live with that. Might this go away when we refactor the Mapbox draw thing (#710)? |
It runs a little deeper than that... Will merge. Great back and forth on this PR 🎉 |
Items discussed and listed in the figma file. cc @faustoperez @j08lue