feat: add per-day weather forecast API and frontend support#238
Open
candogruyol wants to merge 1 commit into
Open
feat: add per-day weather forecast API and frontend support#238candogruyol wants to merge 1 commit into
candogruyol wants to merge 1 commit into
Conversation
New day_weather table (1:1 with tripday) storing high_temp, low_temp,
condition (sunny/partly-cloudy/cloudy/rain/snow/storm), and rain_chance.
CRUD router at /api/trips/{trip_id}/days/{day_id}/weather with Literal
validation on condition values.
Frontend: getDayWeather() API method for fetching weather data per day.
The weather badge (condition icon + temp range) can be displayed in day
headers using this data.
This feature is designed to work with Claude Code skills that auto-populate
weather forecasts via web search when creating trip itineraries.
Closes itskovacs#212
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per-day weather data for trip days — condition icon + temperature range.
Changes
day_weathertable (1:1 withtripday): high_temp, low_temp, condition, rain_chance/api/trips/{trip_id}/days/{day_id}/weathergetDayWeather()API methodHow it works
Weather data is populated via Claude Code skills that auto-fetch forecasts when planning trips. The frontend displays it as a badge in day headers (e.g. ☀️ 19°/12°).
The skill (v2) handles the full 16-step trip planning flow including weather enrichment — user says "plan a 3-day Lisbon trip" and the agent researches, creates places, sets weather, builds packing lists, everything in one shot.
Closes #212