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

Weather tile #542

Merged
merged 9 commits into from Aug 24, 2016
Merged

Weather tile #542

merged 9 commits into from Aug 24, 2016

Conversation

lennym
Copy link
Contributor

@lennym lennym commented Aug 24, 2016

This is sufficient to display a very basic weather/climate tile which shows the average temperature for a destination during the month selected for departure.

The work to show the expanded data when clicking on the tile is ongoing, but it may be that we want to merge this as it is.

Example:

screen shot 2016-08-24 at 16 53 27

If no specific mapping is defined for a type, just look for an id property.

This prevents having to define a lookup function for any new tile type, where we can use the id property as a canonical id.
Rather than defaulting it in the search details component, default it as part of the global default state.

This is needed because the departure date also needs to be available in order to render a weather tile. If it is only defaulted at a component level then it would need to be replicated twice. By setting it at a global level then it only needs to be set once.
Passes the minimum data into a new weather tile component to do basic proff-of-concept rendering.
To prevent undefined function error being thrown
Having one file per image doesn't scale very well at all. Instead have a single constants file which defines the loaction of images within a common root location.
@jackcarlisle
Copy link
Contributor

@lennym looks good! 👍

@jackcarlisle jackcarlisle merged commit 02d2452 into master Aug 24, 2016
@jackcarlisle jackcarlisle deleted the feature/weather-tile branch August 24, 2016 16:19
@lennym
Copy link
Contributor Author

lennym commented Aug 25, 2016

Note: this will need numo-labs/lambda-ne-weather-provider#3 to be merged and promoted to prod to work on non-CI environments.

There is currently the dev version of the weather provider on CI.

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.

None yet

3 participants