Skip to content

feat: show actionable temperature hint when reading fails (issue #12)#37

Merged
ShadyUnderLight merged 1 commit into
mainfrom
feat/issue-12-temperature-hint-v2
Apr 21, 2026
Merged

feat: show actionable temperature hint when reading fails (issue #12)#37
ShadyUnderLight merged 1 commit into
mainfrom
feat/issue-12-temperature-hint-v2

Conversation

@ShadyUnderLight
Copy link
Copy Markdown
Owner

Summary

  • Add temperatureHint: String? to SystemSummary — non-nil only when temperature is unavailable
  • New temperatureHint() method in SystemMetricsProvider returns a localized actionable message:
    • Intel Mac: "Install osx-cpu-temp or istats"
    • Apple Silicon: "Check System Settings > Privacy & Security"
  • Views.swift: shows the hint in orange below the health line when cpuTemperatureC == nil
  • Two new localization keys per language (EN/ZH-Hans)

Validation

  • swift build passes

Closes #12

@ShadyUnderLight ShadyUnderLight merged commit 7f785af into main Apr 21, 2026
2 checks passed
@ShadyUnderLight ShadyUnderLight deleted the feat/issue-12-temperature-hint-v2 branch April 21, 2026 03:40
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.

[Enhancement] 温度读取失败时 UI 显示 "--°" 无可操作提示,用户不知道原因

1 participant