Skip to content

feat(frontend): color CPU temp badge by temperature band - #49

Merged
markmybytes merged 1 commit into
mainfrom
feat/cpu-temp-badge-colors
Aug 23, 2026
Merged

feat(frontend): color CPU temp badge by temperature band#49
markmybytes merged 1 commit into
mainfrom
feat/cpu-temp-badge-colors

Conversation

@markmybytes

Copy link
Copy Markdown
Owner

Summary

  • CPU temperature badge now changes color with the reading instead of staying static green:
    • <45°C: apple-green (cool/idle)
    • 45–84°C: yellow (warm/load)
    • ≥85°C: red (critical)
  • Badge switched to UBadge (size preserved via size=sm + padding/font overrides); colors applied as Tailwind classes overriding the default variant, same mechanism as the hit-all badge in match-rules.

Verification

pm run type-check and
pm run lint pass

@markmybytes
markmybytes merged commit 397cfca into main Aug 23, 2026
2 checks passed
@markmybytes
markmybytes deleted the feat/cpu-temp-badge-colors branch August 23, 2026 05:09
markmybytes added a commit that referenced this pull request Aug 28, 2026
* docs: add backend i18n unification handoff

Captures the full context, decisions, architecture, reference adopter (CPU temp), 21-touchpoint inventory, migration phases, and anti-patterns for unifying how Go backend messages/errors cross to the Vue frontend for translation. Triggered by CPU temp follow-ups (#48/#49/#50); the author plans to implement the unification later using this doc as the reference.

* docs: update backend i18n unification handoff document for clarity and structure

* refactor: remove obsolete documentation files

* feat(i18n): unify backend error handling with structured codes

Backend emits *errcode.Error via main.go ErrorFormatter; frontend routes all 48 catch sites through decodeError(err, t) util. pkg/errcode adds minimal Error type (code + params). 80 new error codes seeded in en.json + zh_Hant_HK.json. Confidence tests: decodeError (7), i18n-completeness (6) including errcode.New/Newf coverage grep. See BACKEND_I18N_HANDOFF.md (unstaged).

* feat(frontend): add hover popover for CPU temp side-effect warning

Display an info icon next to the CPU temp detection toggle. On hover,
a popover warns that enabling installs the PwanIO driver on startup
(if missing) and is not removed automatically when disabled.
markmybytes added a commit that referenced this pull request Aug 28, 2026
…53)

* docs: add backend i18n unification handoff

Captures the full context, decisions, architecture, reference adopter (CPU temp), 21-touchpoint inventory, migration phases, and anti-patterns for unifying how Go backend messages/errors cross to the Vue frontend for translation. Triggered by CPU temp follow-ups (#48/#49/#50); the author plans to implement the unification later using this doc as the reference.

* docs: update backend i18n unification handoff document for clarity and structure

* refactor: remove obsolete documentation files

* feat(i18n): unify backend error handling with structured codes

Backend emits *errcode.Error via main.go ErrorFormatter; frontend routes all 48 catch sites through decodeError(err, t) util. pkg/errcode adds minimal Error type (code + params). 80 new error codes seeded in en.json + zh_Hant_HK.json. Confidence tests: decodeError (7), i18n-completeness (6) including errcode.New/Newf coverage grep. See BACKEND_I18N_HANDOFF.md (unstaged).
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