feat: Redesign git changes to split stage/unstaged files. (#1359)

* feat: Redesign git changes to split stage/unstaged files.

Signed-off-by: Paolo Insogna <paolo@cowtech.it>

* fixup

Signed-off-by: Paolo Insogna <paolo@cowtech.it>

* fixup

Signed-off-by: Paolo Insogna <paolo@cowtech.it>

* refactor: streamline git changes panel

* fix: label staged and working diff tabs

* fix: isolate staged and working diff files

* fix: scope staged and working diff updates

* fix: scope git row revert to working changes

---------

Signed-off-by: Paolo Insogna <paolo@cowtech.it>
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Paolo Insogna
2026-05-24 00:49:38 +03:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 9af0de0056
commit e16097b05d
42 changed files with 2987 additions and 923 deletions
+15
View File
@@ -452,8 +452,16 @@ export const dict: Record<I18nKey, string> = {
"gitView.changes.reverting": "Скасування...",
"gitView.changes.selectAllAria": "Вибрати всі файли",
"gitView.changes.selectFileAria": "Вибрати файл",
"gitView.changes.stagedTitle": "Індексовані",
"gitView.changes.resizeSplitAria": "Змінити розмір індексованих і неіндексованих змін",
"gitView.changes.stageAllAria": "Додати всі зміни до індексу",
"gitView.changes.stageDirectoryAria": "Додати до індексу всі зміни в {path}",
"gitView.changes.stageFileAria": "Додати {path} до індексу",
"gitView.changes.title": "Зміни",
"gitView.changes.toggleDirectorySelectionAria": "Перемкнути вибір каталогу",
"gitView.changes.unstageAllAria": "Прибрати всі зміни з індексу",
"gitView.changes.unstageDirectoryAria": "Прибрати з індексу всі зміни в {path}",
"gitView.changes.unstageFileAria": "Прибрати {path} з індексу",
"gitView.commit.addGitmoji": "Додати gitmoji",
"gitView.commit.aiHighlights.insertAria": "Вставити підказку",
"gitView.commit.aiHighlights.insertTooltip": "Вставити підказку",
@@ -468,6 +476,7 @@ export const dict: Record<I18nKey, string> = {
"gitView.commit.pushAria": "Commit and sync",
"gitView.commit.pushing": "Sync...",
"gitView.commit.selectFilesHint": "Виберіть файли в розділі «Зміни», щоб увімкнути коміт.",
"gitView.commit.stageFilesHint": "Додайте файли до індексу, щоб увімкнути коміт.",
"gitView.commit.title": "Коміт",
"gitView.common.cancel": "Скасувати",
"gitView.common.close": "Закрити",
@@ -776,15 +785,21 @@ export const dict: Record<I18nKey, string> = {
"gitView.toast.revertedFilesSingle": "Скасовано зміни у файлі: {count}",
"gitView.toast.revertedSomePlural": "Скасовано змін у файлах: {success}, не вдалося: {failed}",
"gitView.toast.revertedSomeSingle": "Скасовано змін у файлах: {success}, не вдалося: {failed}",
"gitView.toast.stageFileFailed": "Не вдалося додати зміни до індексу",
"gitView.toast.stageFileToCommit": "Додайте до індексу принаймні один файл для коміту",
"gitView.toast.stageFileToDescribe": "Додайте до індексу принаймні один файл для опису",
"gitView.toast.selectFileToCommit": "Виберіть принаймні один файл для коміту",
"gitView.toast.selectFileToDescribe": "Виберіть хоча б один файл для опису",
"gitView.toast.stashedRestored": "Зміни зі stash відновлено",
"gitView.toast.syncActionFailed": "{action} не вдалося",
"gitView.toast.unstageFileFailed": "Не вдалося прибрати зміни з індексу",
"gitView.toast.upstreamSet": "Upstream для {branch} встановлено на {remote}",
"gitView.worktree.availableInWorktreeMode": "Доступно лише в режимі worktree",
"contextPanel.mode.chat": "Чат",
"contextPanel.mode.files": "Файли",
"contextPanel.mode.diff": "Diff",
"contextPanel.mode.stagedDiff": "Staged Diff",
"contextPanel.mode.workingDiff": "Working Diff",
"contextPanel.mode.plan": "План",
"contextPanel.mode.context": "Контекст",
"contextPanel.mode.preview": "Перегляд",