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

Refactor temperature, UV and pollen predictions #46

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

patrickjfl
Copy link
Contributor

Changes in this PR

This PR updates the temperature, UV and pollen predictions on the new forecast page to use reusable components with live data, moving beyond the naive implementation of the designs we have used for predictions until this point.

The temperature prediction is a little different from UV and pollen in that it doesn't have an associated DAQI level, which means it would be awkward to use the same component for all three, so I have instead created a dedicated partial for the temperature prediction.

Screenshots of UI changes

Before

After

Next steps

This will allow us to render these names in our prediction components.
Because temperature doesn’t have an associated DAQI level, it makes sense to use a different partial.
@patrickjfl patrickjfl requested a review from nicky October 14, 2024 15:01
It still makes sense to add a ‘v2’ suffix to these methods to easily differentiate them from the v1 code that we will shortly remove.
@patrickjfl
Copy link
Contributor Author

Copy link

@nicky nicky left a comment

Choose a reason for hiding this comment

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

Looks good, ship it!

@patrickjfl patrickjfl merged commit 8aeff51 into develop Oct 15, 2024
2 checks passed
@patrickjfl patrickjfl deleted the refactor-prediction-partial branch October 15, 2024 09: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