-
Notifications
You must be signed in to change notification settings - Fork 34
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
AA storm feature / revisit landfall popup display #1410
AA storm feature / revisit landfall popup display #1410
Conversation
…-last-analysed-date-tooltip
… ssh://github.com/WFP-VAM/prism-app into feature/permanently-show-last-analysed-date-tooltip
…to aa-strom-feature/revisit-landfall-popup-display
9199a46
to
1635a2c
Compare
Build succeeded and deployed at https://prism-1410.surge.sh |
@Max-Z80 let's move the tooltip to the right a bit as Marc did in the Figma designs to avoid hiding parts of the country |
@@ -227,7 +229,7 @@ const AnticipatoryActionStormLayer = React.memo( | |||
e.preventDefault(); | |||
dispatch(hidePopup()); // hides the black tooltip containing the district names | |||
const feature = e.features?.[0]; | |||
setSelectedFeature(feature as Feature<Point>); | |||
setSelectedFeature(feature as unknown as AAStormTimeSeriesFeature); |
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.
Is this avoidable?
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.
(using "unknown")
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.
yes, I have pushed a simple version without unknown.
…://github.com/WFP-VAM/prism-app into aa-storm-feature/revisit-landfall-popup-display
Description
This PR is based on #1407
But this PR also uses code merged from #1408 => this PR shoud be merged after #1408 is merged
LF-{date}
as long as the landfall did not occur. Not visible otherwise.How to test the feature:
Checklist - did you ...
Test your changes with
REACT_APP_COUNTRY=rbd yarn start
REACT_APP_COUNTRY=cambodia yarn start
REACT_APP_COUNTRY=mozambique yarn start
Screenshot/video of feature: