weather-gov / weather.gov

weather.gov 2.0
Other
331 stars 10 forks source link

Add county page #2067

Open partly-igor opened 3 weeks ago

partly-igor commented 3 weeks ago

Description

We'd like to add a county page that will show the alerts, briefings, local expertise, and WFO promos for each county. This is implementing the designs created in #1363.

Figma documentation

Page Alert component

Context/design

Single WFO Multiple WFOs

Questions and Considerations

  1. For the majority of counties there will only be one WFO and therefore only one briefing, one weather story, and one AFD. However in a few cases there are multiple WFOs covering the same (large) county. These are reflected in the design and will needed to be considered when approaching the implementation.
  2. The alert accordion has been updated for the county page because the county page doesn't have the alert list in the same way the point location page does. So this design incorporates the alert colors and icon into the accordion header.
  3. Note that the design includes a few future-looking components that don't need to be implemented yet:
    • The link to the Zone Forecast Product. This is something that we haven't built yet and so we don't need to add it to the page.
    • The GHWO. This component is still being designed and will be a separate item of work
  4. We are proposing that the data and URL for the county page be parameterized so as to avoid creating thousands of pages. The structure of the URL can be a long the lines of {base_url}/overview/{parameters}. Note that since there are many duplicate county names the parameter should account for that by including fields for the state and county names.

Acceptance Criteria

partly-igor commented 1 week ago

@eric-gade updated the description with the URL format. Happy to talk about it further

We are proposing that the data and URL for the county page be parameterized so as to avoid creating thousands of pages. The structure of the URL can be a long the lines of {base_url}/overview/{parameters}. Note that since there are many duplicate county names the parameter should account for that by including fields for the state and county names.