-
Notifications
You must be signed in to change notification settings - Fork 181
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
Historical events #3558
Historical events #3558
Conversation
d9c8ce0
to
64b733a
Compare
7c7028a
to
0765661
Compare
0765661
to
8449904
Compare
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.
Date field issues in Firefox 78.7.0esr (64-bit) (which do not occur in Chrome):
- Clicking on the up arrow on the first year field causes "an unexpected error".
- Change the first year field to "2000" then change the second year field to "2014". See red box appear around "2014"
- I am allowed to enter an incorrect year (e.g. 1995) in the first year field with no red box indication that it's not allowed. No error given when you click "Apply"
👍🏻 this is my 4th TODO up above :) |
Go to Alaid Volcano event in Geographic, then change to Arctic - it breaks the app. Actually, if you just load volcano events 2013 - 2018 in geographic, and then change to Arctic it breaks the app. I guess there's some issue with the coordinates of some of the volcanoes. (or just look for volcano events in arctic projection between 2013 - 2018) |
Should be fixed now, I wasn't handling polygons when checking coords somewhere. Here is the offending event to test against the latest changes: Demo instance should reflect latest shortly. |
I pulled the latest, but the app still breaks when I change to Arctic projection using the 2016 Alaska volcano event link above |
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.
In progress of reviewing. I have made a few comments so far - they aren't all specifically tied to the code line they're commented on but I just tried to pick relevant files to attach comments on.
@@ -0,0 +1,27 @@ | |||
import React from 'react'; |
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.
I noticed a hanging tooltip related to closely clustered event icons on the map - Inyo Creek Fire is a good example of closely clustered events. After clicking on an event, hovering, and clicking over to another the tooltip becomes sticky to the mouse cursor and doesn't get removed. This is seen in Windows Chrome.
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.
Hmmmm I am not seeing this in Chrome or Firefox on mac. If this happens consistently can you share a video screen capture of what you're doing to make this happen?
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.
HangingTooltip.mp4
I think it's the clicking of another event marker when the tooltip is open.
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.
Cool thanks for the capture, I will keep trying to reproduce this one. All the other stuff should be fixed now
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.
Still no luck reproducing this one in any browser on Mac... any idea what might be happening? As soon as I move the cursor off of any event, the tooltip disappears for me. If I hover over an event and zoom in, the tooltip will stay in place and get disconnected from the event visually but, as soon as I move the mouse it's gone again.
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.
I was just testing UAT out on my Chrome Android mobile and got tooltips stuck as well. It may be from my fast double tapping or double clicking that's causing this. Not quite sure - I can't find what the issue is from poking around, but here is the hanging tooltip in the DOM - they stack up if there are a few of them:
While trying to debug this, I was also able to get the tooltips stuck in the upper left:
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.
I am pushing a change which tweaks the show/hide delay in an attempt to fix this and deploying it to UAT as well so it can be testing on mobile. I still can't reproduce so let me know if this changes things at all. I suspect the tooltips aren't coded to handle having their target move other than due to a viewport scroll event but I haven't gone so far as to dig into their code yet.
If this fix doesn't work let me know if you think we should switch back to the HTML title
attribute tooltip based on how significant or likely to occur you think this issue actually is. Possible cons of the title
attribute: it takes a long time to show and will likely not be noticed by most users.
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.
I'm still getting this issue in mobile like before - single tap on an event icon on the map and the tooltip doesn't get removed. For desktop, it seems to require a double click on the event icon on the map for the issue to trigger then most of the tooltips display over the event icon and also up in the upper left corner (like above image) after click, so two tooltips for the event icon in that case.
This new tooltip looks a lot better than the title
, so it'd be nice to get it working.
Looking around, a lot of stack overflow/github issues reference tooltips not being removed in Bootstrap, so I could see this being a Popper issue related to that Reactstrap component. Only other thing I can think of is to add a unique class to the map marker EventIcon and/or parent in order to remove every map marker EventIcon during remove()
in event-markers.js
.
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.
I'm still getting this issue in mobile like before - single tap on an event icon on the map and the tooltip doesn't get removed.
I still don't ever see this using Chrome on iOS. When I tap an icon the tooltip flashes briefly before the map zooms into the event icon and the tooltip is no longer visible.
For desktop, it seems to require a double click on the event icon on the map for the issue to trigger then most of the tooltips display over the event icon and also up in the upper left corner (like above image) after click, so two tooltips for the event icon in that case.
I do see the "bonus" tooltip in the corner on a double click but both are immediately removed as soon as I move the mouse.
Only other thing I can think of is to add a unique class to the map marker EventIcon and/or parent in order to remove every map marker EventIcon during remove() in event-markers.js.
Not sure I follow... every map marker overlay does get removed when remove()
is called which only happens if one of the four conditions in componendDidUpdate
is met: finishedLoading || projChange || animationFinished || selectedEventChanged
. But that doesn't target tooltips and, if it did it wouldn't help remove them when mousing away from the <EventIcon />
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.
Yeah, it doesn't target tooltips. That is a suggested method to add the code to target tooltips.
|
When a selected event is unselected from the sidebar by clicking on it, the sidebar white highlight is removed, but the selected scaled size event icon remains on the map ( |
Last two style related comments should be fixed by latest push |
This is fixed now. I've disabled switching projections while the map is animating to an event. Basically, while waiting for the map animation promise to return, you are switching projections which causes the layers for a given category to change (wildfire layers not configured for arctic projection for example). Then when it tries to load the appropriate layers, they aren't there. Since I can't think of a good reason why someone would need to rapidly change the projection while they just selected an event so I figured they can wait a second or two for the animation to complete before doing so. |
Something to consider talking to EONET about would be a "default" event date flag... So you can know a "main" date to base an event that is moving. For example, hurricanes that cause major damage in a certain location should probably show up in that location, instead of up in the north where they end. (Not for this release*) |
I think the disable projection change is a good fix to prevent that. I noticed a possible related issue now where after getting events loaded/listed in arctic. I put in a long date range (2000 to 2021) filter in arctic/antarctic is returning a short list of events (35 in this link): Then after the events are loaded switch to antarctic and there are 0 events listed. |
- update selector names - request events on tab change - use utc start/end date on page load
- filter events from API ( and their geometries) by current proj extent
- simplify numVisible counting in layer-list - remove commented out code in layers/selectors - get all categories from config rather than duplicating on event state
- only request events on tab activate if no eventsData - re-draw tracks whenever eventsData finishes loading - don't conditionally render tracks/markers components (always render and let them determine whether to render tracks and markers)
Co-authored-by: Ed Plato <[email protected]>
Co-authored-by: Ed Plato <[email protected]>
- make sure geometries are filtered properly - don't load events when switching to events tab (unless first switch)
dfe064d
to
45a145c
Compare
Description
Fixes #3403
Fixes #3508
Fixes #3428
TODO
Summary of Changes
config/default/common/config/wv.json/naturalEvents.json
instead of requesting from EONET API<ModalFooter />
to modals if thefooter: true
option is sent in call totoggleCustomContent()
. Portals can be used to insert content like action buttons.<DateInputColumn />
, instead use generated class names to move focus among sibling inputs instead.<DateRangeSelector />
component which serves as a start/end date selector. Now used in animation widget as well as event filter modalareCoordinatesWithinExtent()
util function to only require state projection object and coords to check.<EventIcon />
component for showing event icon of given type with hover tooltip<FooterContent />
component to functional componentAdditional Notes
From the comments:
How To Test
In general: