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
@@ -452,8 +452,16 @@ export const dict: Record<I18nKey, string> = {
"gitView.changes.reverting": "Revertiendo...",
"gitView.changes.selectAllAria": "Selecionar todos os arquivos",
"gitView.changes.selectFileAria": "Selecionar arquivo",
"gitView.changes.stagedTitle": "Staged",
"gitView.changes.resizeSplitAria": "Ajustar tamanho das alterações staged e unstaged",
"gitView.changes.stageAllAria": "Adicionar todas as alterações ao stage",
"gitView.changes.stageDirectoryAria": "Adicionar todas as alterações em {path} ao stage",
"gitView.changes.stageFileAria": "Adicionar {path} ao stage",
"gitView.changes.title": "Alterações",
"gitView.changes.toggleDirectorySelectionAria": "Alternar selección de diretório",
"gitView.changes.unstageAllAria": "Remover todas as alterações do stage",
"gitView.changes.unstageDirectoryAria": "Remover todas as alterações em {path} do stage",
"gitView.changes.unstageFileAria": "Remover {path} do stage",
"gitView.commit.addGitmoji": "Adicionar gitmoji",
"gitView.commit.aiHighlights.insertAria": "Insertar",
"gitView.commit.aiHighlights.insertTooltip": "Insertar",
@@ -468,6 +476,7 @@ export const dict: Record<I18nKey, string> = {
"gitView.commit.pushAria": "Commit and sync",
"gitView.commit.pushing": "Sincronizando...",
"gitView.commit.selectFilesHint": "Selecione arquivos em Alterações para habilitar o commit.",
"gitView.commit.stageFilesHint": "Adicione arquivos ao stage para habilitar o commit.",
"gitView.commit.title": "Commit",
"gitView.common.cancel": "Cancelar",
"gitView.common.close": "Fechar",
@@ -776,15 +785,21 @@ export const dict: Record<I18nKey, string> = {
"gitView.toast.revertedFilesSingle": "{count} arquivo revertido",
"gitView.toast.revertedSomePlural": "{success} arquivos revertidos, {failed} com falha",
"gitView.toast.revertedSomeSingle": "{success} arquivo revertido, {failed} falhou",
"gitView.toast.stageFileFailed": "Não foi possível adicionar as alterações ao stage",
"gitView.toast.stageFileToCommit": "Adicione ao menos um arquivo ao stage para o commit",
"gitView.toast.stageFileToDescribe": "Adicione ao menos um arquivo ao stage para descrever",
"gitView.toast.selectFileToCommit": "Selecione ao menos um arquivo para o commit",
"gitView.toast.selectFileToDescribe": "Selecione ao menos um arquivo para descrever",
"gitView.toast.stashedRestored": "Alterações do stash restaurados",
"gitView.toast.syncActionFailed": "{action} falhou",
"gitView.toast.unstageFileFailed": "Não foi possível remover as alterações do stage",
"gitView.toast.upstreamSet": "Upstream de {branch} configurado como {remote}",
"gitView.worktree.availableInWorktreeMode": "Disponível apenas em modo worktree",
"contextPanel.mode.chat": "Chat",
"contextPanel.mode.files": "Arquivos",
"contextPanel.mode.diff": "Diff",
"contextPanel.mode.stagedDiff": "Staged Diff",
"contextPanel.mode.workingDiff": "Working Diff",
"contextPanel.mode.plan": "Plano",
"contextPanel.mode.context": "Contexto",
"contextPanel.mode.preview": "Prévia",