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

ASA Map Legend #3141

Closed
wants to merge 23 commits into from
Closed

ASA Map Legend #3141

wants to merge 23 commits into from

Conversation

brettedw
Copy link
Collaborator

@brettedw brettedw commented Sep 28, 2023

  • Adds ASA Map Legend with layer control
  • Adds 'close' button to Summary Panel
  • Changes zoom and panning of fire zones when a zone is selected

Test Links:

Landing Page
MoreCast 2.0
Percentile Calculator
MoreCast
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #3141 (6e60332) into main (4d5e3b6) will decrease coverage by 0.02%.
Report is 2 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3141      +/-   ##
==========================================
- Coverage   84.71%   84.69%   -0.02%     
==========================================
  Files         301      301              
  Lines       10123    10123              
  Branches      588      588              
==========================================
- Hits         8576     8574       -2     
- Misses       1384     1386       +2     
  Partials      163      163              
Files Coverage Δ
.../features/fireWeather/components/maps/constants.ts 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@brettedw brettedw marked this pull request as ready for review September 28, 2023 23:35
@brettedw brettedw requested a review from conbrad October 3, 2023 18:31

const SidePanelGrid = styled(Grid)({
minWidth: 400,
overflowY: 'auto',
overflowY: 'scroll',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was changed because I believe with those stats the scroll will always be there anyway and it removes a little UI stutter when selecting a different fire zone

}

const ZoneSummaryPanel = React.forwardRef((props: Props, ref: React.ForwardedRef<HTMLDivElement>) => {
ZoneSummaryPanel.displayName = 'ZoneSummaryPanel'

if (isUndefined(props.selectedFireZone)) {
const handleClose = () => {
props.setShowSummaryPanel(false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

😎

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@brettedw brettedw closed this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants