Skip to content

Commit b71258d

Browse files
fix(formatters): pad priority labels for consistent TRIAGE column alignment (#449)
## Summary - Pads `Med` and `Low` priority labels to 4 characters (matching `High`) in the TRIAGE column of `issue list` output, so the fixability percentages align consistently across rows. ## Before ``` TRIAGE High 82% Med 65% Low 40% ``` ## After ``` TRIAGE High 82% Med 65% Low 40% ``` The padding is applied inside the `colorTag()` call in `formatPriorityLabel()`, so `string-width` correctly counts the visible width for column sizing. `Critical` (8 chars) is left as-is since it's visually distinct.
1 parent a68826f commit b71258d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/formatters/human.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,9 @@ function formatPriorityLabel(priority?: string | null): string {
760760
case "high":
761761
return colorTag("red", "High");
762762
case "medium":
763-
return colorTag("yellow", "Med");
763+
return colorTag("yellow", "Med ");
764764
case "low":
765-
return colorTag("muted", "Low");
765+
return colorTag("muted", "Low ");
766766
default:
767767
return priority;
768768
}

0 commit comments

Comments
 (0)