Skip to content

Conversation

@rchlfryn
Copy link
Collaborator

@rchlfryn rchlfryn commented Dec 9, 2025

Description

Adds weather forecast page using the forecast NAC widget.

Related Issues

Fixes #734

Key Changes

  • Adds built in page /weather/forecast which loads the forecast widget and loads weather section using the capabilities API

Screenshots / Demo

SNFAC weather: true

Screenshot 2025-12-08 at 22 31 11

NWAC weather: false

Screenshot 2025-12-08 at 22 30 44

Future enhancements / Questions

Do we like this approach?

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Preview deployment: https://weather-forecast-page.preview.avy-fx.org

Copy link
Collaborator

@busbyk busbyk left a comment

Choose a reason for hiding this comment

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

Should we also add this page to the built-in pages list? https://github.com/NWACus/web/blob/main/docs/onboarding.md#L19

I didn't add the single observation and single avalanche pages there because they're dynamic so it doesn't really apply but this one does.

export type WidgetPageWithRouterKey =
| 'forecasts'
| 'forecast-zone'
| 'weather-forecasts'
Copy link
Collaborator

Choose a reason for hiding this comment

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

⛏️ Do we want to use weather-forecast (singular) to match the title of the page? (= A wicked nitpick)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

forecasts was plural so I blindly followed it. I will update it since it mades sense as a singular forecast.

@rchlfryn
Copy link
Collaborator Author

Should we also add this page to the built-in pages list? https://github.com/NWACus/web/blob/main/docs/onboarding.md#L19

@busbyk I intentionally left this page out since not every Avy center has a weather forecast page. Thoughts?
These have weather: true

- AAIC
- BAC
- BTAC
- CAAC
- CBAC
- CNFAIC
- COAC
- ESAC
- FAC
- GNFAC
- HAC
- HPAC
- IPAC
- KPAC
- MSAC
- MWAC
- PAC
- SAC
- TAC
- VAC
- WAC
- WCMAC

@busbyk
Copy link
Collaborator

busbyk commented Dec 12, 2025

Should we also add this page to the built-in pages list? https://github.com/NWACus/web/blob/main/docs/onboarding.md#L19

@busbyk I intentionally left this page out since not every Avy center has a weather forecast page. Thoughts? These have weather: true

- AAIC
- BAC
- BTAC
- CAAC
- CBAC
- CNFAIC
- COAC
- ESAC
- FAC
- GNFAC
- HAC
- HPAC
- IPAC
- KPAC
- MSAC
- MWAC
- PAC
- SAC
- TAC
- VAC
- WAC
- WCMAC

Ah I hear ya. Maybe makes sense to include it in that list with a caveat that not every center should get it - that it should be based on the capabilities API. I just think that's the only place we have built-in pages documented so including all options there for when we have to create them manually seems helpful.

@rchlfryn
Copy link
Collaborator Author

@busbyk updated in 62a2ed7

@rchlfryn rchlfryn added this pull request to the merge queue Dec 12, 2025
Merged via the queue into main with commit c82692b Dec 12, 2025
8 checks passed
@rchlfryn rchlfryn deleted the weather-forecast-page branch December 12, 2025 02:14
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.

Weather Forecast built in page for Sawtooth

4 participants