feat(ui): add right-click close menu for context panel tabs (#3217)

Resolves openchamber/openchamber#3123.

The right panel's tab strip (browser, files, chat, and other
multi-instance surfaces) now supports a right-click context menu with
Close, Close others, Close to the left, Close to the right, and Close
all. These act on the current surface's tabs and reuse the new bulk
close action, so closing the active surface's last tab still closes the
panel while other surfaces remain.

- Add closeContextPanelTabs(directory, ids) to useUIStore
- Add opt-in tabContextMenu prop to SortableTabsStrip (no impact on other consumers)
- Wire the menu in ContextPanel with full i18n coverage across 11 locales
- Cover the bulk close with store tests
This commit is contained in:
Angel Davila
2026-08-29 00:35:24 +03:00
committed by GitHub
parent cbe908009b
commit a78ecf8a7c
18 changed files with 251 additions and 23 deletions
+5
View File
@@ -1284,6 +1284,11 @@ export const dict = {
'contextPanel.browser.annotate.submit': 'Ekle',
'contextPanel.browser.trustNotice': 'Burada açılan sayfalar OpenChamber\'a tam erişimle çalışır — inceleme ve ekran görüntüleri için gereklidir. Yalnızca güvendiğiniz siteleri açın: kötü niyetli bir sayfa verilerinizi okuyabilir veya sizin adınıza hareket edebilir.',
'contextPanel.tab.closeTabAria': '{label} sekmesini kapat',
'contextPanel.tab.menu.close': 'Kapat',
'contextPanel.tab.menu.closeOthers': 'Diğerlerini kapat',
'contextPanel.tab.menu.closeToLeft': 'Soldaki sekmeleri kapat',
'contextPanel.tab.menu.closeToRight': 'Sağdaki sekmeleri kapat',
'contextPanel.tab.menu.closeAll': 'Tüm sekmeleri kapat',
'contextPanel.actions.collapsePanel': 'Paneli daralt',
'contextPanel.actions.expandPanel': 'Paneli genişlet',
'contextPanel.actions.closePanel': 'Paneli kapat',