Skip to content

Colour canceled runs dark gray instead of failure red [patch] - #368

Merged
matt-edmondson merged 1 commit into
mainfrom
fix/canceled-run-status-color
Oct 14, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
fix/canceled-run-status-color

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #363

What changed

GetStatusColor mapped RunStatus.Canceled to Palette.Basic.Red, the same colour as RunStatus.Failure. So in the Status column a canceled run looked exactly like a failed one.

Canceled now uses Palette.Neutral.DarkGray. That keeps it apart from Failure (red) and from Pending (Palette.Neutral.Gray). It also matches the History column, which already filters out cancellations instead of treating them as failures.

The issue left the colour as a design call. I picked a neutral one because it was the issue's first suggestion and fits the History column. Changing it later is a one-line edit.

GetStatusColor is now internal, so the new tests can call it.

Tests

  • New StatusColorTests: canceled ≠ failure and canceled ≠ pending.
  • I confirmed the failure test fails with the old Palette.Basic.Red mapping and passes with the fix.
  • BuildMonitor.Test: 140/140 pass. tests/BuildMonitor.UITests: 6/6 pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GKJwMybTmY6x4mJfMM9RKv


Generated by Claude Code

GetStatusColor painted RunStatus.Canceled with the same red as Failure, so
the Status column could not tell a canceled run from a failed one. Canceled
now gets Palette.Neutral.DarkGray, distinct from both Failure (red) and
Pending (gray), matching the History column's view that a cancellation is
not a failure.

Fixes #363

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GKJwMybTmY6x4mJfMM9RKv
@sonarqubecloud

Copy link
Copy Markdown

@matt-edmondson
matt-edmondson merged commit e477b02 into main Oct 14, 2026
16 checks passed
@matt-edmondson
matt-edmondson deleted the fix/canceled-run-status-color branch October 14, 2026 09:05
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.

Canceled runs show the same red status as failed runs

2 participants