From 89ed51e9b7ea38bd4475ce3a234f8c783b3d9b09 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 4 Sep 2026 18:10:39 +0200 Subject: feat(client): minimise to a system tray indicator (GNOME) A dedicated monochrome button in the nav, immediately left of the notification bell, hides the window to a tray indicator. Linux only for now; Windows is being done on that OS, and the capability is declared per platform so the button never appears where the desktop shows no indicator -- there it would hide the window for good. Hides, never closes: `window-all-closed` quits the app, so closing here would make "minimise" mean "exit" and drop the session, the transfers and the node connection. `second-instance` now calls the same restore path, since focusing a hidden window does nothing visible. The context menu is not decoration. Under libappindicator -- how GNOME shows a tray at all, via the AppIndicator extension -- `tray.on('click')` never fires; the indicator only opens its menu. A tray whose sole affordance was a click would be inert on the one desktop this targets. The click handler is kept for desktops that do send it. Menu labels come from the renderer with the IPC call: the locale files are the interface's, the main process has no i18n, and a second string table is how two of them start disagreeing. English fallbacks if none arrive. The icon lives in src/, not build/: package.json `files` packages only `src/**` and `ui/**`, so an icon under build/ is present in a dev run and missing from every installed one. Monochrome, stroked, matching the nav glyph. Verified on this host: Ubuntu GNOME with ubuntu-appindicators@ubuntu.com and libayatana-appindicator3 present, so the indicator has somewhere to appear. Not yet run end to end. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01DtfG7z6wHWj8RKHCvxQtY1 --- packages/meshbay-hub/src/meshbay_hub/static/locales/de.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/en.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/es.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/fr.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/it.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/ja.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/nl.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/pl.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/pt-BR.js | 3 +++ packages/meshbay-hub/src/meshbay_hub/static/locales/zh-CN.js | 3 +++ 10 files changed, 30 insertions(+) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/locales') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/de.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/de.js index 49b5f9e..24ff315 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/de.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/de.js @@ -14,6 +14,9 @@ export default { 'nav.dark_mode': 'Dunkles Design', 'nav.logout': 'Abmelden', 'nav.login': 'Anmelden', + 'nav.minimize_tray': 'In den Infobereich minimieren', + 'tray.show': 'MeshBay anzeigen', + 'tray.quit': 'Beenden', // Sidebar 'sidebar.my_groups': 'Meine Gruppen', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/en.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/en.js index 7ea8989..ce08f1f 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/en.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/en.js @@ -17,6 +17,9 @@ export default { 'nav.dark_mode': 'Dark mode', 'nav.logout': 'Logout', 'nav.login': 'Login', + 'nav.minimize_tray': 'Minimize to tray', + 'tray.show': 'Show MeshBay', + 'tray.quit': 'Quit', // Sidebar 'sidebar.my_groups': 'My Groups', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/es.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/es.js index 6109d4f..7aa1d98 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/es.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/es.js @@ -13,6 +13,9 @@ export default { 'nav.dark_mode': 'Tema oscuro', 'nav.logout': 'Cerrar sesión', 'nav.login': 'Iniciar sesión', + 'nav.minimize_tray': 'Minimizar en la bandeja', + 'tray.show': 'Mostrar MeshBay', + 'tray.quit': 'Salir', // Sidebar 'sidebar.my_groups': 'Mis grupos', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/fr.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/fr.js index 926f64a..b87cb81 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/fr.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/fr.js @@ -13,6 +13,9 @@ export default { 'nav.dark_mode': 'Thème sombre', 'nav.logout': 'Déconnexion', 'nav.login': 'Connexion', + 'nav.minimize_tray': 'Réduire dans la zone de notification', + 'tray.show': 'Afficher MeshBay', + 'tray.quit': 'Quitter', // Sidebar 'sidebar.my_groups': 'Mes groupes', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js index f7011ec..242bdb4 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js @@ -14,6 +14,9 @@ export default { 'nav.dark_mode': 'Tema scuro', 'nav.logout': 'Esci', 'nav.login': 'Accedi', + 'nav.minimize_tray': 'Riduci nella barra di sistema', + 'tray.show': 'Mostra MeshBay', + 'tray.quit': 'Esci', // Sidebar 'sidebar.my_groups': 'I miei gruppi', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/ja.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/ja.js index 592f939..8c8f654 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/ja.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/ja.js @@ -14,6 +14,9 @@ export default { 'nav.dark_mode': 'ダークテーマ', 'nav.logout': 'ログアウト', 'nav.login': 'ログイン', + 'nav.minimize_tray': 'トレイに最小化', + 'tray.show': 'MeshBay を表示', + 'tray.quit': '終了', // Sidebar 'sidebar.my_groups': 'マイグループ', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/nl.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/nl.js index eba234e..566677d 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/nl.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/nl.js @@ -14,6 +14,9 @@ export default { 'nav.dark_mode': 'Donker thema', 'nav.logout': 'Afmelden', 'nav.login': 'Aanmelden', + 'nav.minimize_tray': 'Minimaliseren naar systeemvak', + 'tray.show': 'MeshBay tonen', + 'tray.quit': 'Afsluiten', // Sidebar 'sidebar.my_groups': 'Mijn groepen', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/pl.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/pl.js index 999e689..4e75670 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/pl.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/pl.js @@ -17,6 +17,9 @@ export default { 'nav.dark_mode': 'Motyw ciemny', 'nav.logout': 'Wyloguj', 'nav.login': 'Zaloguj', + 'nav.minimize_tray': 'Zminimalizuj do zasobnika', + 'tray.show': 'Pokaż MeshBay', + 'tray.quit': 'Zakończ', // Sidebar 'sidebar.my_groups': 'Moje grupy', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/pt-BR.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/pt-BR.js index 79d2079..a9fd638 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/pt-BR.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/pt-BR.js @@ -15,6 +15,9 @@ export default { 'nav.dark_mode': 'Tema escuro', 'nav.logout': 'Sair', 'nav.login': 'Entrar', + 'nav.minimize_tray': 'Minimizar na bandeja', + 'tray.show': 'Mostrar o MeshBay', + 'tray.quit': 'Sair', // Sidebar 'sidebar.my_groups': 'Meus grupos', diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/zh-CN.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/zh-CN.js index d67c34b..ca39837 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/zh-CN.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/zh-CN.js @@ -14,6 +14,9 @@ export default { 'nav.dark_mode': '深色主题', 'nav.logout': '退出登录', 'nav.login': '登录', + 'nav.minimize_tray': '最小化到托盘', + 'tray.show': '显示 MeshBay', + 'tray.quit': '退出', // Sidebar 'sidebar.my_groups': '我的群组', -- cgit v1.2.3