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

Initial AFD route, template, and bundle #1538

Merged
merged 12 commits into from
Aug 15, 2024
Merged

Conversation

eric-gade
Copy link
Collaborator

What does this PR do? 🛠️

This PR implements #1525, specifically:

  • Creates a new route and route handler at /afd
  • Has optional filtering by ?wfo= querystring on the route
  • Creates a new template and rendering pipeline for AFDs along that route
  • Can display either the latest AFD anywhere (/afd) or the latest AFD from a specific office (/afd?wfo=ETC)

Note that per the ticket, we are keeping the formatting of the AFD body for the moment. Parsing will be in the next chunk of work.

What does the reviewer need to know? 🤔

Bundler changes

We've also updated the proxy/bundler, so that it can appropriately read, display, and provide information about Products from the API (including AFDs). There is new sample data that has been lightly edited that is available in this PR.

Testing

There are no e2e/browser tests yet, because subsequent tickets will change the structure of the AFD data and page templates dramatically as we move through the parent task.

Screenshots (if appropriate): 📸

Screenshot 2024-08-06 at 5 15 38 PM

Copy link
Collaborator

@greg-does-weather greg-does-weather left a comment

Choose a reason for hiding this comment

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

LGTM!

tests/api/products.js Show resolved Hide resolved
tests/api/products.js Outdated Show resolved Hide resolved
@eric-gade eric-gade force-pushed the eg-1525-initial-afd-page branch 2 times, most recently from 7994883 to 5e74996 Compare August 15, 2024 15:05
@eric-gade eric-gade merged commit 4e1c901 into main Aug 15, 2024
16 of 17 checks passed
@eric-gade eric-gade deleted the eg-1525-initial-afd-page branch August 15, 2024 15:31
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