Skip to content

Change supported center concept to NAC center - #1215

Merged
kevinherdez merged 3 commits into
NWACus:mainfrom
kevinherdez:kevinherdez/updateSupportedCenters
Aug 4, 2026
Merged

Change supported center concept to NAC center#1215
kevinherdez merged 3 commits into
NWACus:mainfrom
kevinherdez:kevinherdez/updateSupportedCenters

Conversation

@kevinherdez

@kevinherdez kevinherdez commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

With the Map Project, there's no longer going to be a distinction between known centers and supported (paying) centers. Since all centers are going to be shown on the map, the distinction is now between NAC centers that we can fully support in the app and non NAC centers (infox, UAC, CAIC, and AvCan) that we currently can't fetch forecasts, obs, and weather data for.

Main Changes

  • GNFAC, HAC, KPAC, TAC, VAC, WCMAC are now alphabetically sorted into the center description list and will show in production
  • the isSupportedCenter concept has been refactored to isNACCenter along with the other relevant functions
  • Removed the AvalancheCenters enum as it's not needed anymore

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Comment thread components/avalancheCenterList.ts Outdated
} else {
// Supported centers are sorted according to their order in supportedAvalancheCenters
return centers.findIndex(supported => supported.center === a.center.id) - centers.findIndex(supported => supported.center === b.center.id);
// NAC centers are sorted according to their order in supportedAvalancheCenters

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

need to update to new function name or remove comment 🙂

Comment thread components/avalancheCenterList.ts Outdated
Comment thread components/AvalancheCenterSelector.tsx
@yuliadub

Copy link
Copy Markdown
Collaborator

excited for the future when we will have only one lists of center names to update, thanks for getting us started on that path 😀

@kevinherdez
kevinherdez added this pull request to the merge queue Aug 4, 2026
Merged via the queue into NWACus:main with commit 5177454 Aug 4, 2026
6 checks passed
@kevinherdez
kevinherdez deleted the kevinherdez/updateSupportedCenters branch August 4, 2026 17:16
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