Skip to content
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

MapShed Compare: Window and Scenario Header Row #2921

Merged
merged 6 commits into from Aug 13, 2018

Conversation

rajadain
Copy link
Member

Overview

Enables Compare View for GWLF-E projects. Adds colors for 32 scenarios to be used in the charts. Adds a header row for GWLF-E scenarios that don't have a map, but do have a color badge. The popover works the same as in TR-55, but the modifications aren't listed correctly. That is left for #2920.

Connects #2908
Connects #2912
Connects #2913

Demo

image

2018-08-13 15 37 18

Testing Instructions

  • Check out this branch and bundle
  • Make a GWLF-E project. Add a scenario. Try the Compare View. Ensure you see a colored badge against each Scenario's name in the header, and that there is no map.
  • Make a TR-55 project. Add a scenario. Try the Compare View. Ensure works same as before.

Previously the Compare View button was only shown for
TR-55 projects. Now we show it for both TR-55 and MapShed
projects.
Previously the Precipitation Slider was always shown because
the input scenarios were always TR-55. Now since we can have
MapShed scenarios that do not have precipitation inputs, we
guard the slider rendering to only show when there are well
defined values backing it.
Since the GWLFE Scenario Item Views will not have
maps, but colors instead, we're going to make new
ones for them. This prefixes the TR-55 ones with
that tag so they are easily distinguished.
This adds a new template and view for GWLFE scenarios
that doesn't include a map. It does include a spot for
showing a scenario color which will correspond with the
charts, to be added in upcoming PRs.

The list of modifications shown on hover isn't quite
right for MapShed. This will be addressed in #2920.
We add a color out of a list of 32 to every scenario copied.
This color will be used to highlight the item in the chart
and also in the header row for GWLFE. If there are more than
32 scenarios, we will start reusing the colors.

Adding the color to a TR-55 scenario is effectively a no-op.
@kellyi
Copy link
Contributor

kellyi commented Aug 13, 2018

I have this branch up now and it's working well. TR-55 Compare View still works as before and the MapShed compare view works as depicted above!

Copy link
Contributor

@kellyi kellyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kellyi kellyi assigned rajadain and unassigned kellyi Aug 13, 2018
@rajadain rajadain merged commit 20dc2ed into develop Aug 13, 2018
@rajadain rajadain deleted the tt+ki/mapshed-compare-open-window branch August 13, 2018 20:49
@rajadain
Copy link
Member Author

Thanks for pairing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants