feat(ui): show the changed-files count badge on the Git rail surface

Replaces the plain activity dot on the context panel rail's Git button with
a numeric badge of the changed-files count from the git store status, so the
count is visible at a glance without opening the Git surface. Large counts
cap at 99+ to keep the pill within the 36px button. The badge is reflected
in the button's accessible label and the hover tooltip.

Fixes #2364
This commit is contained in:
Serhii Dziupin
2026-08-05 13:37:46 +03:00
parent 34c221b07f
commit 9b7c032524
12 changed files with 80 additions and 20 deletions
+2
View File
@@ -1107,6 +1107,8 @@ export const dict: Record<I18nKey, string> = {
'contextPanel.editorEmpty.description': '트리에서 파일을 선택해 편집을 시작하세요.',
'contextRail.surface.editor.description': '프로젝트 파일 편집',
'contextRail.surface.git.description': '커밋, 브랜치, 풀 리퀘스트',
'contextRail.surface.git.changesCountAria': '{label}, 변경된 파일 {count}개',
'contextRail.surface.git.changesCountTooltip': '변경된 파일 {count}개',
'contextRail.surface.terminal.description': '내장 터미널',
'contextRail.surface.diff.description': '작업 중인 변경 사항 검토',
'contextPanel.mode.walkthrough': '워크스루',