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

(63) Show guidance on 3 day matrix of forecasts #33

Merged
merged 8 commits into from
Oct 8, 2024

Conversation

edavey
Copy link
Collaborator

@edavey edavey commented Oct 7, 2024

See Trello 63

In this PR we add guidance text for "pollen predictions" in the matrix of 3 day forecasts:

guidance_for_pollen_predictions

We don't add any more content for other rows at this point:

Air pollution

This is currently well developed in the Air Quality Alerts which are current shown above the table of 3 day predictions:

alert_expanded_solo

Temperature

We can easily add this in later.

We've done some refactoring to make our "predictions" more consistent:

  • created a DaqiProperties module to share #daqi_level (e.g. :moderate) and #daqi_label e.g. "Moderate", and always use @value for the numeric score 1 to 10
  • put guidance text into our en.yml "translation" file

We're going to use this to generate values for pollen in the
next commit.
We give the model responsbility for presenting:

- `daqi_level`: e.g. :low
- `daqi_label`: e.g. "Low"
- `guidance `: from our translation system (YAML
We're going to extract these common prediction methods to a
module in a later commit
We'll extract out:

- `daqi_level`
- `daqi_label`

to a module and we'll have a clearer more consistent
interface.
And switch refactor PollenPrediction to use it.
This is much clearer, `#forecast_for` was a poor initial
choice!
@edavey edavey changed the title (63) Show recommended action (63) Show guidance on 3 day matrix of forecasts Oct 7, 2024
@edavey
Copy link
Collaborator Author

edavey commented Oct 7, 2024

@edavey edavey merged commit c01c0df into develop Oct 8, 2024
2 checks passed
@edavey edavey deleted the 63-show-recommended-action branch October 8, 2024 07:57
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.

1 participant