Skip to content

feat: colorize diff stats in footer git badge#439

Closed
RTCartist wants to merge 2 commits into
MoonshotAI:mainfrom
RTCartist:feat/colorize-footer-diff-stats
Closed

feat: colorize diff stats in footer git badge#439
RTCartist wants to merge 2 commits into
MoonshotAI:mainfrom
RTCartist:feat/colorize-footer-diff-stats

Conversation

@RTCartist
Copy link
Copy Markdown

Summary

  • Apply semantic colors to the diff line-change indicators in the footer's git badge: additions (+N) render in the theme's success color (green), deletions (-N) in the error color (red), and the dirty marker (±) in the warning color (amber).
  • Sync arrows (/) and branch name retain the existing status color.
  • Works with both dark and light themes since it uses the palette's semantic color tokens.

Closes #289

Test plan

  • Added 2 test cases: colorized additions/deletions, dirty marker in warning color
  • All 15 footer tests pass
  • Existing formatFooterGitBadge PR badge test still passes (no regression)

RTCartist added 2 commits June 5, 2026 00:08
Apply semantic colors to the diff line-change indicators in the
footer's git badge: additions (+N) render in the theme's success
color, deletions (-N) in the error color, and the dirty marker (±)
in the warning color. Sync arrows and branch name retain the
existing status color.

Closes MoonshotAI#289
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 4, 2026

🦋 Changeset detected

Latest commit: 3cec24b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@liruifengv
Copy link
Copy Markdown
Collaborator

Sorry, we currently do not accept PRs submitted in batches using AI

@liruifengv liruifengv closed this Jun 5, 2026
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.

Color line changes at the footer

2 participants