Skip to content

feat(widget): add wind speed unit setting - #5

Merged
markmybytes merged 2 commits into
mainfrom
feat/wind-speed-unit
Oct 16, 2026
Merged

markmybytes merged 2 commits into
mainfrom
feat/wind-speed-unit

Conversation

@markmybytes

Copy link
Copy Markdown
Owner

No description provided.

Wind speed now converts at the data layer: mapPresent emits
wind: { direction, speed, unit } with the speed already in the
requested display unit (WindUnit enum: m/s km/h mph kn, windByUnit
helper), so the six Weather* components only swap their " m/s"
suffix for the unit string the data carries - no prop threading,
no per-component conversion.

- URL contract: ?wind=ms|kmh|mph|kn (case-insensitive, default ms)
  parsed like unit; unstable_cache keys fold the call arguments, so
  each temp-unit x wind-unit pair caches separately.
- Customiser: windSpeedUnit chip cluster in the units panel next to
  the temperature unit; formData.wind mirrors into the preview,
  whose sample emits an honest value at the chosen unit.
- messages: windSpeedUnit label x12 locales; the temp cluster's
  umbrella label "Unit Settings" renamed to "Temperature Unit"
  for accuracy now that the panel holds two unit settings.
- tooling: .slim/ ignore entry.
@markmybytes
markmybytes merged commit b14fe75 into main Oct 16, 2026
2 checks passed
@markmybytes
markmybytes deleted the feat/wind-speed-unit branch October 16, 2026 02:15
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.

1 participant