Repository navigation
Port v0.59 optional tray pace colors - #493
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thermo-nuclear code-quality review (Oracle request; read-only swarm receipt unavailable for this PR) Verdict: PASS for merge readiness; no merge-blocking thermo finding was verified in the local audit. The requested swarm task for PR #493 timed out before producing a valid receipt. I therefore checked the complete diff and surrounding settings-to-tray path locally. The optional menu_bar_color_pace field is propagated through the typed settings model, partial update command, persistence defaults, tray refresh trigger, and renderer; the render wrappers preserve existing callers and the new behavior has focused direction/opt-in tests. No high-confidence large-file, wrapper, orchestration, type-boundary, atomicity, or decomposition regression was found. The CircleCI/interaction-guard status is tracked separately from this thermo verdict. |
|
Superseding thermo verdict — BLOCKED. Oracle found a canonical pace-policy divergence in this PR. The tray renderer reclassifies raw delta_percent in rust/src/tray/render.rs and tray_bridge.rs, while rust/src/core/usage_pace.rs already owns PaceStage with an on-track band of absolute delta at most 2. A +1 or -1 delta is therefore colored ahead or behind by this PR even though the canonical stage is OnTrack. Drive the tint from the existing PaceSnapshot.stage instead of recreating classification from the raw delta. |
|
Thermo follow-up: blocker fixed and validated. Oracle had blocked this PR because tray code reclassified pace from raw Validation: canonical pace renderer test 1/1; Tauri tray bridge test 1/1; Rust and Tauri clippy with Oracle post-fix verdict: PASS. Hosted CI and Windows CUA evidence remain separate process gates. |
|
Windows UI validation note: fresh |
What changed
Ports the concrete v0.59 pace-color behavior to the existing Windows tray surface:
menuBarColorPacesetting and Display tab toggle.Upstream reference:
fe7a45ffab530e6b850800fd4a01ef1972709b0d.Scope boundary
Windows has no one-to-one equivalent of the upstream macOS status-item pace token, so this port uses the existing
PaceSnapshotwith the existing tray bar/percent renderer. It does not change detailed card pace colors or add macOS-only status-item, plugin, or NSMenu behavior. Devin, Kimi, and shared spend changes are outside this PR.Validation
pnpm test -- --run: 60 files, 350 tests passed.pnpm test -- --run src/surfaces/settings/tabs/DisplayTab.test.tsx: 5 tests passed.pnpm run check-locale: 851 locale keys matched.pnpm run build: passed.cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml: 403 tests passed.CARGO_INCREMENTAL=0 pnpm --dir apps/desktop-tauri run tauri:build:debug: passed.89460BB261AA9DCBFB844CE457710E92AC0E8F47FD46AABDA72B644D90A83FDE.The shared Rust suite run during this porting batch had one unrelated timing-sensitive Claude subprocess test failure (1,768 passed, 1 failed, 1 ignored); its exact rerun passed and the port worktree does not modify that runner. Native Windows CUA visual acceptance was unavailable in this validation session, so manual tray/menu visual verification remains a follow-up acceptance step.