AddThisFeature

Weather Widget

Show current conditions and a short forecast for a place your users care about.

simple Data & Content

What it adds

A compact widget showing current conditions and a few days of forecast for a chosen location.

What your agent is told to do

5
  1. 1

    Add this as a tile in the app's existing Customizable Dashboard Widgets rather than as a fixed element bolted into a layout, so users who do not want it can remove it.

  2. 2

    Fetch the forecast on the server on a schedule and serve the widget from the app's own cache. Calling the weather source from every visitor's browser leaks the credential and multiplies the request count by your traffic.

  3. 3

    Show the observation time alongside the reading, and reuse the app's Stale Data Indicator conventions so ageing weather looks the same as any other ageing data in the product.

  4. 4

    Reserve the widget's dimensions and render the layout with placeholder values before the data lands, so the dashboard does not reflow when a slow forecast arrives.

  5. 5

    Do not present the forecast as more precise than it is. Round to whole units, keep the forecast short, and do not build hourly detail, radar, or alerts unless someone has actually asked for them.

Edge cases it handles

7
  • When the weather source is unreachable, keep showing the last successful reading with its timestamp and a quiet note that it could not be refreshed. Blanking the widget or showing an error is worse than slightly old weather.
  • Temperature units are a strong regional habit and getting them wrong reads as broken. Follow the viewer's stored unit preference, fall back to their locale, and let them change it from the widget itself.
  • One popular page can turn into thousands of requests a minute against the upstream source. Cache by location with a sensible minimum interval and coalesce concurrent lookups for the same place into a single upstream call.
  • Some locations have no forecast coverage, and some resolve ambiguously to several places with the same name. Say that no forecast is available for the place rather than rendering empty fields, and disambiguate at the point the location is chosen.
  • Weather without a timestamp looks current forever. Show when the observation was taken in the viewer's own time zone, and make an unusually old reading visually distinct rather than merely labelled.
  • Weather icons and condition codes are meaningless to a screen reader. Give every condition a text label, and never convey severity by colour alone.
  • A location chosen from a user's profile may be missing or set to something unresolvable. Fall back to a configured default location rather than showing a broken widget or an empty state with no explanation.

Definition of done

9
  • The widget shows current conditions and a short forecast for the chosen location.
  • Forecast data is fetched server-side and served from cache; no upstream credential reaches the browser.
  • An unavailable source keeps the last reading visible with its timestamp instead of blanking.
  • Units follow the viewer's preference and can be changed from the widget.
  • Observation time renders in the viewer's time zone and old data is visibly marked.
  • Locations without coverage produce a clear message rather than empty fields.
  • The widget occupies its final dimensions before data arrives.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.