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
@@ -1073,6 +1073,8 @@ export const dict: Record<I18nKey, string> = {
'contextPanel.mode.chat': 'Chat',
'contextPanel.mode.context': 'Context',
'contextPanel.mode.diff': 'Różnice',
'contextPanel.mode.stagedDiff': 'Staged Diff',
'contextPanel.mode.workingDiff': 'Working Diff',
'contextPanel.mode.files': 'Pliki',
'contextPanel.mode.plan': 'Plan',
'contextPanel.mode.preview': 'Podgląd',
@@ -1421,8 +1423,16 @@ export const dict: Record<I18nKey, string> = {
'gitView.changes.reverting': 'Cofanie...',
'gitView.changes.selectAllAria': 'Zaznacz wszystkie pliki',
'gitView.changes.selectFileAria': 'Zaznacz plik',
'gitView.changes.stagedTitle': 'W indeksie',
'gitView.changes.resizeSplitAria': 'Zmień rozmiar zmian w indeksie i poza indeksem',
'gitView.changes.stageAllAria': 'Dodaj wszystkie zmiany do indeksu',
'gitView.changes.stageDirectoryAria': 'Dodaj do indeksu wszystkie zmiany w {path}',
'gitView.changes.stageFileAria': 'Dodaj {path} do indeksu',
'gitView.changes.title': 'Zmiany',
'gitView.changes.toggleDirectorySelectionAria': 'Przełącz zaznaczenie katalogu',
'gitView.changes.unstageAllAria': 'Usuń wszystkie zmiany z indeksu',
'gitView.changes.unstageDirectoryAria': 'Usuń z indeksu wszystkie zmiany w {path}',
'gitView.changes.unstageFileAria': 'Usuń {path} z indeksu',
'gitView.commit.addGitmoji': 'Dodaj gitmoji',
'gitView.commit.aiHighlights.insertAria': 'Wstaw',
'gitView.commit.aiHighlights.insertTooltip': 'Wstaw',
@@ -1437,6 +1447,7 @@ export const dict: Record<I18nKey, string> = {
'gitView.commit.pushAria': 'Wypchnij',
'gitView.commit.pushing': 'Wypychanie...',
'gitView.commit.selectFilesHint': 'Zaznacz pliki w sekcji Zmiany, aby włączyć commit.',
'gitView.commit.stageFilesHint': 'Dodaj pliki do indeksu, aby włączyć commit.',
'gitView.commit.title': 'Commit',
'gitView.common.cancel': 'Anuluj',
'gitView.common.close': 'Zamknij',
@@ -1700,10 +1711,14 @@ export const dict: Record<I18nKey, string> = {
'gitView.toast.revertedFilesSingle': 'Cofnięto {count} plik',
'gitView.toast.revertedSomePlural': 'Cofnięto {success} plików, {failed} nieudanych',
'gitView.toast.revertedSomeSingle': 'Cofnięto {success} plik, {failed} nieudanych',
'gitView.toast.stageFileFailed': 'Nie udało się dodać zmian do indeksu',
'gitView.toast.stageFileToCommit': 'Dodaj do indeksu co najmniej jeden plik do commita',
'gitView.toast.stageFileToDescribe': 'Dodaj do indeksu co najmniej jeden plik do opisu',
'gitView.toast.selectFileToCommit': 'Zaznacz co najmniej jeden plik do commita',
'gitView.toast.selectFileToDescribe': 'Zaznacz co najmniej jeden plik do opisu',
'gitView.toast.stashedRestored': 'Przywrócono odłożone zmiany',
'gitView.toast.syncActionFailed': 'Operacja {action} nie powiodła się',
'gitView.toast.unstageFileFailed': 'Nie udało się usunąć zmian z indeksu',
'gitView.toast.upstreamSet': 'Ustawiono upstream dla {branch} na {remote}',
'gitView.worktree.availableInWorktreeMode': 'Dostępne tylko w trybie drzewa pracy',
'header.actions.backAria': 'Wstecz',