Skip to content

✨feat: add RenderScoreTableANSI to highlight column maxes#2278

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Mar 21, 2026
Merged

✨feat: add RenderScoreTableANSI to highlight column maxes#2278
mkmccarty merged 1 commit intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 21, 2026 21:14
@mkmccarty mkmccarty merged commit c18c8d6 into main Mar 21, 2026
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch March 21, 2026 21:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to support the new RenderScoreTableANSI helper by documenting how the ANSI-rendered score table behaves (highlighting/columns).

Changes:

  • Added a doc comment for RenderScoreTableANSI describing the ANSI output and optional Diff column.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

btv int
}

// RenderScoreTableANSI renders the score table in an ANSI code block, highlighting the max value in each column. If includeDiff is true, includes the Diff column.
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc comment is a bit misleading/incomplete: includeDiff only controls whether the Diff column is rendered, but Diff values aren’t highlighted based on the column max (they’re colored green/red by sign). Also, whether Contr/TmWk/BTV columns are included depends on srmode, which isn’t mentioned. Please update the comment to reflect the actual coloring/column behavior.

Suggested change
// RenderScoreTableANSI renders the score table in an ANSI code block, highlighting the max value in each column. If includeDiff is true, includes the Diff column.
// RenderScoreTableANSI renders the score table in an ANSI code block. When srmode
// is true, the Contr, TmWk, and BTV columns are included in addition to Name/CXP.
// The numeric columns (CXP, Contr, TmWk, BTV) are highlighted based on the maximum
// value in their respective columns. If includeDiff is true, a Diff column is
// rendered whose values are colored green or red based on sign, not on the column
// maximum.

Copilot uses AI. Check for mistakes.
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.

2 participants