Skip to content

Show area temperature and humidity to one decimal place - #5

Merged
adborbas merged 1 commit into
mainfrom
decimal-climate-summary
Jul 13, 2026
Merged

adborbas merged 1 commit into
mainfrom
decimal-climate-summary

Conversation

@adborbas

Copy link
Copy Markdown
Owner

Summary

  • Format the area climate summary (temperature and humidity) with locale-aware one-fraction-digit precision instead of rounding to a whole number, so 23.6°C is shown instead of 24°C.
  • Applies to the area detail view, the areas list, and the Home subtitle (all fed by AreaDisplayHelpers.climateSummary).

Testing

  • Updated AreaDisplayHelpersTests and StateUpdatePropagationTests to assert one-decimal output, building expected strings via the same formatter so they stay locale-independent.
  • Added climateSummary_roundsToOneDecimal to verify rounding (not truncation).
  • All affected tests pass on iPhone 16 Pro simulator.

🤖 Generated with Claude Code

Format the area climate summary with locale-aware one-fraction-digit
precision instead of rounding to a whole number, so 23.6°C is shown
instead of 24°C.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adborbas
adborbas merged commit 12b1acb into main Jul 13, 2026
1 check passed
@adborbas
adborbas deleted the decimal-climate-summary branch July 13, 2026 19:59
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