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 Advisory Status Bar #3980

Merged
merged 10 commits into from
Oct 2, 2024
Merged

ASA Advisory Status Bar #3980

merged 10 commits into from
Oct 2, 2024

Conversation

brettedw
Copy link
Collaborator

@brettedw brettedw commented Oct 1, 2024

  • Adds coloured advisory hash bar to the advisory report dropdown. Bar only visible if there is Warning or Advisory status

  • Closes ASA Hashing #3963

  • Additional minor change: updates default tab colour to white to match figma design

Test Links:

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

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.01%. Comparing base (43f30bf) to head (abddb72).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3980   +/-   ##
=======================================
  Coverage   80.01%   80.01%           
=======================================
  Files         302      302           
  Lines       11466    11466           
  Branches      549      549           
=======================================
  Hits         9175     9175           
  Misses       2106     2106           
  Partials      185      185           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@conbrad conbrad left a comment

Choose a reason for hiding this comment

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

🔥

{title}
</Typography>
</StyledAccordionSummary>
{advisoryStatus && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not a fan of the way the UI 'jumps' when switching between a fire zone unit that has an advisory/warning and one that doesn't. What do you think about removing this check for advisoryStatus and having the AdvisoryStatusBar display with the default background when there is no advisory status?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, can do something that. Will need to sort out some different styling logic in that case, otherwise every drop down will have a grey/white hash bar

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, definitely don't want a grey/white hashbar anywhere. I'm thinking just a solid bar all the time when there is no advisoryStatus.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 0b29a3b. Added showAdvisoryStatusBar so we don't also get an extra 10px grey bar on the stats dropdown, thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks great!

@brettedw brettedw requested a review from dgboss October 1, 2024 23:15
Copy link
Collaborator

@dgboss dgboss left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for catering to my visual OCD.

Copy link

sonarcloud bot commented Oct 2, 2024

@brettedw
Copy link
Collaborator Author

brettedw commented Oct 2, 2024

Looks great! Thanks for catering to my visual OCD.

All good! Appreciate the feedback, I like the non-jumpiness too

@brettedw brettedw temporarily deployed to production October 2, 2024 15:43 Inactive
@brettedw brettedw merged commit 8aefeda into main Oct 2, 2024
25 checks passed
@brettedw brettedw deleted the task/asa-hash-bar branch October 2, 2024 15:56
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.

ASA Hashing
3 participants