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

TPI Frontend #3862

Merged
merged 29 commits into from
Aug 20, 2024
Merged

TPI Frontend #3862

merged 29 commits into from
Aug 20, 2024

Conversation

conbrad
Copy link
Collaborator

@conbrad conbrad commented Aug 19, 2024

  • Adds frontend TPI visualization component, calls backend for stats

Closes #2190

Test Links:

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

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.75%. Comparing base (4a2667d) to head (d328405).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3862   +/-   ##
=======================================
  Coverage   79.74%   79.75%           
=======================================
  Files         295      295           
  Lines       10888    10889    +1     
  Branches      518      518           
=======================================
+ Hits         8683     8684    +1     
  Misses       2061     2061           
  Partials      144      144           

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

@conbrad conbrad requested a review from brettedw August 20, 2024 00:48
Copy link
Collaborator

@brettedw brettedw 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, nice work!

AdvisoryTPIStats.valley_bottom,
AdvisoryTPIStats.mid_slope,
AdvisoryTPIStats.upper_slope,
AdvisoryTPIStats.advisory_shape_id, AdvisoryTPIStats.valley_bottom, AdvisoryTPIStats.mid_slope, AdvisoryTPIStats.upper_slope, AdvisoryTPIStats.pixel_size_metres
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is pixel_size needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah it's expected to compute the area in the TPI endpoint

@@ -8,7 +8,7 @@ interface InfoPanelProps {
// A component to host information in a side panel in ASA.
const InfoPanel = React.forwardRef(({ children }: InfoPanelProps, ref: React.ForwardedRef<HTMLDivElement>) => {
return (
<Grid data-testid="info-panel" item ref={ref} sx={{ width: '500px', overflowY: 'auto' }}>
<Grid data-testid="info-panel" item ref={ref} sx={{ minWidth: '500px', maxWidth: '500px', overflowY: 'auto' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, what's the purpose of setting both min and max width to be equal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No idea, picked it up from the existing commits in the branch but I can try undoing it 😅

Copy link

sonarcloud bot commented Aug 20, 2024

@conbrad conbrad temporarily deployed to production August 20, 2024 17:58 Inactive
@conbrad conbrad merged commit ff866fd into main Aug 20, 2024
28 checks passed
@conbrad conbrad deleted the task/tpi-front-end/2190B branch August 20, 2024 18:08
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 - Additional Grids: Elevation - Front End
3 participants