Skip to content

Move NWACs mountain weather to the new endpoint - #1273

Merged
kevinherdez merged 5 commits into
NWACus:mainfrom
kevinherdez:kevinherdez/newNWACWeather
Nov 16, 2026
Merged

kevinherdez merged 5 commits into
NWACus:mainfrom
kevinherdez:kevinherdez/newNWACWeather

Conversation

@kevinherdez

@kevinherdez kevinherdez commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Add support for the new NWAC mountain weather endpoint.

Overview

This is a feature that's on web that we need to match on mobile. The formatting code that's used on the table is a direct copy from web. The table UI is largely the same but modified to better fit a mobile interface

Copied code

These files are a direct copy from web. To keep them in sync we might want to consider creating a CI pipeline so when changes happen on web they're picked up on mobile.

  • nwacWeather.ts
  • nwacWeatherFormat.ts

UI

NWACWeatherTab.tsx is the new home for the NWAC specific weather table. Before this lived in WeatherTab.tsx. Now WeatherTab.tsx is the NAC style table.

The main difference in UI between web and the app is that the app is showing different days as their own cards with tables in the cards for Day and Night forecasts. Web shows all of this in 1 table with a different column for each day and night forecast.

Other difference:

  • Snowfall row on web is completely colored in. Mobile just has the value colored as a pill
  • There's no legend for snowfall total and snow/freezing level
  • A lot of the headers have a tooltip with an explanation on mobile. This matches more the entire mountain weather forecast view and not the snippet that's shown as a part of the avalanche forecast
Mountain Weather Tab(1/4) Mountain Weather Tab(2/4) Mountain Weather Tab(3/4) Mountain Weather Tab(4/4)
Screenshot iPhone 18 Pro 11-05-2026 at 2 22 38 PM Screenshot iPhone 18 Pro 11-05-2026 at 2 17 37 PM Screenshot iPhone 18 Pro 11-05-2026 at 2 17 45 PM Screenshot iPhone 18 Pro 11-05-2026 at 2 24 19 PM
Example with more forecast points
Screenshot iPhone 18 Pro 11-05-2026 at 2 17 23 PM
Web for reference
Screenshot 2026-11-05 at 11 49 24 AM

Testing

I tested this on the iOS sim and Android device


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@rchlfryn rchlfryn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice work on this, and the fixture-backed tests are really helpful. Three things need fixing before this merges: the 24-hour window and snow tooltip (inline), plus the staging host below.

Must fix: the staging nwacHost in clientContext.ts is still https://staging.nwac.us. That resolves to the old EC2 host and fails TLS, so staging mode can’t reach /api/nwac/nwac-weather-zone. This needs to point at the AvyWeb environment that serves this route.

Comment thread hooks/useNWACWeatherForecast.ts Resolved
@kevinherdez
kevinherdez added this pull request to the merge queue Nov 16, 2026
Merged via the queue into NWACus:main with commit b54d1b1 Nov 16, 2026
6 checks passed
@kevinherdez
kevinherdez deleted the kevinherdez/newNWACWeather branch November 16, 2026 21: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.

2 participants