Skip to content

feat: display multi-day weather forecast card in chat #697

@lokhor

Description

@lokhor

Problem

When a user asks for a multi-day forecast (e.g. "what's the weather for the next seven days"), the QIR correctly routes to the weather tool and the tool returns the forecast data. However, the UI only shows the raw tool call result instead of a formatted card.

Currently, only the single-day "today's weather" query displays a nice weather card (high/low temps, conditions, etc.). Multi-day forecasts are just rendered as plain text from the tool response.

Expected Behavior

When the weather tool returns a multi-day forecast, the UI should render a scrollable card showing each day's:

  • Day name
  • High/Low temperatures
  • Weather condition icon
  • Brief description

Same visual treatment as the existing single-day weather card, but adapted for 7 days.

Implementation Notes

  • The weather tool already returns forecast data - just need UI changes
  • Check if the tool response already includes multi-day data or if we need to extend the tool
  • Reuse existing weather card composables where possible
  • Likely changes in the feature/chat UI layer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions