Improve branch switch safety and recent branch status (#3302)
* feat(ui): block branch switches on dirty trees * feat(ui): show unpushed commits in git branch selector * feat(ui): show recent branches in git selector * fix(ui): persist recent branch status * feat(ui): add mobile branch picker * fix(ui): guard mobile branch checkout * fix(i18n): restore Turkish git empty state labels * feat(ui): flag dirty draft directories on the branch selector Replaces the draft dirty-directory banner with an indicator on the branch selector: a warning icon plus a hover tooltip that opens by itself for five seconds when the dirty state first appears, then stays hover-only. The copy states the situation and the options (commit or worktree) without prescribing either. * feat(ui): optional push in the dirty branch switch dialog Commit-and-switch gains an opt-in "Push after commit" checkbox. When the push fails the commit stands but the switch is cancelled with an explicit toast, so the user is never moved off a branch without knowing its push did not happen. Without the checkbox the toast states the commit is local only. * fix(i18n): align dirty-directory copy across locales * fix(a11y): name the unpushed-commit badge in the branch picker The badge showed a bare arrow and number with no accessible name or tooltip. Both the desktop recents list and the mobile picker now carry a localized "N commits not pushed" title and aria-label. * fix(mobile): push before switching dirty branches Honor the dirty-switch dialog's push option on the mobile Changes surface. A failed push leaves the new commit on its source branch, refreshes state, and cancels checkout. Mobile branch selection now also shows the existing dirty switch notice.
This commit is contained in:
@@ -777,6 +777,20 @@ export const dict = {
|
||||
'gitView.commit.stageFilesHint': 'Commit\'i etkinleştirmek için dosyaları stage edin.',
|
||||
'gitView.commit.title': 'Commit',
|
||||
'gitView.common.cancel': 'İptal',
|
||||
'gitView.branch.switchBlockedNotice': 'Commit edilmemiş değişiklikler var — geçişten önce commit veya geri alma adımı açılır.',
|
||||
'gitView.branch.unpushedSingle': '1 commit push edilmedi',
|
||||
'gitView.branch.unpushedPlural': '{count} commit push edilmedi',
|
||||
'gitView.branch.recentBranches': 'Son kullanılan dallar',
|
||||
'gitView.dirtySwitch.title': 'Commit edilmemiş değişiklikler',
|
||||
'gitView.dirtySwitch.descriptionSingle': 'Değiştirilen dosyanız kaybolmasın diye {branch} dalına geçiş duraklatıldı. Önce commit edin veya geri alın.',
|
||||
'gitView.dirtySwitch.descriptionPlural': 'Değiştirilen {count} dosyanız kaybolmasın diye {branch} dalına geçiş duraklatıldı. Önce commit edin veya geri alın.',
|
||||
'gitView.dirtySwitch.commitAndSwitch': 'Commit et ve geç',
|
||||
'gitView.dirtySwitch.committedNotPushed': '{branch} dalına commit edildi. Commit yalnızca yerel — push edilmedi.',
|
||||
'gitView.dirtySwitch.pushAfterCommit': 'Commit sonrası push et',
|
||||
'gitView.dirtySwitch.pushFailed': 'Commit edildi ancak push başarısız oldu — dal değiştirilmedi.',
|
||||
'gitView.dirtySwitch.actionFailed': 'İşlem başarısız oldu; dal değiştirilmedi.',
|
||||
'gitView.dirtySwitch.revertAndSwitch': 'Geri al ve geç',
|
||||
'gitView.dirtySwitch.revertIncomplete': 'Bazı değişiklikler geri alınamadığı için dal değiştirilmedi.',
|
||||
'gitView.common.close': 'Kapat',
|
||||
'gitView.common.done': 'Tamam',
|
||||
'gitView.common.processing': 'İşleniyor...',
|
||||
@@ -796,6 +810,8 @@ export const dict = {
|
||||
'gitView.conflict.resolveNewSession': 'Yeni session\'da çöz',
|
||||
'gitView.empty.cleanDescription': 'Tüm değişiklikler commit edildi',
|
||||
'gitView.empty.cleanTitle': 'Working tree temiz',
|
||||
'gitView.empty.discoveringRepositories': 'Git depoları aranıyor...',
|
||||
'gitView.empty.discoverFailed': 'Git depoları taranamadı',
|
||||
'gitView.empty.pullBehindPlural': '{count} commit pull et',
|
||||
'gitView.empty.pullBehindSingle': '{count} commit pull et',
|
||||
'gitView.header.identityTooltip': 'Git kimliği',
|
||||
@@ -959,6 +975,8 @@ export const dict = {
|
||||
'gitView.conflict.noDetailsAvailable': 'Çakışma detayları mevcut değil',
|
||||
'gitView.empty.notGitRepository': 'Bu dizin bir Git repository\'si değil',
|
||||
'gitView.empty.notGitRepositoryDescription': 'Bu dizinde Git\'i başlatın veya bir repository açın.',
|
||||
'gitView.empty.retryDiscovery': 'Yeniden dene',
|
||||
'gitView.empty.selectRepositoryPlaceholder': 'Bir repository seç...',
|
||||
'gitView.empty.selectSessionOrDirectory': 'Git durumunu görüntülemek için bir session veya dizin seçin',
|
||||
'gitView.empty.worktreeFeaturesUnavailable': 'Bu çalışma alanı modunda worktree özellikleri kullanılamıyor.',
|
||||
'gitView.empty.worktreeSetupDescription': 'Worktree kurulumu tamamlanıyor ve repository durumu hazırlanıyor.',
|
||||
@@ -1584,6 +1602,8 @@ export const dict = {
|
||||
'chat.autoReview.reviewSessionLabel': 'İnceleme session\'ı',
|
||||
'chat.autoReview.actions.open': 'Aç',
|
||||
'chat.autoReview.actions.stop': 'Durdur',
|
||||
'chat.draftDirtyNotice.tooltip': 'Bu dalda commit edilmemiş dosyalar var.\nYeni oturum onları görecek. Bir commit veya worktree onları ayrı tutar.',
|
||||
'chat.draftDirtyNotice.indicatorAria': 'Bu dizinde commit edilmemiş değişiklikler var',
|
||||
'diffView.hunk.label': 'Hunk\'lar',
|
||||
'diffView.hunk.stage': 'Stage',
|
||||
'diffView.hunk.unstage': 'Unstage',
|
||||
|
||||
Reference in New Issue
Block a user