Distinguish quota warnings from workday markers#1906
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 12:23 AM ET / 04:23 UTC. Summary Reproducibility: not applicable. this is a visual refinement PR rather than a bug report. The changed behavior is reviewable from the current-main source, PR diff, focused tests, and inspected screenshots. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the focused renderer, model, accessibility, and test changes if maintainers approve the stronger warning-marker visual treatment. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a visual refinement PR rather than a bug report. The changed behavior is reviewable from the current-main source, PR diff, focused tests, and inspected screenshots. Is this the best way to solve the issue? Yes, subject to maintainer design approval: the patch reuses the existing Canvas punch-out approach and separates warning and workday marker semantics instead of adding a parallel rendering path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 68f5f9156a05. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
|
@openclaw-mantis visual task: capture CodexBar menu-card quota warning markers before and after the full-height punch-out rendering. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Exact head |
Summary
Why
The previous inset warning hairline could disappear into the fill. The original version of this PR improved visibility, but it treated warning thresholds and workday boundaries as the same dominant marker and used a hard-coded white stripe that could disappear in light mode.
The revised model carries warning and workday percentages independently from projection through rendering. Warning thresholds use the strong punch-out treatment; workday boundaries remain lightweight orientation marks. Colors use adaptive primary/selected-row styling.
Maintainer improvements
mainbefore validation.Validation
swift test --filter 'MenuCardQuotaWarningMarkerTests|MenuCardModelCodexProjectionTests|MiniMaxMenuCardModelPlanTests'— 33 tests passed.make check— 0 format/lint violations.make test— all 47 shards passed.Original before/after proof
Before: softened warning marker.
After baseline from the contributor branch; the maintainer revision further separates workday ticks and adapts light/dark color.