Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor(settings): merge workspace/private tabs into one list on runtime resource pages (#23489)

Rdmclin289b7d51732fd
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index e30cf84a617..b3989165db6 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "لم يتم إعداد ملف تعريف المجتمع بعد. يرجى إكمال إعداد ملف تعريف مجتمع مساحة العمل لإدارة بيانات الاعتماد.",
"creds.owner.fromPersonal": "من حسابك الشخصي",
"creds.owner.sharedBy": "تمت المشاركة بواسطة {{name}}",
- "creds.privateSection.desc": "أنت وحدك من يمكنه رؤية بيانات الاعتماد هذه واستخدامها في مساحة العمل هذه. انشر واحدة ليتمكن كل الأعضاء من استخدامها.",
- "creds.privateSection.empty": "لا توجد بيانات اعتماد خاصة بعد",
"creds.share.alreadyShared": "تمت المشاركة",
"creds.share.badge": "تمت المشاركة في {{count}} مساحة عمل",
"creds.share.confirm": "مشاركة",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "لم يتم الاستخدام",
"creds.table.preview": "معاينة",
"creds.table.type": "النوع",
- "creds.tabs.private": "خاصة",
- "creds.tabs.workspace": "مكان العمل",
"creds.typeDesc.file": "تحميل ملفات بيانات الاعتماد مثل حسابات الخدمة أو الشهادات",
"creds.typeDesc.kv-env": "تخزين مفاتيح API والرموز كمتغيرات بيئية",
"creds.typeDesc.kv-header": "تخزين قيم التفويض كعناوين HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "لا يمكن للمشاهدين إنشاء بيانات اعتماد",
"creds.visibility.publish": "النشر في مساحة العمل",
"creds.visibility.publishConfirmTitle": "هل تريد نشر بيانات الاعتماد هذه في مساحة العمل؟",
- "creds.workspaceSection.desc": "بيانات الاعتماد المتاحة للجميع في مساحة العمل هذه، بما في ذلك بيانات الاعتماد التي يشاركها الأعضاء.",
"danger.reset.action": "إعادة التعيين الآن",
"danger.reset.confirm": "هل تريد إعادة تعيين جميع الإعدادات؟",
"danger.reset.currentVersion": "الإصدار الحالي",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "نشر في مساحة العمل",
"devices.visibility.publishConfirmTitle": "هل تريد نشر هذا الجهاز في مساحة العمل؟",
"devices.visibilityTabs.private": "خاص",
- "devices.visibilityTabs.workspace": "مساحة العمل",
"devices.workingDirectory": "دليل العمل: {{path}}",
"drive.explorer.columns.kind": "النوع",
"drive.explorer.columns.modified": "تاريخ التعديل",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "لا يوجد أمر إعداد",
"environments.duplicateName": "لديك بالفعل بيئة بهذا الاسم",
"environments.empty": "لا توجد بيئات حتى الآن",
- "environments.emptyPublished": "لا يوجد شيء منشور في مساحة العمل هذه حتى الآن",
"environments.files.back": "رجوع",
"environments.files.binary": "ليس ملف نصي، لذا لا يمكن عرضه هنا.",
"environments.files.browse": "تصفح الملفات",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "النشر إلى مساحة العمل",
"environments.visibility.publishConfirmTitle": "نشر هذه البيئة إلى مساحة العمل؟",
"environments.visibility.readonlyHint": "تم نشره إلى مساحة العمل هذه بواسطة منشئه: يمكنك التشغيل في هذه البيئة، ولكن فقط يمكنهم تغيير ما تبنيه.",
- "environments.visibility.tabs.private": "خاص",
- "environments.visibility.tabs.workspace": "مساحة العمل",
"group.aiConfig": "النموذج",
"group.common": "عام",
"group.developer": "مطور",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index 063a9622d20..124a9e33ff9 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Профилът на общността не е настроен. Моля, завършете настройката на профила на общността на работното пространство, за да управлявате идентификационните данни.",
"creds.owner.fromPersonal": "От вашия личен акаунт",
"creds.owner.sharedBy": "Споделено от {{name}}",
- "creds.privateSection.desc": "Само вие можете да виждате и използвате тези удостоверения за достъп в това работно пространство. Публикувайте едно, за да може всеки член да го използва.",
- "creds.privateSection.empty": "Все още няма частни удостоверения за достъп",
"creds.share.alreadyShared": "Споделено",
"creds.share.badge": "Споделено с {{count}} работни пространства",
"creds.share.confirm": "Споделете",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Никога",
"creds.table.preview": "Преглед",
"creds.table.type": "Тип",
- "creds.tabs.private": "Частни",
- "creds.tabs.workspace": "Работно пространство",
"creds.typeDesc.file": "Качете файлове с идентификатори като акаунти за услуги или сертификати",
"creds.typeDesc.kv-env": "Съхранявайте API ключове и токени като променливи на средата",
"creds.typeDesc.kv-header": "Съхранявайте стойности за удостоверяване като HTTP заглавки",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Зрителите не могат да създават удостоверения за достъп",
"creds.visibility.publish": "Публикуване в работното пространство",
"creds.visibility.publishConfirmTitle": "Да публикувате ли това удостоверение за достъп в работното пространство?",
- "creds.workspaceSection.desc": "Удостоверения, достъпни за всички в това работно пространство, включително удостоверения, споделени от членовете.",
"danger.reset.action": "Нулирай сега",
"danger.reset.confirm": "Да се нулират ли всички настройки?",
"danger.reset.currentVersion": "Текуща версия",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Публикувай в работно пространство",
"devices.visibility.publishConfirmTitle": "Да публикуваме това устройство в работното пространство?",
"devices.visibilityTabs.private": "Лично",
- "devices.visibilityTabs.workspace": "Работно пространство",
"devices.workingDirectory": "Работна директория: {{path}}",
"drive.explorer.columns.kind": "Тип",
"drive.explorer.columns.modified": "Дата на промяна",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Няма команда за настройка",
"environments.duplicateName": "Вече имате среда с това име",
"environments.empty": "Все още няма среди",
- "environments.emptyPublished": "Нищо не е публикувано в този работен простор",
"environments.files.back": "Назад",
"environments.files.binary": "Не е текстов файл, така че не може да бъде показан тук.",
"environments.files.browse": "Преглед на файлове",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Публикуване в работния простор",
"environments.visibility.publishConfirmTitle": "Публикуване на тази среда в работния простор?",
"environments.visibility.readonlyHint": "Публикувано в този работен простор от неговия създател: можете да работите в тази среда, но само той може да променя това, което изгражда.",
- "environments.visibility.tabs.private": "Частно",
- "environments.visibility.tabs.workspace": "Работен простор",
"group.aiConfig": "Агент",
"group.common": "Общи",
"group.developer": "Разработчик",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index d7a2cfd615b..f16236bed63 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Community-Profil noch nicht eingerichtet. Bitte richten Sie das Community-Profil des Arbeitsbereichs ein, um Anmeldedaten zu verwalten.",
"creds.owner.fromPersonal": "Aus deinem persönlichen Konto",
"creds.owner.sharedBy": "Geteilt von {{name}}",
- "creds.privateSection.desc": "Nur du kannst diese Zugangsdaten in diesem Arbeitsbereich sehen und verwenden. Veröffentliche sie, damit alle Mitglieder sie nutzen können.",
- "creds.privateSection.empty": "Noch keine privaten Zugangsdaten",
"creds.share.alreadyShared": "Geteilt",
"creds.share.badge": "In {{count}} Arbeitsbereiche geteilt",
"creds.share.confirm": "Teilen",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Nie",
"creds.table.preview": "Vorschau",
"creds.table.type": "Typ",
- "creds.tabs.private": "Privat",
- "creds.tabs.workspace": "Arbeitsbereich",
"creds.typeDesc.file": "Berechtigungsdateien wie Servicekonten oder Zertifikate hochladen",
"creds.typeDesc.kv-env": "API-Schlüssel und Tokens als Umgebungsvariablen speichern",
"creds.typeDesc.kv-header": "Autorisierungswerte als HTTP-Header speichern",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Betrachter können keine Zugangsdaten erstellen",
"creds.visibility.publish": "Im Arbeitsbereich veröffentlichen",
"creds.visibility.publishConfirmTitle": "Diese Zugangsdaten im Arbeitsbereich veröffentlichen?",
- "creds.workspaceSection.desc": "Anmeldedaten, die allen in diesem Arbeitsbereich zur Verfügung stehen, einschließlich der von Mitgliedern geteilten Anmeldedaten.",
"danger.reset.action": "Jetzt zurücksetzen",
"danger.reset.confirm": "Alle Einstellungen zurücksetzen?",
"danger.reset.currentVersion": "Aktuelle Version",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Im Arbeitsbereich veröffentlichen",
"devices.visibility.publishConfirmTitle": "Dieses Gerät im Arbeitsbereich veröffentlichen?",
"devices.visibilityTabs.private": "Privat",
- "devices.visibilityTabs.workspace": "Arbeitsbereich",
"devices.workingDirectory": "Arbeitsverzeichnis: {{path}}",
"drive.explorer.columns.kind": "Art",
"drive.explorer.columns.modified": "Änderungsdatum",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Kein Einrichtungsbefehl",
"environments.duplicateName": "Sie haben bereits eine Umgebung mit diesem Namen",
"environments.empty": "Noch keine Umgebungen",
- "environments.emptyPublished": "Noch nichts in diesem Arbeitsbereich veröffentlicht",
"environments.files.back": "Zurück",
"environments.files.binary": "Keine Textdatei, daher kann sie hier nicht angezeigt werden.",
"environments.files.browse": "Dateien durchsuchen",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Im Arbeitsbereich veröffentlichen",
"environments.visibility.publishConfirmTitle": "Diese Umgebung im Arbeitsbereich veröffentlichen?",
"environments.visibility.readonlyHint": "Vom Ersteller in diesem Arbeitsbereich veröffentlicht: Sie können in dieser Umgebung arbeiten, aber nur der Ersteller kann ändern, was sie erstellt.",
- "environments.visibility.tabs.private": "Privat",
- "environments.visibility.tabs.workspace": "Arbeitsbereich",
"group.aiConfig": "Agent",
"group.common": "Allgemein",
"group.developer": "Entwickler",
diff --git a/locales/en-US/common.json b/locales/en-US/common.json
index 6d8212e4955..b37b51f7b2a 100644
--- a/locales/en-US/common.json
+++ b/locales/en-US/common.json
@@ -601,5 +601,10 @@
"visibilityConfirm.publish.itemLoaded": "After switching back, content others have already loaded can’t be pulled back",
"visibilityConfirm.publish.itemReversible": "You can switch it back to private later from the same menu",
"visibilityConfirm.publish.itemVisible": "All workspace members will see this immediately",
+ "visibilityFilter.all": "All",
+ "visibilityFilter.empty": "Nothing matches this filter",
+ "visibilityFilter.label": "Filter by visibility",
+ "visibilityFilter.private": "Private",
+ "visibilityFilter.workspace": "Workspace",
"zoom": "Zoom"
}
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 7e40702ab1c..953e9989855 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -505,12 +505,11 @@
"creds.form.uploadHint": "Click or drag file to upload",
"creds.form.valuePlaceholder": "Enter value",
"creds.form.values": "Key-Value Pairs",
+ "creds.listDesc": "Shared credentials everyone in this workspace can use, plus your private ones (marked with a lock). New credentials start private; publish one to share it with the workspace.",
"creds.oauth.noConnections": "No OAuth connections available. Please connect an account first.",
"creds.orgSetupRequired": "Community Profile not set up yet. Please complete the workspace Community Profile setup to manage credentials.",
"creds.owner.fromPersonal": "From your personal account",
"creds.owner.sharedBy": "Shared by {{name}}",
- "creds.privateSection.desc": "Only you can see and use these credentials in this workspace. Publish one to let every member use it.",
- "creds.privateSection.empty": "No private credentials yet",
"creds.share.alreadyShared": "Shared",
"creds.share.badge": "Shared to {{count}} workspaces",
"creds.share.confirm": "Share",
@@ -538,8 +537,6 @@
"creds.table.neverUsed": "Never",
"creds.table.preview": "Preview",
"creds.table.type": "Type",
- "creds.tabs.private": "Private",
- "creds.tabs.workspace": "Workspace",
"creds.typeDesc.file": "Upload credential files like service accounts or certificates",
"creds.typeDesc.kv-env": "Store API keys and tokens as environment variables",
"creds.typeDesc.kv-header": "Store authorization values as HTTP headers",
@@ -558,7 +555,6 @@
"creds.viewerHint": "Viewers can't create credentials",
"creds.visibility.publish": "Publish to Workspace",
"creds.visibility.publishConfirmTitle": "Publish this credential to the workspace?",
- "creds.workspaceSection.desc": "Credentials available to everyone in this workspace, including credentials shared by members.",
"danger.reset.action": "Reset Now",
"danger.reset.confirm": "Reset all settings?",
"danger.reset.currentVersion": "Current Version",
@@ -780,7 +776,6 @@
"devices.visibility.publish": "Publish to Workspace",
"devices.visibility.publishConfirmTitle": "Publish this device to the workspace?",
"devices.visibilityTabs.private": "Private",
- "devices.visibilityTabs.workspace": "Workspace",
"devices.workingDirectory": "Working dir: {{path}}",
"drive.cleanup.back": "Back to files",
"drive.cleanup.category.archives": "Archives",
@@ -917,7 +912,6 @@
"environments.detail.notFound": "This environment doesn't exist or you can't see it.",
"environments.duplicateName": "You already have an environment with this name",
"environments.empty": "No environments yet",
- "environments.emptyPublished": "Nothing published to this workspace yet",
"environments.files.back": "Back",
"environments.files.binary": "Not a text file, so it cannot be shown here.",
"environments.files.browse": "Browse files",
@@ -1152,8 +1146,7 @@
"environments.visibility.publish": "Publish to Workspace",
"environments.visibility.publishConfirmTitle": "Publish this environment to the workspace?",
"environments.visibility.readonlyHint": "Published to this workspace by its creator: you can initialize with this environment, but only they can change it.",
- "environments.visibility.tabs.private": "Private",
- "environments.visibility.tabs.workspace": "Workspace",
+ "environments.workspaceListDesc": "Environments published to this workspace, plus your private ones (marked with a lock). New environments start private; publish one to share it with the workspace.",
"group.aiConfig": "Agent",
"group.common": "General",
"group.connection": "Connections",
@@ -2328,10 +2321,8 @@
"subscriptionAccounts.columns.rotation": "Balancing",
"subscriptionAccounts.columns.status": "Status",
"subscriptionAccounts.empty.desc": "Sign in to Claude Code, Codex or Kimi Code on a connected device. The account appears here once it reports its quota.",
- "subscriptionAccounts.empty.privateDesc": "No private accounts here. Accounts you sign in to on your devices start here, visible only to you.",
"subscriptionAccounts.empty.title": "No subscription accounts yet",
- "subscriptionAccounts.empty.workspaceDesc": "No accounts are shared with this workspace yet. Share one from the Private tab so teammates' agents can use it.",
- "subscriptionAccounts.filter.all": "All",
+ "subscriptionAccounts.filter.allProviders": "All providers",
"subscriptionAccounts.filterEmpty": "No account matches the filter.",
"subscriptionAccounts.loadFailed": "Couldn't load subscription accounts",
"subscriptionAccounts.meter.session": "5-hour",
@@ -2346,18 +2337,16 @@
"subscriptionAccounts.status.exhaustedNoReset": "Used up",
"subscriptionAccounts.status.noData": "No quota reported yet",
"subscriptionAccounts.summary": "{{inRotation}} of {{count}} in rotation",
- "subscriptionAccounts.tabs.private": "Private",
- "subscriptionAccounts.tabs.workspace": "Workspace",
"subscriptionAccounts.updateFailed": "Couldn't update the account. Try again.",
"subscriptionAccounts.usageTitle": "Usage history",
"subscriptionAccounts.visibility.privateAction": "Make private",
"subscriptionAccounts.visibility.privateConfirm.desc": "Only you will see it. Other members' agents stop drawing on its quota.",
"subscriptionAccounts.visibility.privateConfirm.title": "Make this account private?",
- "subscriptionAccounts.visibility.privateDone": "Made private. It now lists under Private.",
+ "subscriptionAccounts.visibility.privateDone": "Made private. Only you can see it now; it shows a lock in the list.",
"subscriptionAccounts.visibility.publicAction": "Share with workspace",
"subscriptionAccounts.visibility.publicConfirm.desc": "Every member will see it, and their agents can draw on its quota. You can make it private again from the same menu.",
"subscriptionAccounts.visibility.publicConfirm.title": "Share this account with the workspace?",
- "subscriptionAccounts.visibility.publicDone": "Shared. It now lists under Workspace.",
+ "subscriptionAccounts.visibility.publicDone": "Shared. Everyone in this workspace can use it now.",
"sync.device.deviceName.hint": "Add a name for easy identification",
"sync.device.deviceName.placeholder": "Enter device name",
"sync.device.deviceName.title": "Device Name",
@@ -4402,6 +4391,7 @@
"workspaceSetting.devices.connectTitlePublic": "Add public device",
"workspaceSetting.devices.empty": "No workspace devices yet.",
"workspaceSetting.devices.enrollDesc": "Run this on the machine you want to share with the workspace:",
+ "workspaceSetting.devices.enrollPrivateDesc": "Run this on the machine you want to connect. It starts private to you; publish it to the workspace from its card menu.",
"workspaceSetting.devices.enrollTitle": "Add a device",
"workspaceSetting.devices.enrolledBy": "Enrolled by {{name}}",
"workspaceSetting.devices.enrolledByLabel": "Enrolled by",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index 57e112fcdc5..33e77e6b950 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "El perfil de la comunidad no está configurado aún. Por favor, complete la configuración del perfil de la comunidad del espacio de trabajo para gestionar las credenciales.",
"creds.owner.fromPersonal": "De tu cuenta personal",
"creds.owner.sharedBy": "Compartido por {{name}}",
- "creds.privateSection.desc": "Solo tú puedes ver y usar estas credenciales en este espacio de trabajo. Publica una para que todos los miembros puedan usarla.",
- "creds.privateSection.empty": "Aún no hay credenciales privadas",
"creds.share.alreadyShared": "Compartida",
"creds.share.badge": "Compartida en {{count}} espacios de trabajo",
"creds.share.confirm": "Compartir",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Nunca",
"creds.table.preview": "Vista Previa",
"creds.table.type": "Tipo",
- "creds.tabs.private": "Privada",
- "creds.tabs.workspace": "Espacio de trabajo",
"creds.typeDesc.file": "Cargue archivos de credenciales como cuentas de servicio o certificados",
"creds.typeDesc.kv-env": "Almacene claves API y tokens como variables de entorno",
"creds.typeDesc.kv-header": "Almacene valores de autorización como encabezados HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Los espectadores no pueden crear credenciales",
"creds.visibility.publish": "Publicar en el espacio de trabajo",
"creds.visibility.publishConfirmTitle": "¿Publicar esta credencial en el espacio de trabajo?",
- "creds.workspaceSection.desc": "Credenciales disponibles para todos en este espacio de trabajo, incluidas las credenciales compartidas por los miembros.",
"danger.reset.action": "Restablecer Ahora",
"danger.reset.confirm": "¿Restablecer todas las configuraciones?",
"danger.reset.currentVersion": "Versión Actual",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Publicar en espacio de trabajo",
"devices.visibility.publishConfirmTitle": "¿Publicar este dispositivo en el espacio de trabajo?",
"devices.visibilityTabs.private": "Privado",
- "devices.visibilityTabs.workspace": "Espacio de trabajo",
"devices.workingDirectory": "Directorio de trabajo: {{path}}",
"drive.explorer.columns.kind": "Tipo",
"drive.explorer.columns.modified": "Fecha de modificación",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Sin comando de configuración",
"environments.duplicateName": "Ya tienes un entorno con este nombre",
"environments.empty": "Aún no hay entornos",
- "environments.emptyPublished": "Nada publicado en este espacio de trabajo aún",
"environments.files.back": "Atrás",
"environments.files.binary": "No es un archivo de texto, por lo que no se puede mostrar aquí.",
"environments.files.browse": "Explorar archivos",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Publicar en el espacio de trabajo",
"environments.visibility.publishConfirmTitle": "¿Publicar este entorno en el espacio de trabajo?",
"environments.visibility.readonlyHint": "Publicado en este espacio de trabajo por su creador: puedes ejecutar en este entorno, pero solo ellos pueden cambiar lo que construye.",
- "environments.visibility.tabs.private": "Privado",
- "environments.visibility.tabs.workspace": "Espacio de trabajo",
"group.aiConfig": "Agente",
"group.common": "General",
"group.developer": "Desarrollador",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index ab11db7b370..ac3282dd811 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "پروفایل انجمن هنوز تنظیم نشده است. لطفاً تنظیمات پروفایل انجمن فضای کاری را برای مدیریت اعتبارنامه‌ها تکمیل کنید.",
"creds.owner.fromPersonal": "از حساب شخصی شما",
"creds.owner.sharedBy": "به اشتراک گذاشته شده توسط {{name}}",
- "creds.privateSection.desc": "فقط شما می‌توانید این اعتبارنامه‌ها را در این فضای کاری ببینید و استفاده کنید. یکی را منتشر کنید تا همه اعضا بتوانند از آن استفاده کنند.",
- "creds.privateSection.empty": "هنوز اعتبارنامه خصوصی وجود ندارد",
"creds.share.alreadyShared": "به اشتراک گذاشته شده",
"creds.share.badge": "به اشتراک گذاشته شده در {{count}} فضای کاری",
"creds.share.confirm": "اشتراک‌گذاری",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "هرگز",
"creds.table.preview": "پیش‌نمایش",
"creds.table.type": "نوع",
- "creds.tabs.private": "خصوصی",
- "creds.tabs.workspace": "محیط کاری",
"creds.typeDesc.file": "فایل‌های اعتبارنامه مانند حساب‌های سرویس یا گواهی‌ها را بارگذاری کنید",
"creds.typeDesc.kv-env": "کلیدهای API و توکن‌ها را به عنوان متغیرهای محیطی ذخیره کنید",
"creds.typeDesc.kv-header": "مقادیر مجوز را به عنوان هدرهای HTTP ذخیره کنید",
@@ -395,7 +391,6 @@
"creds.viewerHint": "بینندگان نمی‌توانند اعتبارنامه ایجاد کنند",
"creds.visibility.publish": "انتشار در فضای کاری",
"creds.visibility.publishConfirmTitle": "این اعتبارنامه در فضای کاری منتشر شود؟",
- "creds.workspaceSection.desc": "اعتبارنامه‌هایی که برای همه در این فضای کاری در دسترس هستند، از جمله اعتبارنامه‌هایی که توسط اعضا به اشتراک گذاشته شده‌اند.",
"danger.reset.action": "بازنشانی اکنون",
"danger.reset.confirm": "آیا همه تنظیمات بازنشانی شوند؟",
"danger.reset.currentVersion": "نسخه فعلی",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "انتشار به فضای کاری",
"devices.visibility.publishConfirmTitle": "این دستگاه را به فضای کاری منتشر کنید؟",
"devices.visibilityTabs.private": "خصوصی",
- "devices.visibilityTabs.workspace": "فضای کاری",
"devices.workingDirectory": "دایرکتوری کاری: {{path}}",
"drive.explorer.columns.kind": "نوع",
"drive.explorer.columns.modified": "تاریخ تغییر",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "بدون فرمان تنظیم",
"environments.duplicateName": "شما قبلاً محیطی با این نام دارید",
"environments.empty": "هنوز هیچ محیطی وجود ندارد",
- "environments.emptyPublished": "هنوز چیزی در این فضای کاری منتشر نشده است",
"environments.files.back": "بازگشت",
"environments.files.binary": "این یک فایل متنی نیست، بنابراین نمی‌توان آن را اینجا نمایش داد.",
"environments.files.browse": "مرور فایل‌ها",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "انتشار در فضای کاری",
"environments.visibility.publishConfirmTitle": "این محیط در فضای کاری منتشر شود؟",
"environments.visibility.readonlyHint": "توسط سازنده آن در این فضای کاری منتشر شده است: شما می‌توانید در این محیط اجرا کنید، اما فقط آن‌ها می‌توانند آنچه را که می‌سازد تغییر دهند.",
- "environments.visibility.tabs.private": "خصوصی",
- "environments.visibility.tabs.workspace": "فضای کاری",
"group.aiConfig": "عامل",
"group.common": "عمومی",
"group.developer": "توسعه‌دهنده",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index 4a091b4aa77..88c5522a528 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Profil Communautaire non encore configuré. Veuillez compléter la configuration du Profil Communautaire de l'espace de travail pour gérer les identifiants.",
"creds.owner.fromPersonal": "Depuis votre compte personnel",
"creds.owner.sharedBy": "Partagé par {{name}}",
- "creds.privateSection.desc": "Vous seul pouvez voir et utiliser ces identifiants dans cet espace de travail. Publiez-en un pour permettre à tous les membres de l'utiliser.",
- "creds.privateSection.empty": "Aucun identifiant privé pour le moment",
"creds.share.alreadyShared": "Partagé",
"creds.share.badge": "Partagé dans {{count}} espaces de travail",
"creds.share.confirm": "Partager",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Jamais",
"creds.table.preview": "Aperçu",
"creds.table.type": "Type",
- "creds.tabs.private": "Privé",
- "creds.tabs.workspace": "Espace de travail",
"creds.typeDesc.file": "Téléchargez des fichiers d'identification comme des comptes de service ou des certificats",
"creds.typeDesc.kv-env": "Stockez des clés API et des jetons en tant que variables d'environnement",
"creds.typeDesc.kv-header": "Stockez des valeurs d'autorisation en tant qu'en-têtes HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Les spectateurs ne peuvent pas créer d'identifiants",
"creds.visibility.publish": "Publier dans l'espace de travail",
"creds.visibility.publishConfirmTitle": "Publier cet identifiant dans l'espace de travail ?",
- "creds.workspaceSection.desc": "Identifiants disponibles pour tous dans cet espace de travail, y compris les identifiants partagés par les membres.",
"danger.reset.action": "Réinitialiser maintenant",
"danger.reset.confirm": "Réinitialiser tous les paramètres ?",
"danger.reset.currentVersion": "Version actuelle",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Publier dans l'espace de travail",
"devices.visibility.publishConfirmTitle": "Publier cet appareil dans l'espace de travail ?",
"devices.visibilityTabs.private": "Privé",
- "devices.visibilityTabs.workspace": "Espace de travail",
"devices.workingDirectory": "Répertoire de travail : {{path}}",
"drive.explorer.columns.kind": "Type",
"drive.explorer.columns.modified": "Date modifiée",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Aucune commande de configuration",
"environments.duplicateName": "Vous avez déjà un environnement avec ce nom",
"environments.empty": "Aucun environnement pour le moment",
- "environments.emptyPublished": "Rien n'a encore été publié dans cet espace de travail",
"environments.files.back": "Retour",
"environments.files.binary": "Ce n'est pas un fichier texte, il ne peut donc pas être affiché ici.",
"environments.files.browse": "Parcourir les fichiers",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Publier dans l'espace de travail",
"environments.visibility.publishConfirmTitle": "Publier cet environnement dans l'espace de travail ?",
"environments.visibility.readonlyHint": "Publié dans cet espace de travail par son créateur : vous pouvez exécuter dans cet environnement, mais seul le créateur peut modifier ce qu'il construit.",
- "environments.visibility.tabs.private": "Privé",
- "environments.visibility.tabs.workspace": "Espace de travail",
"group.aiConfig": "Agent",
"group.common": "Général",
"group.developer": "Développeur",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 2bb18aa28b9..4d857668824 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Profilo della comunità non ancora configurato. Completa la configurazione del profilo della comunità del workspace per gestire le credenziali.",
"creds.owner.fromPersonal": "Dal tuo account personale",
"creds.owner.sharedBy": "Condiviso da {{name}}",
- "creds.privateSection.desc": "Solo tu puoi vedere e usare queste credenziali in questo spazio di lavoro. Pubblicane una per consentire a ogni membro di usarla.",
- "creds.privateSection.empty": "Nessuna credenziale privata ancora",
"creds.share.alreadyShared": "Condivisa",
"creds.share.badge": "Condivisa in {{count}} spazi di lavoro",
"creds.share.confirm": "Condividi",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Mai",
"creds.table.preview": "Anteprima",
"creds.table.type": "Tipo",
- "creds.tabs.private": "Privata",
- "creds.tabs.workspace": "Spazio di lavoro",
"creds.typeDesc.file": "Carica file di credenziali come account di servizio o certificati",
"creds.typeDesc.kv-env": "Memorizza chiavi API e token come variabili d'ambiente",
"creds.typeDesc.kv-header": "Memorizza valori di autorizzazione come intestazioni HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "I visualizzatori non possono creare credenziali",
"creds.visibility.publish": "Pubblica nello spazio di lavoro",
"creds.visibility.publishConfirmTitle": "Pubblicare questa credenziale nello spazio di lavoro?",
- "creds.workspaceSection.desc": "Credenziali disponibili per tutti in questo spazio di lavoro, incluse quelle condivise dai membri.",
"danger.reset.action": "Ripristina Ora",
"danger.reset.confirm": "Ripristinare tutte le impostazioni?",
"danger.reset.currentVersion": "Versione Attuale",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Pubblica nello spazio di lavoro",
"devices.visibility.publishConfirmTitle": "Pubblicare questo dispositivo nello spazio di lavoro?",
"devices.visibilityTabs.private": "Privato",
- "devices.visibilityTabs.workspace": "Spazio di lavoro",
"devices.workingDirectory": "Dir di lavoro: {{path}}",
"drive.explorer.columns.kind": "Tipo",
"drive.explorer.columns.modified": "Data di modifica",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Nessun comando di configurazione",
"environments.duplicateName": "Hai già un ambiente con questo nome",
"environments.empty": "Nessun ambiente ancora",
- "environments.emptyPublished": "Niente pubblicato in questo spazio di lavoro ancora",
"environments.files.back": "Indietro",
"environments.files.binary": "Non è un file di testo, quindi non può essere mostrato qui.",
"environments.files.browse": "Sfoglia file",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Pubblica nello spazio di lavoro",
"environments.visibility.publishConfirmTitle": "Pubblicare questo ambiente nello spazio di lavoro?",
"environments.visibility.readonlyHint": "Pubblicato in questo spazio di lavoro dal suo creatore: puoi eseguire in questo ambiente, ma solo loro possono cambiare ciò che costruisce.",
- "environments.visibility.tabs.private": "Privato",
- "environments.visibility.tabs.workspace": "Spazio di lavoro",
"group.aiConfig": "Agente",
"group.common": "Generale",
"group.developer": "Sviluppatore",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index bb6e98d396b..ad01b9274d0 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "コミュニティプロファイルがまだ設定されていません。資格情報を管理するには、ワークスペースのコミュニティプロファイル設定を完了してください。",
"creds.owner.fromPersonal": "個人アカウントから",
"creds.owner.sharedBy": "{{name}} によって共有されました",
- "creds.privateSection.desc": "このワークスペースでは、あなただけがこれらの認証情報を表示して使用できます。すべてのメンバーが使用できるようにするには公開してください。",
- "creds.privateSection.empty": "プライベート認証情報はまだありません",
"creds.share.alreadyShared": "共有済み",
"creds.share.badge": "{{count}}個のワークスペースに共有済み",
"creds.share.confirm": "共有",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "未使用",
"creds.table.preview": "プレビュー",
"creds.table.type": "タイプ",
- "creds.tabs.private": "プライベート",
- "creds.tabs.workspace": "作業スペース",
"creds.typeDesc.file": "サービスアカウントや証明書などの資格情報ファイルをアップロード",
"creds.typeDesc.kv-env": "APIキーやトークンを環境変数として保存",
"creds.typeDesc.kv-header": "認証値をHTTPヘッダーとして保存",
@@ -395,7 +391,6 @@
"creds.viewerHint": "ビューアーは認証情報を作成できません",
"creds.visibility.publish": "ワークスペースに公開",
"creds.visibility.publishConfirmTitle": "この認証情報をワークスペースに公開しますか?",
- "creds.workspaceSection.desc": "このワークスペース内の全員が利用可能な資格情報、メンバーによって共有された資格情報を含みます。",
"danger.reset.action": "すぐにリセット",
"danger.reset.confirm": "すべての設定をリセットしますか?",
"danger.reset.currentVersion": "現在のバージョン",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "ワークスペースに公開",
"devices.visibility.publishConfirmTitle": "このデバイスをワークスペースに公開しますか?",
"devices.visibilityTabs.private": "プライベート",
- "devices.visibilityTabs.workspace": "ワークスペース",
"devices.workingDirectory": "作業ディレクトリ: {{path}}",
"drive.explorer.columns.kind": "種類",
"drive.explorer.columns.modified": "変更日",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "セットアップコマンドなし",
"environments.duplicateName": "この名前の環境はすでに存在します",
"environments.empty": "まだ環境がありません",
- "environments.emptyPublished": "このワークスペースに公開されたものはありません",
"environments.files.back": "戻る",
"environments.files.binary": "テキストファイルではないため、ここでは表示できません。",
"environments.files.browse": "ファイルを閲覧",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "ワークスペースに公開",
"environments.visibility.publishConfirmTitle": "この環境をワークスペースに公開しますか?",
"environments.visibility.readonlyHint": "作成者によってこのワークスペースに公開されました: この環境で実行することはできますが、構築内容を変更できるのは作成者のみです。",
- "environments.visibility.tabs.private": "プライベート",
- "environments.visibility.tabs.workspace": "ワークスペース",
"group.aiConfig": "エージェント",
"group.common": "共通",
"group.developer": "開発者",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index 70e30240336..4da321deba6 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "커뮤니티 프로필이 아직 설정되지 않았습니다. 자격 증명을 관리하려면 워크스페이스 커뮤니티 프로필 설정을 완료하세요.",
"creds.owner.fromPersonal": "개인 계정에서",
"creds.owner.sharedBy": "{{name}}님이 공유함",
- "creds.privateSection.desc": "이 워크스페이스에서는 본인만 이 자격 증명을 보고 사용할 수 있습니다. 모든 멤버가 사용할 수 있도록 하나를 게시하세요.",
- "creds.privateSection.empty": "아직 개인 자격 증명이 없습니다",
"creds.share.alreadyShared": "공유됨",
"creds.share.badge": "{{count}}개 워크스페이스에 공유됨",
"creds.share.confirm": "공유",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "사용 안 함",
"creds.table.preview": "미리보기",
"creds.table.type": "유형",
- "creds.tabs.private": "개인",
- "creds.tabs.workspace": "작업 공간",
"creds.typeDesc.file": "서비스 계정 또는 인증서와 같은 자격 증명 파일 업로드",
"creds.typeDesc.kv-env": "API 키와 토큰을 환경 변수로 저장",
"creds.typeDesc.kv-header": "HTTP 헤더로 인증 값을 저장",
@@ -395,7 +391,6 @@
"creds.viewerHint": "뷰어는 자격 증명을 만들 수 없습니다",
"creds.visibility.publish": "워크스페이스에 게시",
"creds.visibility.publishConfirmTitle": "이 자격 증명을 워크스페이스에 게시할까요?",
- "creds.workspaceSection.desc": "이 워크스페이스의 모든 사용자에게 제공되는 자격 증명으로, 멤버들이 공유한 자격 증명도 포함됩니다.",
"danger.reset.action": "즉시 초기화",
"danger.reset.confirm": "모든 설정을 초기화하시겠습니까?",
"danger.reset.currentVersion": "현재 버전",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "워크스페이스에 게시",
"devices.visibility.publishConfirmTitle": "이 장치를 워크스페이스에 게시하시겠습니까?",
"devices.visibilityTabs.private": "비공개",
- "devices.visibilityTabs.workspace": "워크스페이스",
"devices.workingDirectory": "작업 디렉토리: {{path}}",
"drive.explorer.columns.kind": "종류",
"drive.explorer.columns.modified": "수정 날짜",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "설정 명령 없음",
"environments.duplicateName": "이 이름의 환경이 이미 있습니다",
"environments.empty": "아직 환경이 없습니다",
- "environments.emptyPublished": "이 작업 공간에 게시된 내용이 없습니다",
"environments.files.back": "뒤로",
"environments.files.binary": "텍스트 파일이 아니므로 여기에서 표시할 수 없습니다.",
"environments.files.browse": "파일 탐색",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "작업 공간에 게시",
"environments.visibility.publishConfirmTitle": "이 환경을 작업 공간에 게시하시겠습니까?",
"environments.visibility.readonlyHint": "작업 공간에 게시됨: 이 환경에서 실행할 수 있지만, 빌드 내용을 변경할 수 있는 사람은 생성자뿐입니다.",
- "environments.visibility.tabs.private": "비공개",
- "environments.visibility.tabs.workspace": "작업 공간",
"group.aiConfig": "에이전트",
"group.common": "일반",
"group.developer": "개발자",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index c7e73db758c..f57a941b9b0 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Communityprofiel nog niet ingesteld. Voltooi de Communityprofielinstelling van de werkruimte om referenties te beheren.",
"creds.owner.fromPersonal": "Vanuit je persoonlijke account",
"creds.owner.sharedBy": "Gedeeld door {{name}}",
- "creds.privateSection.desc": "Alleen jij kunt deze referenties in deze werkruimte zien en gebruiken. Publiceer er een zodat elk lid hem kan gebruiken.",
- "creds.privateSection.empty": "Nog geen privéreferenties",
"creds.share.alreadyShared": "Gedeeld",
"creds.share.badge": "Gedeeld met {{count}} werkruimten",
"creds.share.confirm": "Delen",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Nooit",
"creds.table.preview": "Voorbeeld",
"creds.table.type": "Type",
- "creds.tabs.private": "Privé",
- "creds.tabs.workspace": "Werkruimte",
"creds.typeDesc.file": "Upload referentiebestanden zoals serviceaccounts of certificaten",
"creds.typeDesc.kv-env": "Sla API-sleutels en tokens op als omgevingsvariabelen",
"creds.typeDesc.kv-header": "Sla autorisatiewaarden op als HTTP-headers",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Kijkers kunnen geen referenties aanmaken",
"creds.visibility.publish": "Publiceren naar werkruimte",
"creds.visibility.publishConfirmTitle": "Deze referentie naar de werkruimte publiceren?",
- "creds.workspaceSection.desc": "Referenties beschikbaar voor iedereen in deze werkruimte, inclusief referenties die door leden worden gedeeld.",
"danger.reset.action": "Nu resetten",
"danger.reset.confirm": "Alle instellingen resetten?",
"danger.reset.currentVersion": "Huidige versie",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Publiceren naar werkruimte",
"devices.visibility.publishConfirmTitle": "Dit apparaat publiceren naar de werkruimte?",
"devices.visibilityTabs.private": "Privé",
- "devices.visibilityTabs.workspace": "Werkruimte",
"devices.workingDirectory": "Werkmap: {{path}}",
"drive.explorer.columns.kind": "Soort",
"drive.explorer.columns.modified": "Datum gewijzigd",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Geen setup-commando",
"environments.duplicateName": "Je hebt al een omgeving met deze naam",
"environments.empty": "Nog geen omgevingen",
- "environments.emptyPublished": "Nog niets gepubliceerd naar deze werkruimte",
"environments.files.back": "Terug",
"environments.files.binary": "Geen tekstbestand, dus het kan hier niet worden weergegeven.",
"environments.files.browse": "Bestanden bladeren",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Publiceren naar Werkruimte",
"environments.visibility.publishConfirmTitle": "Deze omgeving publiceren naar de werkruimte?",
"environments.visibility.readonlyHint": "Gepubliceerd naar deze werkruimte door de maker: je kunt in deze omgeving draaien, maar alleen zij kunnen wijzigen wat het bouwt.",
- "environments.visibility.tabs.private": "Privé",
- "environments.visibility.tabs.workspace": "Werkruimte",
"group.aiConfig": "Agent",
"group.common": "Algemeen",
"group.developer": "Ontwikkelaar",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index 7ac6eecdd11..9f18422013f 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Profil społeczności nie został jeszcze skonfigurowany. Proszę ukończyć konfigurację profilu społeczności w przestrzeni roboczej, aby zarządzać poświadczeniami.",
"creds.owner.fromPersonal": "Z Twojego konta osobistego",
"creds.owner.sharedBy": "Udostępnione przez {{name}}",
- "creds.privateSection.desc": "Tylko Ty możesz widzieć i używać tych poświadczeń w tej przestrzeni roboczej. Opublikuj jedno, aby wszyscy członkowie mogli z niego korzystać.",
- "creds.privateSection.empty": "Brak prywatnych poświadczeń",
"creds.share.alreadyShared": "Udostępniono",
"creds.share.badge": "Udostępniono w {{count}} przestrzeniach roboczych",
"creds.share.confirm": "Udostępnij",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Nigdy",
"creds.table.preview": "Podgląd",
"creds.table.type": "Typ",
- "creds.tabs.private": "Prywatne",
- "creds.tabs.workspace": "Przestrzeń robocza",
"creds.typeDesc.file": "Prześlij pliki poświadczeń, takie jak konta usługowe lub certyfikaty",
"creds.typeDesc.kv-env": "Przechowuj klucze API i tokeny jako zmienne środowiskowe",
"creds.typeDesc.kv-header": "Przechowuj wartości autoryzacyjne jako nagłówki HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Widzowie nie mogą tworzyć poświadczeń",
"creds.visibility.publish": "Opublikuj w przestrzeni roboczej",
"creds.visibility.publishConfirmTitle": "Opublikować to poświadczenie w przestrzeni roboczej?",
- "creds.workspaceSection.desc": "Poświadczenia dostępne dla wszystkich w tym obszarze roboczym, w tym poświadczenia udostępnione przez członków.",
"danger.reset.action": "Zresetuj teraz",
"danger.reset.confirm": "Zresetować wszystkie ustawienia?",
"danger.reset.currentVersion": "Aktualna wersja",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Opublikuj w przestrzeni roboczej",
"devices.visibility.publishConfirmTitle": "Opublikować to urządzenie w przestrzeni roboczej?",
"devices.visibilityTabs.private": "Prywatne",
- "devices.visibilityTabs.workspace": "Przestrzeń robocza",
"devices.workingDirectory": "Katalog roboczy: {{path}}",
"drive.explorer.columns.kind": "Rodzaj",
"drive.explorer.columns.modified": "Data modyfikacji",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Brak polecenia konfiguracji",
"environments.duplicateName": "Masz już środowisko o tej nazwie",
"environments.empty": "Brak środowisk",
- "environments.emptyPublished": "Nic nie opublikowano w tym obszarze roboczym",
"environments.files.back": "Wstecz",
"environments.files.binary": "To nie jest plik tekstowy, więc nie można go tutaj wyświetlić.",
"environments.files.browse": "Przeglądaj pliki",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Opublikuj w obszarze roboczym",
"environments.visibility.publishConfirmTitle": "Opublikować to środowisko w obszarze roboczym?",
"environments.visibility.readonlyHint": "Opublikowane w tym obszarze roboczym przez jego twórcę: możesz uruchamiać w tym środowisku, ale tylko oni mogą zmieniać, co buduje.",
- "environments.visibility.tabs.private": "Prywatne",
- "environments.visibility.tabs.workspace": "Obszar roboczy",
"group.aiConfig": "Agent",
"group.common": "Ogólne",
"group.developer": "Programista",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 192f2a8ae57..f714e3e26b5 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Perfil da Comunidade ainda não configurado. Conclua a configuração do Perfil da Comunidade do workspace para gerenciar credenciais.",
"creds.owner.fromPersonal": "Da sua conta pessoal",
"creds.owner.sharedBy": "Compartilhado por {{name}}",
- "creds.privateSection.desc": "Somente você pode ver e usar estas credenciais neste espaço de trabalho. Publique uma para permitir que todos os membros a usem.",
- "creds.privateSection.empty": "Nenhuma credencial privada ainda",
"creds.share.alreadyShared": "Compartilhada",
"creds.share.badge": "Compartilhada com {{count}} espaços de trabalho",
"creds.share.confirm": "Compartilhar",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Nunca",
"creds.table.preview": "Pré-visualizar",
"creds.table.type": "Tipo",
- "creds.tabs.private": "Privadas",
- "creds.tabs.workspace": "Ambiente de trabalho",
"creds.typeDesc.file": "Envie arquivos de credenciais como contas de serviço ou certificados",
"creds.typeDesc.kv-env": "Armazene chaves de API e tokens como variáveis de ambiente",
"creds.typeDesc.kv-header": "Armazene valores de autorização como cabeçalhos HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Visualizadores não podem criar credenciais",
"creds.visibility.publish": "Publicar no espaço de trabalho",
"creds.visibility.publishConfirmTitle": "Publicar esta credencial no espaço de trabalho?",
- "creds.workspaceSection.desc": "Credenciais disponíveis para todos neste espaço de trabalho, incluindo credenciais compartilhadas pelos membros.",
"danger.reset.action": "Redefinir Agora",
"danger.reset.confirm": "Redefinir todas as configurações?",
"danger.reset.currentVersion": "Versão Atual",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Publicar no Espaço de Trabalho",
"devices.visibility.publishConfirmTitle": "Publicar este dispositivo no espaço de trabalho?",
"devices.visibilityTabs.private": "Privado",
- "devices.visibilityTabs.workspace": "Espaço de Trabalho",
"devices.workingDirectory": "Dir. de trabalho: {{path}}",
"drive.explorer.columns.kind": "Tipo",
"drive.explorer.columns.modified": "Data de modificação",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Nenhum comando de configuração",
"environments.duplicateName": "Você já tem um ambiente com este nome",
"environments.empty": "Nenhum ambiente ainda",
- "environments.emptyPublished": "Nada publicado neste espaço de trabalho ainda",
"environments.files.back": "Voltar",
"environments.files.binary": "Não é um arquivo de texto, então não pode ser exibido aqui.",
"environments.files.browse": "Navegar pelos arquivos",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Publicar no Espaço de Trabalho",
"environments.visibility.publishConfirmTitle": "Publicar este ambiente no espaço de trabalho?",
"environments.visibility.readonlyHint": "Publicado neste espaço de trabalho por seu criador: você pode executar neste ambiente, mas apenas ele pode alterar o que ele constrói.",
- "environments.visibility.tabs.private": "Privado",
- "environments.visibility.tabs.workspace": "Espaço de Trabalho",
"group.aiConfig": "Agente",
"group.common": "Geral",
"group.developer": "Desenvolvedor",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index 7921b48cb52..a8a3930c5ee 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Профиль сообщества еще не настроен. Пожалуйста, завершите настройку профиля сообщества рабочего пространства, чтобы управлять учетными данными.",
"creds.owner.fromPersonal": "Из вашей личной учетной записи",
"creds.owner.sharedBy": "Поделился {{name}}",
- "creds.privateSection.desc": "Только вы можете видеть и использовать эти учетные данные в этом рабочем пространстве. Опубликуйте их, чтобы все участники могли ими пользоваться.",
- "creds.privateSection.empty": "Частных учетных данных пока нет",
"creds.share.alreadyShared": "Доступ открыт",
"creds.share.badge": "Открыт доступ для {{count}} рабочих пространств",
"creds.share.confirm": "Поделиться",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Никогда",
"creds.table.preview": "Предпросмотр",
"creds.table.type": "Тип",
- "creds.tabs.private": "Частные",
- "creds.tabs.workspace": "Рабочее пространство",
"creds.typeDesc.file": "Загрузите файлы учетных данных, такие как учетные записи сервисов или сертификаты",
"creds.typeDesc.kv-env": "Сохраните API-ключи и токены в виде переменных окружения",
"creds.typeDesc.kv-header": "Сохраните значения авторизации в виде HTTP-заголовков",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Зрители не могут создавать учетные данные",
"creds.visibility.publish": "Опубликовать в рабочем пространстве",
"creds.visibility.publishConfirmTitle": "Опубликовать эти учетные данные в рабочем пространстве?",
- "creds.workspaceSection.desc": "Учетные данные, доступные всем в этом рабочем пространстве, включая учетные данные, которыми поделились участники.",
"danger.reset.action": "Сбросить сейчас",
"danger.reset.confirm": "Сбросить все настройки?",
"danger.reset.currentVersion": "Текущая версия",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Опубликовать в рабочем пространстве",
"devices.visibility.publishConfirmTitle": "Опубликовать это устройство в рабочем пространстве?",
"devices.visibilityTabs.private": "Личное",
- "devices.visibilityTabs.workspace": "Рабочее пространство",
"devices.workingDirectory": "Рабочая директория: {{path}}",
"drive.explorer.columns.kind": "Тип",
"drive.explorer.columns.modified": "Дата изменения",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Нет команды настройки",
"environments.duplicateName": "У вас уже есть среда с таким именем",
"environments.empty": "Сред пока нет",
- "environments.emptyPublished": "В этом рабочем пространстве пока ничего не опубликовано",
"environments.files.back": "Назад",
"environments.files.binary": "Это не текстовый файл, поэтому его нельзя показать здесь.",
"environments.files.browse": "Просмотреть файлы",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Опубликовать в рабочем пространстве",
"environments.visibility.publishConfirmTitle": "Опубликовать эту среду в рабочем пространстве?",
"environments.visibility.readonlyHint": "Опубликовано в этом рабочем пространстве его создателем: вы можете работать в этой среде, но только он может изменить то, что она создает.",
- "environments.visibility.tabs.private": "Приватное",
- "environments.visibility.tabs.workspace": "Рабочее пространство",
"group.aiConfig": "Агент",
"group.common": "Общие",
"group.developer": "Разработчик",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index c1cebdfb673..18f448f8f19 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Topluluk Profili henüz ayarlanmadı. Kimlik bilgilerini yönetmek için lütfen çalışma alanı Topluluk Profili ayarlarını tamamlayın.",
"creds.owner.fromPersonal": "Kişisel hesabınızdan",
"creds.owner.sharedBy": "{{name}} tarafından paylaşıldı",
- "creds.privateSection.desc": "Bu çalışma alanında bu kimlik bilgilerini yalnızca siz görebilir ve kullanabilirsiniz. Her üyenin kullanabilmesi için birini yayınlayın.",
- "creds.privateSection.empty": "Henüz özel kimlik bilgisi yok",
"creds.share.alreadyShared": "Paylaşıldı",
"creds.share.badge": "{{count}} çalışma alanıyla paylaşıldı",
"creds.share.confirm": "Paylaş",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Hiçbir Zaman",
"creds.table.preview": "Önizleme",
"creds.table.type": "Tür",
- "creds.tabs.private": "Özel",
- "creds.tabs.workspace": "Çalışma Alanı",
"creds.typeDesc.file": "Hizmet hesapları veya sertifikalar gibi kimlik bilgisi dosyalarını yükleyin",
"creds.typeDesc.kv-env": "API anahtarlarını ve belirteçlerini ortam değişkenleri olarak saklayın",
"creds.typeDesc.kv-header": "Yetkilendirme değerlerini HTTP başlıkları olarak saklayın",
@@ -395,7 +391,6 @@
"creds.viewerHint": "İzleyiciler kimlik bilgisi oluşturamaz",
"creds.visibility.publish": "Çalışma Alanına Yayınla",
"creds.visibility.publishConfirmTitle": "Bu kimlik bilgisi çalışma alanına yayınlansın mı?",
- "creds.workspaceSection.desc": "Bu çalışma alanındaki herkese açık kimlik bilgileri, üyeler tarafından paylaşılan kimlik bilgileri dahil.",
"danger.reset.action": "Şimdi Sıfırla",
"danger.reset.confirm": "Tüm ayarlar sıfırlansın mı?",
"danger.reset.currentVersion": "Mevcut Sürüm",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Çalışma Alanına Yayınla",
"devices.visibility.publishConfirmTitle": "Bu cihazı çalışma alanına yayınlamak istiyor musunuz?",
"devices.visibilityTabs.private": "Özel",
- "devices.visibilityTabs.workspace": "Çalışma Alanı",
"devices.workingDirectory": "Çalışma dizini: {{path}}",
"drive.explorer.columns.kind": "Tür",
"drive.explorer.columns.modified": "Değiştirilme tarihi",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Kurulum komutu yok",
"environments.duplicateName": "Bu isimde zaten bir ortamınız var",
"environments.empty": "Henüz ortam yok",
- "environments.emptyPublished": "Bu çalışma alanına henüz bir şey yayınlanmadı",
"environments.files.back": "Geri",
"environments.files.binary": "Metin dosyası değil, bu yüzden burada gösterilemez.",
"environments.files.browse": "Dosyalara göz at",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Çalışma Alanına Yayınla",
"environments.visibility.publishConfirmTitle": "Bu ortam çalışma alanına yayınlansın mı?",
"environments.visibility.readonlyHint": "Bu çalışma alanına yaratıcısı tarafından yayınlandı: bu ortamda çalıştırabilirsiniz, ancak yalnızca yaratıcısı ne oluşturduğunu değiştirebilir.",
- "environments.visibility.tabs.private": "Özel",
- "environments.visibility.tabs.workspace": "Çalışma Alanı",
"group.aiConfig": "Ajans",
"group.common": "Genel",
"group.developer": "Geliştirici",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index 4862e47465c..0d4f52c1c32 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "Hồ sơ Cộng đồng chưa được thiết lập. Vui lòng hoàn thành thiết lập Hồ sơ Cộng đồng của không gian làm việc để quản lý thông tin đăng nhập.",
"creds.owner.fromPersonal": "Từ tài khoản cá nhân của bạn",
"creds.owner.sharedBy": "Được chia sẻ bởi {{name}}",
- "creds.privateSection.desc": "Chỉ bạn có thể xem và sử dụng những thông tin xác thực này trong không gian làm việc này. Hãy công bố một cái để mọi thành viên có thể sử dụng.",
- "creds.privateSection.empty": "Chưa có thông tin xác thực riêng tư",
"creds.share.alreadyShared": "Đã chia sẻ",
"creds.share.badge": "Đã chia sẻ tới {{count}} không gian làm việc",
"creds.share.confirm": "Chia sẻ",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "Chưa bao giờ",
"creds.table.preview": "Xem trước",
"creds.table.type": "Loại",
- "creds.tabs.private": "Riêng tư",
- "creds.tabs.workspace": "Không gian làm việc",
"creds.typeDesc.file": "Tải lên các tệp thông tin xác thực như tài khoản dịch vụ hoặc chứng chỉ",
"creds.typeDesc.kv-env": "Lưu trữ khóa API và token dưới dạng biến môi trường",
"creds.typeDesc.kv-header": "Lưu trữ giá trị xác thực dưới dạng tiêu đề HTTP",
@@ -395,7 +391,6 @@
"creds.viewerHint": "Người xem không thể tạo thông tin xác thực",
"creds.visibility.publish": "Công bố tới không gian làm việc",
"creds.visibility.publishConfirmTitle": "Công bố thông tin xác thực này tới không gian làm việc?",
- "creds.workspaceSection.desc": "Thông tin xác thực có sẵn cho tất cả mọi người trong không gian làm việc này, bao gồm cả thông tin xác thực được chia sẻ bởi các thành viên.",
"danger.reset.action": "Đặt lại ngay",
"danger.reset.confirm": "Đặt lại tất cả cài đặt?",
"danger.reset.currentVersion": "Phiên bản hiện tại",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "Công khai đến Không gian làm việc",
"devices.visibility.publishConfirmTitle": "Công khai thiết bị này đến không gian làm việc?",
"devices.visibilityTabs.private": "Riêng tư",
- "devices.visibilityTabs.workspace": "Không gian làm việc",
"devices.workingDirectory": "Thư mục làm việc: {{path}}",
"drive.explorer.columns.kind": "Loại",
"drive.explorer.columns.modified": "Ngày sửa đổi",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "Không có lệnh thiết lập",
"environments.duplicateName": "Bạn đã có một môi trường với tên này",
"environments.empty": "Chưa có môi trường nào",
- "environments.emptyPublished": "Chưa có gì được xuất bản trong không gian làm việc này",
"environments.files.back": "Quay lại",
"environments.files.binary": "Không phải tệp văn bản, vì vậy không thể hiển thị ở đây.",
"environments.files.browse": "Duyệt tệp",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "Xuất bản vào không gian làm việc",
"environments.visibility.publishConfirmTitle": "Xuất bản môi trường này vào không gian làm việc?",
"environments.visibility.readonlyHint": "Được xuất bản vào không gian làm việc này bởi người tạo: bạn có thể chạy trong môi trường này, nhưng chỉ họ mới có thể thay đổi những gì nó xây dựng.",
- "environments.visibility.tabs.private": "Riêng tư",
- "environments.visibility.tabs.workspace": "Không gian làm việc",
"group.aiConfig": "Mô hình",
"group.common": "Chung",
"group.developer": "Nhà phát triển",
diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json
index 099603bc449..493cfa58ba6 100644
--- a/locales/zh-CN/common.json
+++ b/locales/zh-CN/common.json
@@ -601,5 +601,10 @@
"visibilityConfirm.publish.itemLoaded": "改回私人后对方已加载的内容无法收回",
"visibilityConfirm.publish.itemReversible": "之后可以在同一菜单里改回私人",
"visibilityConfirm.publish.itemVisible": "工作区所有成员会立即可以看到",
+ "visibilityFilter.all": "全部",
+ "visibilityFilter.empty": "没有符合筛选条件的条目",
+ "visibilityFilter.label": "按可见范围筛选",
+ "visibilityFilter.private": "私人",
+ "visibilityFilter.workspace": "工作区",
"zoom": "缩放"
}
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 5515acf3fb2..9936521e904 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -505,12 +505,11 @@
"creds.form.uploadHint": "点击或拖拽文件上传",
"creds.form.valuePlaceholder": "输入值",
"creds.form.values": "键值对",
+ "creds.listDesc": "工作区成员都能使用的共享凭证,以及你的私人凭证(带锁图标)。新建的凭证默认私人,发布到工作区后成员即可使用。",
"creds.oauth.noConnections": "暂无可用的 OAuth 连接,请先连接账户。",
"creds.orgSetupRequired": "社区资料尚未设置,请先完成工作区的社区资料设置,再管理凭证。",
"creds.owner.fromPersonal": "来自个人账号",
"creds.owner.sharedBy": "由 {{name}} 共享",
- "creds.privateSection.desc": "只有你能在此工作区查看和使用这些凭证。发布到工作区后,所有成员都可以使用。",
- "creds.privateSection.empty": "还没有私人凭证",
"creds.share.alreadyShared": "已共享",
"creds.share.badge": "已共享到 {{count}} 个工作区",
"creds.share.confirm": "共享",
@@ -538,8 +537,6 @@
"creds.table.neverUsed": "从未使用",
"creds.table.preview": "预览",
"creds.table.type": "类型",
- "creds.tabs.private": "私人",
- "creds.tabs.workspace": "工作区",
"creds.typeDesc.file": "上传服务账户或证书等凭证文件",
"creds.typeDesc.kv-env": "将 API 密钥和令牌存储为环境变量",
"creds.typeDesc.kv-header": "将授权值存储为 HTTP 请求头",
@@ -558,7 +555,6 @@
"creds.viewerHint": "查看者无法创建凭证",
"creds.visibility.publish": "发布到工作区",
"creds.visibility.publishConfirmTitle": "将此凭证发布到工作区?",
- "creds.workspaceSection.desc": "此工作区所有成员可用的凭证,包含成员共享的凭证。",
"danger.reset.action": "立即重置",
"danger.reset.confirm": "确认重置所有设置吗?",
"danger.reset.currentVersion": "当前版本",
@@ -780,7 +776,6 @@
"devices.visibility.publish": "发布到工作区",
"devices.visibility.publishConfirmTitle": "将此设备发布到工作区?",
"devices.visibilityTabs.private": "私人",
- "devices.visibilityTabs.workspace": "工作区",
"devices.workingDirectory": "工作目录:{{path}}",
"drive.cleanup.back": "返回文件",
"drive.cleanup.category.archives": "压缩包",
@@ -917,7 +912,6 @@
"environments.detail.notFound": "这个环境不存在,或你没有权限查看。",
"environments.duplicateName": "你已经有一个同名的环境了",
"environments.empty": "还没有环境",
- "environments.emptyPublished": "还没有环境发布到这个工作区",
"environments.files.back": "返回",
"environments.files.binary": "不是文本文件,无法在这里查看。",
"environments.files.browse": "浏览文件",
@@ -1152,8 +1146,7 @@
"environments.visibility.publish": "发布到工作区",
"environments.visibility.publishConfirmTitle": "把这个环境发布到工作区?",
"environments.visibility.readonlyHint": "由创建者发布到此工作区:你可以用这个环境做初始化,但只有创建者能修改它。",
- "environments.visibility.tabs.private": "私人",
- "environments.visibility.tabs.workspace": "工作区",
+ "environments.workspaceListDesc": "发布到工作区的环境,以及你的私人环境(带锁图标)。新建的环境默认私人,发布到工作区后成员即可使用。",
"group.aiConfig": "智能体",
"group.common": "通用",
"group.connection": "连接",
@@ -2328,10 +2321,8 @@
"subscriptionAccounts.columns.rotation": "参与分配",
"subscriptionAccounts.columns.status": "状态",
"subscriptionAccounts.empty.desc": "在已连接的设备上登录 Claude Code、Codex 或 Kimi Code,账号上报额度后会出现在这里。",
- "subscriptionAccounts.empty.privateDesc": "这里还没有你的私人账号。你在设备上登录的账号会先出现在这里,只有你能看到。",
"subscriptionAccounts.empty.title": "还没有订阅账号",
- "subscriptionAccounts.empty.workspaceDesc": "还没有共享到工作区的账号。在「私人」里把账号共享出来,团队成员的 Agent 就能使用它。",
- "subscriptionAccounts.filter.all": "全部",
+ "subscriptionAccounts.filter.allProviders": "全部服务商",
"subscriptionAccounts.filterEmpty": "没有符合筛选条件的账号",
"subscriptionAccounts.loadFailed": "订阅账号加载失败",
"subscriptionAccounts.meter.session": "5 小时",
@@ -2346,18 +2337,16 @@
"subscriptionAccounts.status.exhaustedNoReset": "已用尽",
"subscriptionAccounts.status.noData": "暂无额度数据",
"subscriptionAccounts.summary": "共 {{count}} 个账号 · {{inRotation}} 个参与分配",
- "subscriptionAccounts.tabs.private": "私人",
- "subscriptionAccounts.tabs.workspace": "工作区",
"subscriptionAccounts.updateFailed": "账号更新失败,请重试",
"subscriptionAccounts.usageTitle": "用量记录",
"subscriptionAccounts.visibility.privateAction": "设为私人",
"subscriptionAccounts.visibility.privateConfirm.desc": "之后只有你能看到它,其他成员的 Agent 不再使用它的额度。",
"subscriptionAccounts.visibility.privateConfirm.title": "将这个账号设为私人?",
- "subscriptionAccounts.visibility.privateDone": "已设为私人,账号移到了「私人」。",
+ "subscriptionAccounts.visibility.privateDone": "已设为私人,只有你能看到,列表中会显示锁图标。",
"subscriptionAccounts.visibility.publicAction": "共享到工作区",
"subscriptionAccounts.visibility.publicConfirm.desc": "工作区所有成员都能看到它,他们的 Agent 也可以使用它的额度。之后可以在同一菜单里改回私人。",
"subscriptionAccounts.visibility.publicConfirm.title": "将这个账号共享到工作区?",
- "subscriptionAccounts.visibility.publicDone": "已共享,账号移到了「工作区」。",
+ "subscriptionAccounts.visibility.publicDone": "已共享,工作区成员现在都可以使用。",
"sync.device.deviceName.hint": "添加名称以便于识别",
"sync.device.deviceName.placeholder": "请输入设备名称",
"sync.device.deviceName.title": "设备名称",
@@ -4402,6 +4391,7 @@
"workspaceSetting.devices.connectTitlePublic": "添加工作区设备",
"workspaceSetting.devices.empty": "尚无工作区设备。",
"workspaceSetting.devices.enrollDesc": "在您想要共享给工作区的设备上运行以下命令:",
+ "workspaceSetting.devices.enrollPrivateDesc": "在要连接的设备上运行以下命令。设备连接后默认仅你可见,可在设备卡片菜单里发布到工作区。",
"workspaceSetting.devices.enrollTitle": "添加设备",
"workspaceSetting.devices.enrolledBy": "由 {{name}} 注册",
"workspaceSetting.devices.enrolledByLabel": "注册者",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index 228e612532a..05d78e0e6d0 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -346,8 +346,6 @@
"creds.orgSetupRequired": "尚未設定社群檔案。請完成工作區的社群檔案設定以管理憑證。",
"creds.owner.fromPersonal": "來自您的個人帳戶",
"creds.owner.sharedBy": "由 {{name}} 分享",
- "creds.privateSection.desc": "在此工作區中,只有您能看到並使用這些憑證。發佈後即可讓所有成員使用。",
- "creds.privateSection.empty": "尚無私人憑證",
"creds.share.alreadyShared": "已分享",
"creds.share.badge": "已分享至 {{count}} 個工作區",
"creds.share.confirm": "分享",
@@ -375,8 +373,6 @@
"creds.table.neverUsed": "從未使用",
"creds.table.preview": "預覽",
"creds.table.type": "類型",
- "creds.tabs.private": "私人",
- "creds.tabs.workspace": "工作空間",
"creds.typeDesc.file": "上傳憑證檔案,例如服務帳戶或憑證",
"creds.typeDesc.kv-env": "將 API 金鑰和令牌存儲為環境變數",
"creds.typeDesc.kv-header": "將授權值存儲為 HTTP 標頭",
@@ -395,7 +391,6 @@
"creds.viewerHint": "檢視者無法建立憑證",
"creds.visibility.publish": "發佈至工作區",
"creds.visibility.publishConfirmTitle": "將此憑證發佈至工作區?",
- "creds.workspaceSection.desc": "此工作區中所有人可用的憑證,包括成員共享的憑證。",
"danger.reset.action": "立即重置",
"danger.reset.confirm": "確認重置所有設定?",
"danger.reset.currentVersion": "當前版本",
@@ -617,7 +612,6 @@
"devices.visibility.publish": "發佈至工作區",
"devices.visibility.publishConfirmTitle": "將此裝置發佈至工作區?",
"devices.visibilityTabs.private": "私人",
- "devices.visibilityTabs.workspace": "工作區",
"devices.workingDirectory": "工作目錄:{{path}}",
"drive.explorer.columns.kind": "類型",
"drive.explorer.columns.modified": "修改日期",
@@ -695,7 +689,6 @@
"environments.detail.noSetup": "無設置命令",
"environments.duplicateName": "您已經有一個同名的環境",
"environments.empty": "尚無環境",
- "environments.emptyPublished": "此工作區尚未發布任何內容",
"environments.files.back": "返回",
"environments.files.binary": "不是文本文件,因此無法在此顯示。",
"environments.files.browse": "瀏覽文件",
@@ -914,8 +907,6 @@
"environments.visibility.publish": "發布到工作區",
"environments.visibility.publishConfirmTitle": "將此環境發布到工作區?",
"environments.visibility.readonlyHint": "由其創建者發布到此工作區:您可以在此環境中運行,但只有他們可以更改其構建內容。",
- "environments.visibility.tabs.private": "私人",
- "environments.visibility.tabs.workspace": "工作區",
"group.aiConfig": "智能代理",
"group.common": "通用",
"group.developer": "開發者",
diff --git a/packages/locales/src/default/common.ts b/packages/locales/src/default/common.ts
index 138e2b32db5..6c1a4d90f8d 100644
--- a/packages/locales/src/default/common.ts
+++ b/packages/locales/src/default/common.ts
@@ -702,5 +702,10 @@ export default {
'userPanel.workspaceSetting': 'Workspace Settings',
'userPanel.workspaceUsage': 'Workspace Usage',
'version': 'Version',
+ 'visibilityFilter.all': 'All',
+ 'visibilityFilter.empty': 'Nothing matches this filter',
+ 'visibilityFilter.label': 'Filter by visibility',
+ 'visibilityFilter.private': 'Private',
+ 'visibilityFilter.workspace': 'Workspace',
'zoom': 'Zoom',
};
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 11c686b1cf1..d6147939187 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -786,9 +786,6 @@ export default {
'Community Profile not set up yet. Please complete the workspace Community Profile setup to manage credentials.',
'creds.owner.fromPersonal': 'From your personal account',
'creds.owner.sharedBy': 'Shared by {{name}}',
- 'creds.privateSection.desc':
- 'Only you can see and use these credentials in this workspace. Publish one to let every member use it.',
- 'creds.privateSection.empty': 'No private credentials yet',
'creds.share.alreadyShared': 'Shared',
'creds.share.badge': 'Shared to {{count}} workspaces',
'creds.share.confirm': 'Share',
@@ -812,13 +809,9 @@ export default {
'creds.share.viewerHint': "Viewers can't share credentials",
'creds.signIn': 'Sign In to Market',
'creds.signInRequired': 'Please sign in to the Market to manage your credentials',
- 'creds.tabs.private': 'Private',
- 'creds.tabs.workspace': 'Workspace',
'creds.viewerHint': "Viewers can't create credentials",
'creds.visibility.publish': 'Publish to Workspace',
'creds.visibility.publishConfirmTitle': 'Publish this credential to the workspace?',
- 'creds.workspaceSection.desc':
- 'Credentials available to everyone in this workspace, including credentials shared by members.',
'creds.form.addPair': 'Add Key-Value Pair',
'creds.form.back': 'Back',
'creds.form.cancel': 'Cancel',
@@ -1083,7 +1076,6 @@ export default {
'devices.visibility.publish': 'Publish to Workspace',
'devices.visibility.publishConfirmTitle': 'Publish this device to the workspace?',
'devices.visibilityTabs.private': 'Private',
- 'devices.visibilityTabs.workspace': 'Workspace',
'devices.workingDirectory': 'Working dir: {{path}}',
'apps.cli.copied': 'Copied',
'apps.cli.copy': 'Copy',
@@ -5007,9 +4999,6 @@ When I am ___, I need ___
'environments.form.appliesOnInit':
'Takes effect the next time the environment is applied to a working directory. Folders it was already applied to keep what they have.',
'environments.refresh': 'Refresh',
- 'environments.emptyPublished': 'Nothing published to this workspace yet',
- 'environments.visibility.tabs.workspace': 'Workspace',
- 'environments.visibility.tabs.private': 'Private',
'environments.visibility.publish': 'Publish to Workspace',
'environments.visibility.createPublishedConfirmTitle':
'Create this environment in the workspace?',
@@ -5280,12 +5269,8 @@ When I am ___, I need ___
'subscriptionAccounts.columns.status': 'Status',
'subscriptionAccounts.empty.desc':
'Sign in to Claude Code, Codex or Kimi Code on a connected device. The account appears here once it reports its quota.',
- 'subscriptionAccounts.empty.privateDesc':
- 'No private accounts here. Accounts you sign in to on your devices start here, visible only to you.',
'subscriptionAccounts.empty.title': 'No subscription accounts yet',
- 'subscriptionAccounts.empty.workspaceDesc':
- "No accounts are shared with this workspace yet. Share one from the Private tab so teammates' agents can use it.",
- 'subscriptionAccounts.filter.all': 'All',
+ 'subscriptionAccounts.filter.allProviders': 'All providers',
'subscriptionAccounts.loadFailed': "Couldn't load subscription accounts",
'subscriptionAccounts.meter.session': '5-hour',
'subscriptionAccounts.meter.weekly': 'Weekly',
@@ -5326,20 +5311,20 @@ When I am ___, I need ___
'subscriptionAccounts.calendar.todayDay': 'Today',
'subscriptionAccounts.calendar.tomorrow': 'Tomorrow {{time}}',
'subscriptionAccounts.calendar.tomorrowDay': 'Tomorrow',
- 'subscriptionAccounts.tabs.private': 'Private',
- 'subscriptionAccounts.tabs.workspace': 'Workspace',
'subscriptionAccounts.summary': '{{inRotation}} of {{count}} in rotation',
'subscriptionAccounts.updateFailed': "Couldn't update the account. Try again.",
'subscriptionAccounts.visibility.privateAction': 'Make private',
'subscriptionAccounts.visibility.privateConfirm.desc':
"Only you will see it. Other members' agents stop drawing on its quota.",
'subscriptionAccounts.visibility.privateConfirm.title': 'Make this account private?',
- 'subscriptionAccounts.visibility.privateDone': 'Made private. It now lists under Private.',
+ 'subscriptionAccounts.visibility.privateDone':
+ 'Made private. Only you can see it now; it shows a lock in the list.',
'subscriptionAccounts.visibility.publicAction': 'Share with workspace',
'subscriptionAccounts.visibility.publicConfirm.desc':
'Every member will see it, and their agents can draw on its quota. You can make it private again from the same menu.',
'subscriptionAccounts.visibility.publicConfirm.title': 'Share this account with the workspace?',
- 'subscriptionAccounts.visibility.publicDone': 'Shared. It now lists under Workspace.',
+ 'subscriptionAccounts.visibility.publicDone':
+ 'Shared. Everyone in this workspace can use it now.',
'tab.subscriptionAccounts': 'Subscription Accounts',
'taskLabels.actions.addToGroup': 'Add label to group',
'taskLabels.actions.create': 'New label',
@@ -5480,4 +5465,10 @@ When I am ___, I need ___
'environments.form.bootstrapAfterRepositories':
"Runs at the top of the working directory, after each repository's own setup. Setup for a single repository goes on that repository.",
'environments.form.duplicateFolder': 'Another repository already uses this folder.',
+ 'creds.listDesc':
+ 'Shared credentials everyone in this workspace can use, plus your private ones (marked with a lock). New credentials start private; publish one to share it with the workspace.',
+ 'environments.workspaceListDesc':
+ 'Environments published to this workspace, plus your private ones (marked with a lock). New environments start private; publish one to share it with the workspace.',
+ 'workspaceSetting.devices.enrollPrivateDesc':
+ 'Run this on the machine you want to connect. It starts private to you; publish it to the workspace from its card menu.',
};
diff --git a/src/features/HomeSidebar/Body/Agent/List/PrivateLockIcon.tsx b/src/components/PrivateLockIcon/index.tsx
similarity index 77%
rename from src/features/HomeSidebar/Body/Agent/List/PrivateLockIcon.tsx
rename to src/components/PrivateLockIcon/index.tsx
index 57468a6763b..9acf9f5aa8a 100644
--- a/src/features/HomeSidebar/Body/Agent/List/PrivateLockIcon.tsx
+++ b/src/components/PrivateLockIcon/index.tsx
@@ -7,8 +7,9 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';
/**
- * Marks a private Agent / chat group / folder in the merged workspace Agents
- * section, where private and shared rows are listed together.
+ * Marks a private row in a workspace list that shows private and shared rows
+ * together: the sidebar's Agents section, and the device, subscription
+ * account, environment and credential settings lists.
*/
const PrivateLockIcon = memo(() => {
const { t } = useTranslation('common');
@@ -18,7 +19,7 @@ const PrivateLockIcon = memo(() => {
<Tooltip title={label}>
<span
aria-label={label}
- data-testid="sidebar-private-lock"
+ data-testid="private-lock"
role="img"
style={{
color: cssVar.colorTextTertiary,
diff --git a/src/components/VisibilityFilter/filter.test.ts b/src/components/VisibilityFilter/filter.test.ts
new file mode 100644
index 00000000000..db15ce61a7c
--- /dev/null
+++ b/src/components/VisibilityFilter/filter.test.ts
@@ -0,0 +1,20 @@
+import { describe, expect, it } from 'vitest';
+
+import { matchesVisibilityFilter } from './filter';
+
+describe('matchesVisibilityFilter', () => {
+ it('keeps every row under all', () => {
+ expect(matchesVisibilityFilter(true, 'all')).toBe(true);
+ expect(matchesVisibilityFilter(false, 'all')).toBe(true);
+ });
+
+ it('keeps only private rows under private', () => {
+ expect(matchesVisibilityFilter(true, 'private')).toBe(true);
+ expect(matchesVisibilityFilter(false, 'private')).toBe(false);
+ });
+
+ it('keeps only shared rows under workspace', () => {
+ expect(matchesVisibilityFilter(false, 'workspace')).toBe(true);
+ expect(matchesVisibilityFilter(true, 'workspace')).toBe(false);
+ });
+});
diff --git a/src/components/VisibilityFilter/filter.ts b/src/components/VisibilityFilter/filter.ts
new file mode 100644
index 00000000000..11eebb8e142
--- /dev/null
+++ b/src/components/VisibilityFilter/filter.ts
@@ -0,0 +1,7 @@
+/** Which rows a workspace resource list shows: everything, only the caller's private rows, or only the shared ones. */
+export type VisibilityFilterValue = 'all' | 'private' | 'workspace';
+
+export const VISIBILITY_FILTER_VALUES: VisibilityFilterValue[] = ['all', 'private', 'workspace'];
+
+export const matchesVisibilityFilter = (isPrivate: boolean, filter: VisibilityFilterValue) =>
+ filter === 'all' || (filter === 'private') === isPrivate;
diff --git a/src/components/VisibilityFilter/index.tsx b/src/components/VisibilityFilter/index.tsx
new file mode 100644
index 00000000000..bfd0c5e81d4
--- /dev/null
+++ b/src/components/VisibilityFilter/index.tsx
@@ -0,0 +1,57 @@
+'use client';
+
+import { Flexbox, Icon, Select } from '@lobehub/ui';
+import { LayersIcon, LockIcon, type LucideIcon, UsersIcon } from 'lucide-react';
+import { memo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { VISIBILITY_FILTER_VALUES, type VisibilityFilterValue } from './filter';
+
+export { matchesVisibilityFilter, type VisibilityFilterValue } from './filter';
+
+const ICONS: Record<VisibilityFilterValue, LucideIcon> = {
+ all: LayersIcon,
+ private: LockIcon,
+ workspace: UsersIcon,
+};
+
+interface VisibilityFilterProps {
+ /** Rows per option, shown beside its label. */
+ counts?: Record<VisibilityFilterValue, number>;
+ onChange: (value: VisibilityFilterValue) => void;
+ value: VisibilityFilterValue;
+}
+
+/**
+ * The header filter of a workspace resource list that shows private and shared
+ * rows together (devices, subscription accounts, environments, credentials).
+ * It defaults to everything; the rows themselves carry the lock.
+ */
+const VisibilityFilter = memo<VisibilityFilterProps>(({ counts, onChange, value }) => {
+ const { t } = useTranslation('common');
+
+ return (
+ <Select
+ aria-label={t('visibilityFilter.label')}
+ style={{ minWidth: 140 }}
+ value={value}
+ variant={'filled'}
+ options={VISIBILITY_FILTER_VALUES.map((option) => ({
+ label: (
+ <Flexbox horizontal align={'center'} gap={6}>
+ <Icon icon={ICONS[option]} size={14} />
+ {counts
+ ? `${t(`visibilityFilter.${option}`)} · ${counts[option]}`
+ : t(`visibilityFilter.${option}`)}
+ </Flexbox>
+ ),
+ value: option,
+ }))}
+ onChange={(next) => onChange(next as VisibilityFilterValue)}
+ />
+ );
+});
+
+VisibilityFilter.displayName = 'VisibilityFilter';
+
+export default VisibilityFilter;
diff --git a/src/features/DeviceManager/DeviceCard.tsx b/src/features/DeviceManager/DeviceCard.tsx
index 4696678e76a..592a6395bb1 100644
--- a/src/features/DeviceManager/DeviceCard.tsx
+++ b/src/features/DeviceManager/DeviceCard.tsx
@@ -26,6 +26,7 @@ import {
import { memo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import UserAvatar from '@/components/UserAvatar';
import VisibilityConfirmContent from '@/features/VisibilityConfirmContent';
import { useUserStore } from '@/store/user';
@@ -265,9 +266,14 @@ const DeviceCard = memo<DeviceCardProps>(({ device, isCurrent, onOpen }) => {
<div className={styles.iconTile}>{getDeviceIcon(device.platform, 22)}</div>
<Flexbox flex={1} gap={4} style={{ minWidth: 0 }}>
- <Text ellipsis fontSize={16} weight={600}>
- {displayName}
- </Text>
+ <Flexbox horizontal align={'center'} gap={6} style={{ minWidth: 0 }}>
+ <Text ellipsis fontSize={16} weight={600}>
+ {displayName}
+ </Text>
+ {device.scope === 'workspace' && device.visibility === 'private' && (
+ <PrivateLockIcon />
+ )}
+ </Flexbox>
<Flexbox horizontal align={'center'} gap={6} wrap={'wrap'}>
{platformLabel && (
<Text fontSize={13} type={'secondary'}>
diff --git a/src/features/DeviceManager/DeviceConnectModal.tsx b/src/features/DeviceManager/DeviceConnectModal.tsx
index 77eaeef1ffb..8aacade4364 100644
--- a/src/features/DeviceManager/DeviceConnectModal.tsx
+++ b/src/features/DeviceManager/DeviceConnectModal.tsx
@@ -121,7 +121,11 @@ const DeviceConnectModal = memo<DeviceConnectModalProps>(
title={t('devices.connectWizard.cli.connectTitle')}
desc={
isWorkspace
- ? t('workspaceSetting.devices.enrollDesc')
+ ? t(
+ visibility === 'private'
+ ? 'workspaceSetting.devices.enrollPrivateDesc'
+ : 'workspaceSetting.devices.enrollDesc',
+ )
: t('devices.connectWizard.cli.connectDesc')
}
>
diff --git a/src/features/DeviceManager/DeviceDetail.tsx b/src/features/DeviceManager/DeviceDetail.tsx
index 1d97edd07f3..45ccd378921 100644
--- a/src/features/DeviceManager/DeviceDetail.tsx
+++ b/src/features/DeviceManager/DeviceDetail.tsx
@@ -132,7 +132,7 @@ const DeviceDetail = memo<DeviceDetailProps>(({ device, isConfirmed, isCurrent,
// Health monitoring and the directory settings are separate jobs; a tab each
// keeps the charts from pushing the directories below the fold. The active
// tab lives in `?tab=` so a view can be linked, reloaded and reached with
- // Back; other params (the workspace `?visibility=`) are kept.
+ // Back; other params are kept.
const [searchParams, setSearchParams] = useSearchParams();
const tabParam = searchParams.get('tab');
const tab: DetailTab = isDetailTab(tabParam) ? tabParam : 'overview';
diff --git a/src/features/DeviceManager/DeviceManager.tsx b/src/features/DeviceManager/DeviceManager.tsx
index 643c0555093..ff0545d258f 100644
--- a/src/features/DeviceManager/DeviceManager.tsx
+++ b/src/features/DeviceManager/DeviceManager.tsx
@@ -2,7 +2,7 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceScope, DeviceVisibility } from '@lobechat/types';
-import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
+import { Button, createStaticStyles, cssVar, Empty, Flexbox, Icon, Text } from '@lobehub/ui';
import {
ChevronRightIcon,
FolderCogIcon,
@@ -14,11 +14,15 @@ import {
TerminalIcon,
ZapIcon,
} from 'lucide-react';
-import { memo, type ReactNode } from 'react';
+import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ManagedDeviceCreateEntry from '@/business/client/features/ManagedDeviceCreateEntry';
import AsyncBoundary from '@/components/AsyncBoundary';
+import VisibilityFilter, {
+ matchesVisibilityFilter,
+ type VisibilityFilterValue,
+} from '@/components/VisibilityFilter';
import SettingsPageActions from '@/features/Settings/features/SettingsPageActions';
import { useDeviceList } from '@/store/device';
import { useElectronStore } from '@/store/electron';
@@ -221,28 +225,18 @@ interface DeviceManagerProps {
onOpenDevice: (deviceId: string) => void;
/** Which device pool this surface manages. */
scope: DeviceScope;
- /**
- * Left side of the toolbar — the workspace page puts its visibility tabs
- * here; the personal page has a single pool and leaves it empty.
- */
- toolbarLeading?: ReactNode;
- /**
- * Workspace scope only: narrow the list to one visibility tab — 'public'
- * (shared pool) or 'private' (the caller's own private enrollments). Omitted
- * → no visibility filtering (personal page).
- */
- visibility?: DeviceVisibility;
}
/**
* Device list shared by the personal (`/settings/devices`) and workspace
* (`/:slug/settings/devices`) pages — toolbar (refresh + connect) above the
- * card grid / onboarding empty state, filtered to the given `scope` (and, for
- * workspace, the active visibility tab). A card opens the device's detail
+ * card grid / onboarding empty state, filtered to the given `scope`. The workspace
+ * list holds the shared pool and the caller's private devices together, the
+ * private ones marked with a lock on their card. A card opens the device's detail
* page; the host owns that route.
*/
const DeviceManager = memo<DeviceManagerProps>((props) => {
- const { onConnect, onOpenDevice, scope, toolbarLeading, visibility } = props;
+ const { onConnect, onOpenDevice, scope } = props;
const { t } = useTranslation('setting');
const isWorkspace = scope === 'workspace';
// The `managed_cloud_device` flag gates only the entry that creates a managed
@@ -255,15 +249,20 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
// a reload paints the persisted cards first, presence pending.
const deviceList = useDeviceList();
const { data, isValidating, error, mutate } = deviceList;
- // `listDevices` is workspace-aware and returns both pools — keep each surface
- // to its own scope (and visibility tab). Ghost rows (`visibility: null`,
- // online but unregistered) belong to the shared pool: the server already
- // strips other members' private devices, so an unclaimed live connection can
- // only be a public-pool machine.
- const devices = (data ?? []).filter(
- (d) => d.scope === scope && (!visibility || (d.visibility ?? 'public') === visibility),
- );
- // A persisted copy with no row for this pool / tab is not proof the pool is
+ // `listDevices` is workspace-aware and returns both scopes — keep each
+ // surface to its own. In a workspace the server already strips other
+ // members' private devices, so both visibility pools list here together.
+ const devices = (data ?? []).filter((d) => d.scope === scope);
+ // Workspace only: narrow the one list to private or shared devices.
+ const [visibilityFilter, setVisibilityFilter] = useState<VisibilityFilterValue>('all');
+ const isPrivateDevice = (d: (typeof devices)[number]) => d.visibility === 'private';
+ const showVisibilityFilter = isWorkspace && devices.length > 0;
+ const visibleDevices = showVisibilityFilter
+ ? devices.filter((d) => matchesVisibilityFilter(isPrivateDevice(d), visibilityFilter))
+ : devices;
+ // A device connected from here starts private; its card menu publishes it.
+ const createVisibility: DeviceVisibility | undefined = isWorkspace ? 'private' : undefined;
+ // A persisted copy with no row for this scope is not proof the pool is
// empty: wait for the server (or its error) before showing onboarding.
const boundary = getDeviceListBoundary(deviceList, devices.length === 0);
@@ -281,14 +280,13 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
// Workspace machines are headless (CLI-only enrollment), so that scope gets
// a single primary button instead of the personal page's connect-method
// cards + capabilities. The copy is pool-agnostic; only the hero icon forks
- // between the shared (server) and private (own machine) pools.
- const isPrivatePool = isWorkspace && visibility === 'private';
+ // between the workspace (server) and personal (own machine) pages.
const emptyState = (
<Flexbox gap={32}>
<Flexbox className={styles.emptyCard}>
<Flexbox align={'center'} className={styles.emptyHero} gap={12}>
<span className={styles.heroIcon}>
- <Icon icon={isWorkspace && !isPrivatePool ? ServerIcon : MonitorDownIcon} size={28} />
+ <Icon icon={isWorkspace ? ServerIcon : MonitorDownIcon} size={28} />
</span>
<Text fontSize={18} weight={600}>
{t(isWorkspace ? 'workspaceSetting.devices.heroTitle' : 'devices.empty.title')}
@@ -307,7 +305,11 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
</Button>
)}
{showManagedDeviceCreate && (
- <ManagedDeviceCreateEntry placement={'empty'} scope={scope} visibility={visibility} />
+ <ManagedDeviceCreateEntry
+ placement={'empty'}
+ scope={scope}
+ visibility={createVisibility}
+ />
)}
</Flexbox>
@@ -340,6 +342,17 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
// only; the personal wizard also offers the desktop app.
const renderActions = (size?: 'small') => (
<Flexbox horizontal align={'center'} gap={8} style={{ flex: 'none' }}>
+ {showVisibilityFilter && (
+ <VisibilityFilter
+ value={visibilityFilter}
+ counts={{
+ all: devices.length,
+ private: devices.filter(isPrivateDevice).length,
+ workspace: devices.filter((d) => !isPrivateDevice(d)).length,
+ }}
+ onChange={setVisibilityFilter}
+ />
+ )}
<Button
icon={<Icon icon={RefreshCwIcon} />}
loading={isValidating}
@@ -348,7 +361,11 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
onClick={() => mutate()}
/>
{showManagedDeviceCreate && (
- <ManagedDeviceCreateEntry placement={'toolbar'} scope={scope} visibility={visibility} />
+ <ManagedDeviceCreateEntry
+ placement={'toolbar'}
+ scope={scope}
+ visibility={createVisibility}
+ />
)}
{isWorkspace ? (
<Button
@@ -373,18 +390,15 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
);
const toolbar = (
- <Flexbox horizontal align={'center'} gap={16} justify={'space-between'}>
- <div style={{ minWidth: 0 }}>{toolbarLeading}</div>
+ <Flexbox horizontal align={'center'} justify={'flex-end'}>
{renderActions()}
</Flexbox>
);
- // With nothing on the left (the personal pool), the actions join the shared
- // settings header instead of leaving a half-empty toolbar row; hosts without
- // that header (workspace settings, mobile) keep the toolbar.
- const toolbarSlot = toolbarLeading ? (
- toolbar
- ) : (
+ // The actions join the shared settings header instead of leaving a
+ // half-empty toolbar row; hosts without that header (workspace settings,
+ // mobile) keep the toolbar.
+ const toolbarSlot = (
<SettingsPageActions fallback={toolbar}>{renderActions()}</SettingsPageActions>
);
@@ -399,16 +413,23 @@ const DeviceManager = memo<DeviceManagerProps>((props) => {
loading={<DeviceGridSkeleton />}
onRetry={() => mutate()}
>
- <DeviceGrid>
- {devices.map((device) => (
- <DeviceCard
- device={device}
- isCurrent={isCurrent(device.deviceId)}
- key={device.deviceId}
- onOpen={() => onOpenDevice(device.deviceId)}
- />
- ))}
- </DeviceGrid>
+ {visibleDevices.length === 0 ? (
+ <Empty
+ description={t('visibilityFilter.empty', { ns: 'common' })}
+ style={{ paddingBlock: 48 }}
+ />
+ ) : (
+ <DeviceGrid>
+ {visibleDevices.map((device) => (
+ <DeviceCard
+ device={device}
+ isCurrent={isCurrent(device.deviceId)}
+ key={device.deviceId}
+ onOpen={() => onOpenDevice(device.deviceId)}
+ />
+ ))}
+ </DeviceGrid>
+ )}
</AsyncBoundary>
);
diff --git a/src/features/EnvironmentManager/CreateEnvironmentModal.tsx b/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
index 3190a71da22..b755de675fe 100644
--- a/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
+++ b/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
@@ -103,9 +103,9 @@ const CreateEnvironmentContent = memo<CreateEnvironmentContentProps>(
}
: { kind: 'code' },
name: trimmed,
- // Created into the pool the person is looking at. Opening the dialog
- // from the Private tab and having the result land in the workspace's
- // shared list would be a publication nobody asked for.
+ // Created into the pool the host chose (private on the workspace
+ // page). Landing in the workspace's shared pool by default would be
+ // a publication nobody asked for.
visibility,
});
close();
@@ -130,7 +130,7 @@ const CreateEnvironmentContent = memo<CreateEnvironmentContentProps>(
// first instance on — and an instance keeps whatever a session leaves in its
// home directory, credentials included. So creating one there asks the same
// question publishing one does, with the same explanation, rather than
- // publishing it silently because of which tab happened to be open.
+ // publishing it silently.
const submit = () => {
if (!trimmed || creating) return;
if (visibility !== 'public') return void create();
diff --git a/src/features/EnvironmentManager/EnvironmentItem.tsx b/src/features/EnvironmentManager/EnvironmentItem.tsx
index 9c54bd84930..ce89a5da2fc 100644
--- a/src/features/EnvironmentManager/EnvironmentItem.tsx
+++ b/src/features/EnvironmentManager/EnvironmentItem.tsx
@@ -20,6 +20,7 @@ import { EyeOffIcon, GlobeIcon, MoreHorizontalIcon, Trash2Icon } from 'lucide-re
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import UserAvatar from '@/components/UserAvatar';
import VisibilityConfirmContent from '@/features/VisibilityConfirmContent';
import { useDensity } from '@/styles/density';
@@ -280,6 +281,7 @@ const EnvironmentItem = memo<EnvironmentItemProps>((props) => {
>
{environment.name}
</Text>
+ {environment.workspaceId && environment.visibility === 'private' && <PrivateLockIcon />}
{environment.description && (
/* Shrinks a thousand times more readily than the name, the same
way the repository yields to the facts on the line below. */
diff --git a/src/features/EnvironmentManager/Skeleton.tsx b/src/features/EnvironmentManager/Skeleton.tsx
index a77b6ac9517..4d4ad8defb7 100644
--- a/src/features/EnvironmentManager/Skeleton.tsx
+++ b/src/features/EnvironmentManager/Skeleton.tsx
@@ -49,9 +49,9 @@ export const EnvironmentDefinitionSkeleton = () => (
);
/**
- * `EnvironmentManager` before its chunk loads: the heading row (pool tabs, or
- * the section name, then refresh + create) above the list frame. `leading`
- * replaces the section name, e.g. with a tab-strip placeholder.
+ * `EnvironmentManager` before its chunk loads: the heading row (the section
+ * name or the host's lead-in, then refresh + create) above the list frame.
+ * `leading` replaces the section name.
*/
export const EnvironmentManagerSkeleton = ({ leading }: { leading?: ReactNode }) => {
const { t } = useTranslation('setting');
diff --git a/src/features/EnvironmentManager/index.tsx b/src/features/EnvironmentManager/index.tsx
index b34c2c5c853..65c19eb136a 100644
--- a/src/features/EnvironmentManager/index.tsx
+++ b/src/features/EnvironmentManager/index.tsx
@@ -16,6 +16,10 @@ import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
import AsyncBoundary from '@/components/AsyncBoundary';
+import VisibilityFilter, {
+ matchesVisibilityFilter,
+ type VisibilityFilterValue,
+} from '@/components/VisibilityFilter';
import { openCreateEnvironmentModal } from './CreateEnvironmentModal';
import EnvironmentItem from './EnvironmentItem';
@@ -59,34 +63,42 @@ const LIST_MIN_HEIGHT = 4 * 72;
* its page, laid out the same way a project's environment page is.
*/
interface EnvironmentManagerProps {
- /** Open one environment's page. */
- onOpenEnvironment: (id: string) => void;
/**
- * Put beside the actions rather than above them, so the page has one header
- * row instead of two. Passed in rather than built here because only a page
- * with more than one pool has anything to put in it, and that page is the one
- * that owns which pool is selected.
+ * Workspace pages only: where a new environment lands. The list itself is
+ * every environment the caller can see — published and their own private
+ * ones together. Omitted on the personal page, where an environment has no
+ * pool to belong to.
*/
- tabs?: ReactNode;
+ createVisibility?: EnvironmentVisibility;
/**
- * Workspace pages only: which pool to manage — `public` (published to the
- * workspace) or `private` (the caller's own). Omitted on the personal page,
- * where an environment has no pool to belong to.
+ * Put beside the actions rather than above them, so the page has one header
+ * row instead of two. Omitted, the section's own name sits there.
*/
- visibility?: EnvironmentVisibility;
+ headerLeading?: ReactNode;
+ /** Open one environment's page. */
+ onOpenEnvironment: (id: string) => void;
}
const EnvironmentManager = memo<EnvironmentManagerProps>(
- ({ onOpenEnvironment, tabs, visibility }) => {
+ ({ createVisibility, headerLeading, onOpenEnvironment }) => {
const { t } = useTranslation('setting');
// `settled`: a list to paint — the stored one on a reload, confirmed behind
- // it, a tab switch included. A stored empty list waits for the server.
- const { environments, error, revalidate, settled } = useEnvironments(visibility);
+ // it. A stored empty list waits for the server.
+ const { environments, error, revalidate, settled } = useEnvironments();
// Whether a refresh the user asked for is still running.
const [refreshing, setRefreshing] = useState(false);
const list = environments ?? [];
+ // Workspace pages only (where a new environment has a pool to land in):
+ // narrow the one list to private or published environments.
+ const [visibilityFilter, setVisibilityFilter] = useState<VisibilityFilterValue>('all');
+ const isPrivateEnvironment = (environment: (typeof list)[number]) =>
+ !!environment.workspaceId && environment.visibility === 'private';
+ const showVisibilityFilter = !!createVisibility && list.length > 0;
+ const visibleList = showVisibilityFilter
+ ? list.filter((e) => matchesVisibilityFilter(isPrivateEnvironment(e), visibilityFilter))
+ : list;
// Open what was just made. Nothing is built: an environment is applied to
// a working directory when a conversation picks it.
@@ -95,7 +107,7 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
/**
* The spinner is driven by this call rather than by `isValidating`, which is
* true of every fetch the page makes — read off that flag the button would
- * spin on a tab switch and on any background revalidation.
+ * spin on any background revalidation.
*/
const refresh = async () => {
setRefreshing(true);
@@ -117,6 +129,17 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
// names the list. Left shrinkable, the group gets compressed by a wide
// neighbour.
<Flexbox horizontal align={'center'} gap={8} style={{ flex: 'none' }}>
+ {showVisibilityFilter && (
+ <VisibilityFilter
+ value={visibilityFilter}
+ counts={{
+ all: list.length,
+ private: list.filter(isPrivateEnvironment).length,
+ workspace: list.filter((e) => !isPrivateEnvironment(e)).length,
+ }}
+ onChange={setVisibilityFilter}
+ />
+ )}
<Button
icon={<Icon icon={RefreshCwIcon} />}
loading={refreshing}
@@ -126,7 +149,7 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
<Button
icon={<Icon icon={PlusIcon} />}
type={'primary'}
- onClick={() => openCreateEnvironmentModal(visibility, onEnvironmentCreated)}
+ onClick={() => openCreateEnvironmentModal(createVisibility, onEnvironmentCreated)}
>
{t('environments.create')}
</Button>
@@ -154,17 +177,17 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
descriptionProps={{ fontSize: 13 }}
icon={ContainerIcon}
style={{ maxWidth: 360 }}
+ title={t('environments.empty')}
action={
<Button
icon={<Icon icon={PlusIcon} />}
- onClick={() => openCreateEnvironmentModal(visibility, onEnvironmentCreated)}
+ onClick={() =>
+ openCreateEnvironmentModal(createVisibility, onEnvironmentCreated)
+ }
>
{t('environments.create')}
</Button>
}
- title={t(
- visibility === 'public' ? 'environments.emptyPublished' : 'environments.empty',
- )}
/>
</Center>
</Flexbox>
@@ -172,7 +195,12 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
onRetry={refresh}
>
<Flexbox className={styles.listCol} gap={2} padding={4}>
- {list.map((environment) => (
+ {visibleList.length === 0 && (
+ <Center style={{ minHeight: LIST_MIN_HEIGHT }} width={'100%'}>
+ <Empty description={t('visibilityFilter.empty', { ns: 'common' })} />
+ </Center>
+ )}
+ {visibleList.map((environment) => (
<EnvironmentItem
environment={environment}
key={environment.id}
@@ -185,13 +213,13 @@ const EnvironmentManager = memo<EnvironmentManagerProps>(
/**
* One layout for both pages. What sits on the left of the header is the only
- * difference: tabs where there is a pool to choose, and the section's own
- * name where there is not.
+ * difference: the host's own lead-in where it passes one, and the section's
+ * own name where it does not.
*/
return (
<Flexbox gap={16}>
<Flexbox horizontal align={'center'} gap={16} justify={'space-between'} wrap={'wrap'}>
- {tabs ?? (
+ {headerLeading ?? (
<Text fontSize={16} weight={600}>
{t('environments.mine')}
</Text>
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
index 608ee28bdc1..556b7864671 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
@@ -6,6 +6,7 @@ import { type CSSProperties, type DragEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import AgentGroupAvatar from '@/features/AgentGroupAvatar';
import NavItem from '@/features/NavPanel/components/NavItem';
import WorkspaceLink from '@/features/Workspace/WorkspaceLink';
@@ -14,7 +15,6 @@ import { useHomeStore } from '@/store/home';
import { useSidebarPinState } from '../../useSidebarPinState';
import Actions from '../Item/Actions';
-import PrivateLockIcon from '../PrivateLockIcon';
import { useGroupDropdownMenu } from './useDropdownMenu';
interface GroupItemProps {
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
index 51a34156882..9349a9c77e0 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
@@ -9,6 +9,7 @@ import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import AgentAvatar from '@/components/AgentAvatar';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';
import NavItem from '@/features/NavPanel/components/NavItem';
import WorkspaceLink from '@/features/Workspace/WorkspaceLink';
@@ -21,7 +22,6 @@ import { useHomeStore } from '@/store/home';
import { useAgentModal } from '../../ModalProvider';
import { useSidebarPinState } from '../../useSidebarPinState';
import Actions from '../Item/Actions';
-import PrivateLockIcon from '../PrivateLockIcon';
import { usePreservedAgentUrl } from '../usePreservedAgentUrl';
import { useAgentDropdownMenu } from './useDropdownMenu';
diff --git a/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx b/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
index df67e49fa49..6d131ffa283 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
@@ -17,13 +17,13 @@ import { HashIcon } from 'lucide-react';
import React, { memo, useCallback, useMemo, useState } from 'react';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import SectionTitle, { useSectionTriggerStyle } from '@/features/NavPanel/components/SectionTitle';
import { useHomeStore } from '@/store/home';
import { useCreateMenuItems } from '../../../../hooks';
import { useAgentModal } from '../../ModalProvider';
import SessionList from '../List';
-import PrivateLockIcon from '../PrivateLockIcon';
import Actions from './Actions';
import { useGroupDropdownMenu } from './useDropdownMenu';
diff --git a/src/features/Settings/creds/features/CredItem.tsx b/src/features/Settings/creds/features/CredItem.tsx
index 94a63de3b13..6f24fce500a 100644
--- a/src/features/Settings/creds/features/CredItem.tsx
+++ b/src/features/Settings/creds/features/CredItem.tsx
@@ -45,6 +45,8 @@ interface CredItemProps {
onView?: (cred: UserCredSummary) => void;
/** Tags shown after the type tag (owner, sharing state). */
tags?: React.ReactNode;
+ /** Inline marker right after the name, e.g. the private lock in the workspace list. */
+ titleSuffix?: React.ReactNode;
}
const typeIcons: Record<string, React.ReactNode> = {
@@ -62,7 +64,7 @@ const typeColors: Record<string, string> = {
};
const CredItem: FC<CredItemProps> = memo(
- ({ canManage, cred, extraMenuItems = [], onEdit, onDelete, onView, tags }) => {
+ ({ canManage, cred, extraMenuItems = [], onEdit, onDelete, onView, tags, titleSuffix }) => {
const { t } = useTranslation('setting');
const { compact, tokens } = useDensity();
@@ -150,6 +152,7 @@ const CredItem: FC<CredItemProps> = memo(
<span {...stylex.props(styles.title, compact && styles.titleCompact)}>
{cred.name}
</span>
+ {titleSuffix}
<Tag color={typeColors[cred.type]}>{t(`creds.types.${cred.type}`)}</Tag>
{tags}
</Flexbox>
diff --git a/src/features/Settings/creds/features/WorkspaceCredsList.test.tsx b/src/features/Settings/creds/features/WorkspaceCredsList.test.tsx
new file mode 100644
index 00000000000..3efca5942ba
--- /dev/null
+++ b/src/features/Settings/creds/features/WorkspaceCredsList.test.tsx
@@ -0,0 +1,66 @@
+import { type UserCredSummary } from '@lobechat/types';
+import { render, screen, within } from '@testing-library/react';
+import { describe, expect, it, vi } from 'vitest';
+
+import { type CredsApi } from './useCredsApi';
+import WorkspaceCredsList from './WorkspaceCredsList';
+
+vi.mock('@/layout/AuthProvider/MarketAuth', () => ({
+ useMarketAuth: () => ({ session: { userInfo: { accountId: 1 } } }),
+}));
+
+vi.mock('@/hooks/usePermission', () => ({
+ usePermission: () => ({ allowed: true, reason: '' }),
+}));
+
+vi.mock('@/libs/trpc/client', () => ({ lambdaClient: { market: { creds: {} } } }));
+
+const cred = (overrides: Partial<UserCredSummary>): UserCredSummary =>
+ ({
+ createdAt: '2026-11-19T00:00:00.000Z',
+ createdByAccountId: 1,
+ id: 1,
+ key: 'KEY',
+ name: 'cred',
+ ownerType: 'organization',
+ type: 'kv-env',
+ updatedAt: '2026-11-19T00:00:00.000Z',
+ visibility: 'public',
+ ...overrides,
+ }) as UserCredSummary;
+
+const credsApiWith = (rows: UserCredSummary[]) =>
+ ({
+ client: { delete: { mutate: vi.fn() } },
+ query: {
+ list: {
+ useQuery: () => ({
+ data: { data: rows },
+ error: null,
+ isLoading: false,
+ refetch: vi.fn(),
+ }),
+ },
+ },
+ setVisibility: vi.fn(),
+ }) as unknown as CredsApi;
+
+describe('WorkspaceCredsList', () => {
+ it('lists shared and private credentials together and locks only the private ones', () => {
+ render(
+ <WorkspaceCredsList
+ credsApi={credsApiWith([
+ cred({ id: 1, key: 'TEAM_TOKEN', name: 'Team token', visibility: 'public' }),
+ cred({ id: 2, key: 'MY_TOKEN', name: 'My token', visibility: 'private' }),
+ ])}
+ />,
+ );
+
+ const shared = screen.getByText('Team token').parentElement!;
+ const mine = screen.getByText('My token').parentElement!;
+
+ expect(within(shared).queryByTestId('private-lock')).toBeNull();
+ expect(within(mine).getByTestId('private-lock')).toBeInTheDocument();
+ expect(screen.getAllByTestId('private-lock')).toHaveLength(1);
+ });
+});
diff --git a/src/features/Settings/creds/features/WorkspaceCredsList.tsx b/src/features/Settings/creds/features/WorkspaceCredsList.tsx
index 810a4e43e50..b5d3ab3d1bd 100644
--- a/src/features/Settings/creds/features/WorkspaceCredsList.tsx
+++ b/src/features/Settings/creds/features/WorkspaceCredsList.tsx
@@ -7,7 +7,9 @@ import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
import AsyncBoundary from '@/components/AsyncBoundary';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import { CredsListSkeleton } from '@/components/Skeleton/Settings/tabs/Creds';
+import { matchesVisibilityFilter, type VisibilityFilterValue } from '@/components/VisibilityFilter';
import VisibilityConfirmContent from '@/features/VisibilityConfirmContent';
import { usePermission } from '@/hooks/usePermission';
import { useMarketAuth } from '@/layout/AuthProvider/MarketAuth';
@@ -25,26 +27,31 @@ type Visibility = 'private' | 'public';
interface WorkspaceCredsListProps {
/** The workspace binding (`workspaceCreds`), with `setVisibility`. */
credsApi: CredsApi;
- /** Which tab: credentials shared with every member, or the caller's private ones. */
- visibility: Visibility;
+ /** Narrow the list to private or shared credentials; every row when omitted. */
+ visibilityFilter?: VisibilityFilterValue;
}
/**
- * One tab of the workspace credential page, mirroring the device page's
- * Workspace / Private split. `workspaceCreds.list` already returns only what
- * the caller can see — shared credentials plus their own private ones — so
- * each tab is a filter on `visibility`. A row is a workspace credential or a
- * member's personal credential shared in; see `credAccess.ts` for who may do
- * what with each.
+ * The workspace credential list. `workspaceCreds.list` already returns only
+ * what the caller can see — shared credentials plus their own private ones —
+ * so it is listed as is, private rows marked with a lock. A row is a
+ * workspace credential or a member's personal credential shared in; see
+ * `credAccess.ts` for who may do what with each.
*/
-const WorkspaceCredsList: FC<WorkspaceCredsListProps> = ({ credsApi, visibility }) => {
+const WorkspaceCredsList: FC<WorkspaceCredsListProps> = ({
+ credsApi,
+ visibilityFilter = 'all',
+}) => {
const { t } = useTranslation(['setting', 'common']);
const { session } = useMarketAuth();
const { allowed: isAdmin } = usePermission('manage_provider_key');
const myAccountId = session?.userInfo?.accountId;
const { data, error, isLoading, refetch } = credsApi.query.list.useQuery();
- const credentials = (data?.data ?? []).filter((cred) => cred.visibility === visibility);
+ const credentials = data?.data ?? [];
+ const visibleCredentials = credentials.filter((cred) =>
+ matchesVisibilityFilter(cred.visibility === 'private', visibilityFilter),
+ );
const run = async (action: () => Promise<unknown>) => {
try {
@@ -98,21 +105,22 @@ const WorkspaceCredsList: FC<WorkspaceCredsListProps> = ({ credsApi, visibility
return (
<AsyncBoundary
data={data}
+ empty={<Empty description={t('creds.empty')} style={{ paddingBlock: 48 }} />}
error={error}
errorVariant={'block'}
isEmpty={credentials.length === 0}
isLoading={isLoading}
loading={<CredsListSkeleton />}
- empty={
- <Empty
- description={t(visibility === 'private' ? 'creds.privateSection.empty' : 'creds.empty')}
- style={{ paddingBlock: 48 }}
- />
- }
onRetry={() => refetch()}
>
<Flexbox gap={0}>
- {credentials.map((cred) => {
+ {visibleCredentials.length === 0 && (
+ <Empty
+ description={t('visibilityFilter.empty', { ns: 'common' })}
+ style={{ paddingBlock: 48 }}
+ />
+ )}
+ {visibleCredentials.map((cred) => {
const access = workspaceCredRowAccess(cred, { isAdmin, myAccountId });
const extraMenuItems = [
...(access.publish
@@ -154,6 +162,7 @@ const WorkspaceCredsList: FC<WorkspaceCredsListProps> = ({ credsApi, visibility
cred={cred}
extraMenuItems={extraMenuItems}
key={cred.id}
+ titleSuffix={cred.visibility === 'private' && <PrivateLockIcon />}
tags={
cred.ownerType === 'user' && (
<Tag>
diff --git a/src/features/SubscriptionAccounts/AccountRow.tsx b/src/features/SubscriptionAccounts/AccountRow.tsx
index 92c17e98fa9..915daa77170 100644
--- a/src/features/SubscriptionAccounts/AccountRow.tsx
+++ b/src/features/SubscriptionAccounts/AccountRow.tsx
@@ -29,6 +29,7 @@ import {
import { type CSSProperties, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import PrivateLockIcon from '@/components/PrivateLockIcon';
import { formatPercent, usageLevel } from '@/features/DeviceManager/DeviceHealth/format';
import { usageTextColor } from '@/features/DeviceManager/DeviceHealth/shared';
import { UsageBar } from '@/features/DeviceManager/DeviceHealth/UsageMeter';
@@ -221,7 +222,6 @@ const AccountRow = ({ account, active, onOpen }: AccountRowProps) => {
// Only workspace accounts carry a visibility; personal ones have no team to hide from.
const isPrivate = !!account.workspaceId && account.visibility === 'private';
// With a label set, the email moves to the subtitle so the account stays identifiable.
- // Private or shared is the page's tab, so the row does not repeat it.
const subtitle = [meta.name, account.label ? account.email : undefined]
.filter(Boolean)
.join(' · ');
@@ -258,7 +258,7 @@ const AccountRow = ({ account, active, onOpen }: AccountRowProps) => {
okButtonProps: visibility === 'private' ? { danger: true } : undefined,
okText: t(`subscriptionAccounts.visibility.${visibility}Action`),
onOk: async () => {
- // The account leaves this tab, so say where it went.
+ // Say who can use the account now.
if (await run(() => setQuotaAccountVisibility(account.id, visibility)))
toast.success(t(`subscriptionAccounts.visibility.${visibility}Done`));
},
@@ -365,9 +365,12 @@ const AccountRow = ({ account, active, onOpen }: AccountRowProps) => {
/>
</Flexbox>
) : (
- <Text ellipsis title={name} weight={500}>
- {name}
- </Text>
+ <Flexbox horizontal align={'center'} gap={6} style={{ minWidth: 0 }}>
+ <Text ellipsis title={name} weight={500}>
+ {name}
+ </Text>
+ {isPrivate && <PrivateLockIcon />}
+ </Flexbox>
)}
<Text ellipsis fontSize={12} type={'secondary'}>
{subtitle}
diff --git a/src/features/SubscriptionAccounts/accountView.test.ts b/src/features/SubscriptionAccounts/accountView.test.ts
index 2497052b136..72d94f13cd5 100644
--- a/src/features/SubscriptionAccounts/accountView.test.ts
+++ b/src/features/SubscriptionAccounts/accountView.test.ts
@@ -1,12 +1,6 @@
import { describe, expect, it } from 'vitest';
-import {
- accountVisibilityTab,
- deriveAccountView,
- matchesKeyword,
- meterWindows,
- sortAccounts,
-} from './accountView';
+import { deriveAccountView, matchesKeyword, meterWindows, sortAccounts } from './accountView';
const NOW = Date.UTC(2026, 9, 24, 12);
const HOUR = 60 * 60 * 1000;
@@ -154,15 +148,3 @@ describe('matchesKeyword', () => {
expect(matchesKeyword(ultra, 'max')).toBe(false);
});
});
-
-describe('accountVisibilityTab', () => {
- it('lists a private account under Private and a shared one under Workspace', () => {
- expect(accountVisibilityTab({ visibility: 'private' })).toBe('private');
- expect(accountVisibilityTab({ visibility: 'public' })).toBe('public');
- });
-
- it('lists an account without a stored visibility under Workspace', () => {
- expect(accountVisibilityTab({ visibility: null })).toBe('public');
- expect(accountVisibilityTab({})).toBe('public');
- });
-});
diff --git a/src/features/SubscriptionAccounts/accountView.ts b/src/features/SubscriptionAccounts/accountView.ts
index 396532604cd..836b5a30a5c 100644
--- a/src/features/SubscriptionAccounts/accountView.ts
+++ b/src/features/SubscriptionAccounts/accountView.ts
@@ -152,15 +152,3 @@ export const matchesKeyword = (
field?.toLowerCase().includes(needle),
);
};
-
-/** The two pools of a workspace, as tabs: shared with every member, or the caller's own. */
-export type AccountVisibilityTab = 'private' | 'public';
-
-/**
- * Which workspace tab an account lists under. A teammate's private account is
- * never returned to the caller, so the Private tab holds only the caller's own.
- * A personal-space account has no team and no visibility: it is not split.
- */
-export const accountVisibilityTab = (account: {
- visibility?: string | null;
-}): AccountVisibilityTab => (account.visibility === 'private' ? 'private' : 'public');
diff --git a/src/features/SubscriptionAccounts/index.tsx b/src/features/SubscriptionAccounts/index.tsx
index 15217285c91..c8e3539d7cc 100644
--- a/src/features/SubscriptionAccounts/index.tsx
+++ b/src/features/SubscriptionAccounts/index.tsx
@@ -1,32 +1,22 @@
'use client';
-import {
- ActionIcon,
- Button,
- Empty,
- Flexbox,
- Icon,
- SearchBar,
- Select,
- Tabs,
- Text,
-} from '@lobehub/ui';
+import { ActionIcon, Button, Empty, Flexbox, SearchBar, Select, Text } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
-import { LockIcon, RefreshCwIcon, UsersIcon } from 'lucide-react';
+import { RefreshCwIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { useSearchParams } from 'react-router';
-import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import SkeletonBar from '@/components/Skeleton/Bar';
+import VisibilityFilter, {
+ matchesVisibilityFilter,
+ type VisibilityFilterValue,
+} from '@/components/VisibilityFilter';
import { cacheScope } from '@/libs/replica';
import { agentQuotaSelectors, type QuotaAccount, useAgentQuotaStore } from '@/store/agentQuota';
import AccountDetailPanel from './AccountDetailPanel';
import AccountRow, { AccountListHeader, LIST_MIN_WIDTH, PROVIDER_NAME } from './AccountRow';
import {
- type AccountVisibilityTab,
- accountVisibilityTab,
isSubscriptionProvider,
matchesKeyword,
sortAccounts,
@@ -45,9 +35,8 @@ const ALL = 'all';
* Accounts register themselves when a CLI login reports quota; this page only
* decides which of them stay in rotation and what they are called.
*
- * In a workspace the accounts split into two tabs, as on the Devices page:
- * Workspace (shared with every member) and Private (the caller's own). The tab
- * lives in `?visibility=`; the personal space has no team and no tabs.
+ * In a workspace the shared accounts and the caller's own private ones list
+ * together, the private ones marked with a lock (as on the Devices page).
*/
const SubscriptionAccounts = () => {
const { t } = useTranslation('setting');
@@ -60,36 +49,23 @@ const SubscriptionAccounts = () => {
const loaded = useAgentQuotaStore(agentQuotaSelectors.accounts);
const [provider, setProvider] = useState<SubscriptionProvider | typeof ALL>(ALL);
const [keyword, setKeyword] = useState('');
+ const [visibilityFilter, setVisibilityFilter] = useState<VisibilityFilterValue>('all');
const [openId, setOpenId] = useState<string>();
- const split = !!useActiveWorkspaceId();
- const [searchParams, setSearchParams] = useSearchParams();
- const tab: AccountVisibilityTab =
- searchParams.get('visibility') === 'private' ? 'private' : 'public';
- const setTab = (next: AccountVisibilityTab) => {
- // The open account belongs to the tab being left.
- setOpenId(undefined);
- // Keep the other params (e.g. `?hl=`); only the tab changes.
- setSearchParams(
- (prev) => {
- const params = new URLSearchParams(prev);
- if (next === 'private') params.set('visibility', next);
- else params.delete('visibility');
- return params;
- },
- { replace: true },
- );
- };
-
- const allAccounts = sortAccounts(
+ const accounts = sortAccounts(
(loaded ?? []).filter((a): a is ProviderAccount => isSubscriptionProvider(a.provider)),
);
- // Everything below (filters, counts, capacity, the open account) speaks for the active tab.
- const accounts = split ? allAccounts.filter((a) => accountVisibilityTab(a) === tab) : allAccounts;
const present = SUBSCRIPTION_PROVIDERS.filter((p) => accounts.some((a) => a.provider === p));
// A provider filter that no longer has accounts falls back to everything.
const active = provider !== ALL && present.includes(provider) ? provider : ALL;
+ // Only workspace accounts carry a visibility, so the filter shows only in a
+ // workspace, where shared and the caller's private accounts list together.
+ const isPrivateAccount = (a: ProviderAccount) => !!a.workspaceId && a.visibility === 'private';
+ const showVisibilityFilter = accounts.some((a) => !!a.workspaceId);
const visible = accounts.filter(
- (a) => (active === ALL || a.provider === active) && matchesKeyword(a, keyword),
+ (a) =>
+ (active === ALL || a.provider === active) &&
+ (!showVisibilityFilter || matchesVisibilityFilter(isPrivateAccount(a), visibilityFilter)) &&
+ matchesKeyword(a, keyword),
);
const openAccount = accounts.find((a) => a.id === openId);
const inRotation = accounts.filter((a) => a.enabled !== false).length;
@@ -109,7 +85,7 @@ const SubscriptionAccounts = () => {
};
// A hydrated empty list may be stale: only the server's answer settles "none yet".
- const settling = !confirmed && !error && allAccounts.length === 0;
+ const settling = !confirmed && !error && accounts.length === 0;
const body = settling ? (
<Flexbox gap={4}>
@@ -117,28 +93,18 @@ const SubscriptionAccounts = () => {
<SkeletonBar height={56} key={i} radius={cssVar.borderRadius} />
))}
</Flexbox>
- ) : error && allAccounts.length === 0 ? (
+ ) : error && accounts.length === 0 ? (
// A failed load must not read as "no accounts" — they would look identical.
<Flexbox align={'center'} gap={12} paddingBlock={40}>
<Empty description={t('subscriptionAccounts.loadFailed')} />
<Button onClick={() => void revalidate()}>{t('retry', { ns: 'common' })}</Button>
</Flexbox>
- ) : allAccounts.length === 0 ? (
+ ) : accounts.length === 0 ? (
<Empty
description={t('subscriptionAccounts.empty.desc')}
style={{ paddingBlock: 40 }}
title={t('subscriptionAccounts.empty.title')}
/>
- ) : accounts.length === 0 ? (
- // The other tab has accounts: say what belongs here and how one gets here.
- <Empty
- style={{ paddingBlock: 40 }}
- description={
- tab === 'private'
- ? t('subscriptionAccounts.empty.privateDesc')
- : t('subscriptionAccounts.empty.workspaceDesc')
- }
- />
) : (
<Flexbox gap={16}>
{visible.length > 0 && (
@@ -177,35 +143,11 @@ const SubscriptionAccounts = () => {
return (
<Flexbox gap={16} width={'100%'}>
- {/* Tabs, the summary beside them, and the toolbar share one row, as on the
- Devices page. The tabs sit in a plain block (as there): a flex wrapper
- stretches their full-width root and throws the row out of line. */}
+ {/* The summary and the toolbar share one row. */}
<Flexbox horizontal align={'center'} gap={12} justify={'space-between'} wrap={'wrap'}>
- <Flexbox horizontal align={'center'} gap={16} style={{ minWidth: 0 }}>
- {split && (
- <div style={{ flex: 'none' }}>
- <Tabs
- activeKey={tab}
- items={[
- {
- icon: <Icon icon={UsersIcon} />,
- key: 'public',
- label: t('subscriptionAccounts.tabs.workspace'),
- },
- {
- icon: <Icon icon={LockIcon} />,
- key: 'private',
- label: t('subscriptionAccounts.tabs.private'),
- },
- ]}
- onChange={(key) => setTab(key as AccountVisibilityTab)}
- />
- </div>
- )}
- {summary}
- </Flexbox>
+ {summary}
<Flexbox horizontal align={'center'} gap={8}>
- {/* Nothing to search or filter in an empty tab. Filters sit on the right
+ {/* Nothing to search or filter in an empty list. Filters sit on the right
as a dropdown: the provider list grows with every coding plan we
support, which a segmented control cannot hold. */}
{accounts.length > 0 && (
@@ -218,13 +160,24 @@ const SubscriptionAccounts = () => {
variant={'filled'}
onChange={(e) => setKeyword(e.target.value)}
/>
+ {showVisibilityFilter && (
+ <VisibilityFilter
+ value={visibilityFilter}
+ counts={{
+ all: accounts.length,
+ private: accounts.filter(isPrivateAccount).length,
+ workspace: accounts.filter((a) => !isPrivateAccount(a)).length,
+ }}
+ onChange={setVisibilityFilter}
+ />
+ )}
<Select
style={{ minWidth: 168 }}
value={active}
variant={'filled'}
options={[
{
- label: `${t('subscriptionAccounts.filter.all')} · ${accounts.length}`,
+ label: `${t('subscriptionAccounts.filter.allProviders')} · ${accounts.length}`,
value: ALL,
},
...present.map((p) => ({
diff --git a/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
index fb9badc7c0e..8bfef44fb5d 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
@@ -1,18 +1,18 @@
'use client';
-import { Block, Button, Empty, Flexbox, Icon, Tabs, Text, Tooltip } from '@lobehub/ui';
+import { Block, Button, Empty, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
-import { Lock, Plus, UsersIcon } from 'lucide-react';
+import { Plus } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useIsWorkspaceViewer } from '@/business/client/hooks/useIsWorkspaceViewer';
+import VisibilityFilter, { type VisibilityFilterValue } from '@/components/VisibilityFilter';
import { createCreateCredModal } from '@/features/Settings/creds/features/CreateCredModal';
import MarketSignInGate from '@/features/Settings/creds/features/MarketSignInGate';
import { type CredsApi } from '@/features/Settings/creds/features/useCredsApi';
import WorkspaceCredsList from '@/features/Settings/creds/features/WorkspaceCredsList';
-import { usePermission } from '@/hooks/usePermission';
import { useMarketAuth } from '@/layout/AuthProvider/MarketAuth';
import { lambdaClient, lambdaQuery } from '@/libs/trpc/client';
import { densityTokens } from '@/styles/density.stylex';
@@ -51,22 +51,18 @@ const workspaceCredsApi = (createVisibility: Visibility): CredsApi => ({
setVisibility: (id, visibility) => workspaceClient.setVisibility.mutate({ id, visibility }),
});
-const credsApiByTab: Record<Visibility, CredsApi> = {
- private: workspaceCredsApi('private'),
- public: workspaceCredsApi('public'),
-};
+/**
+ * A new credential starts private: any non-viewer member may create one, and
+ * nothing is shared until its row's "Publish to Workspace" says so.
+ */
+const credsApi = workspaceCredsApi('private');
/**
- * Workspace credential management, split like the device page:
- *
- * - "Workspace": credentials every member can use — the workspace's own and
- * members' personal credentials published here.
- * - "Private": credentials only the caller can use in this workspace — ones
- * they created here, and their personal credentials shared here privately.
- *
- * A credential created on a tab belongs to the workspace with that tab's
- * visibility; personal credentials are shared in from the personal settings
- * page ("Share to Workspace…"), not listed here wholesale.
+ * Workspace credential management: one list of every credential the caller
+ * can use here — the shared ones (the workspace's own and members' personal
+ * credentials published here) and the caller's private ones, marked with a
+ * lock. Personal credentials are shared in from the personal settings page
+ * ("Share to Workspace…"), not listed here wholesale.
*
* When the workspace has no Market organization yet (Community Profile not
* completed), the backend returns NOT_FOUND and the page shows a setup prompt.
@@ -74,14 +70,11 @@ const credsApiByTab: Record<Visibility, CredsApi> = {
const WorkspaceCredsSetting = () => {
const { t } = useTranslation('setting');
const { isAuthenticated } = useMarketAuth();
- const { allowed: isAdmin, reason } = usePermission('manage_provider_key');
const isViewer = useIsWorkspaceViewer();
- const [tab, setTab] = useState<Visibility>('public');
- const credsApi = credsApiByTab[tab];
- // Both tabs filter this one list; it also shares its query key with the
- // list inside WorkspaceCredsList, so `refetch` here refreshes the tab.
- const { error, isLoading, refetch } = credsApi.query.list.useQuery(undefined, {
+ // Shares its query key with the list inside WorkspaceCredsList, so
+ // `refetch` here refreshes the list.
+ const { data, error, isLoading, refetch } = credsApi.query.list.useQuery(undefined, {
enabled: isAuthenticated,
// No retry for NOT_FOUND — the org won't materialise on its own.
// Cap retries for other errors (500s, network) so failures surface instead of looping.
@@ -94,11 +87,13 @@ const WorkspaceCredsSetting = () => {
const orgMissing = isAuthenticated && !isLoading && error?.data?.code === 'NOT_FOUND';
- // Shared credentials need the Admin-or-higher `manage_provider_key`, matching
- // the server; private ones are any non-viewer member's own.
- const canCreate = tab === 'public' ? isAdmin : !isViewer;
- const createBlockedReason =
- tab === 'public' ? (isAdmin ? '' : reason) : isViewer ? t('creds.viewerHint') : '';
+ const [visibilityFilter, setVisibilityFilter] = useState<VisibilityFilterValue>('all');
+ const credentials = data?.data ?? [];
+ const privateCount = credentials.filter((cred) => cred.visibility === 'private').length;
+
+ // New credentials are private, which any non-viewer member may create.
+ const canCreate = !isViewer;
+ const createBlockedReason = isViewer ? t('creds.viewerHint') : '';
const handleCreate = () => {
if (!canCreate) return;
@@ -119,42 +114,45 @@ const WorkspaceCredsSetting = () => {
return (
<Flexbox gap={16}>
<Flexbox horizontal align={'center'} gap={16} justify={'space-between'}>
- <Tabs
- activeKey={tab}
- items={[
- { icon: <Icon icon={UsersIcon} />, key: 'public', label: t('creds.tabs.workspace') },
- { icon: <Icon icon={Lock} />, key: 'private', label: t('creds.tabs.private') },
- ]}
- onChange={(key) => setTab(key as Visibility)}
- />
- {isAuthenticated &&
- !orgMissing &&
- // Disabled buttons swallow hover events, so the tooltip needs the
- // span wrapper to fire (see the usePermission docstring pattern).
- (createBlockedReason ? (
- <Tooltip title={createBlockedReason}>
- <span>{createButton}</span>
- </Tooltip>
- ) : (
- createButton
- ))}
- </Flexbox>
- <Flexbox gap={12}>
- <Text className={stylex.props(styles.desc).className}>
- {t(tab === 'public' ? 'creds.workspaceSection.desc' : 'creds.privateSection.desc')}
- </Text>
- <Block className={stylex.props(styles.container).className} variant={'outlined'}>
- <MarketSignInGate>
- {orgMissing ? (
- <Flexbox align={'center'} justify={'center'} style={{ padding: 48 }}>
- <Empty description={t('creds.orgSetupRequired')} />
- </Flexbox>
- ) : (
- <WorkspaceCredsList credsApi={credsApi} key={tab} visibility={tab} />
+ <Text className={stylex.props(styles.desc).className}>{t('creds.listDesc')}</Text>
+ {isAuthenticated && !orgMissing && (
+ <Flexbox horizontal align={'center'} gap={8} style={{ flex: 'none' }}>
+ {credentials.length > 0 && (
+ <VisibilityFilter
+ value={visibilityFilter}
+ counts={{
+ all: credentials.length,
+ private: privateCount,
+ workspace: credentials.length - privateCount,
+ }}
+ onChange={setVisibilityFilter}
+ />
)}
- </MarketSignInGate>
- </Block>
+ {
+ // Disabled buttons swallow hover events, so the tooltip needs the
+ // span wrapper to fire (see the usePermission docstring pattern).
+ createBlockedReason ? (
+ <Tooltip title={createBlockedReason}>
+ <span>{createButton}</span>
+ </Tooltip>
+ ) : (
+ createButton
+ )
+ }
+ </Flexbox>
+ )}
</Flexbox>
+ <Block className={stylex.props(styles.container).className} variant={'outlined'}>
+ <MarketSignInGate>
+ {orgMissing ? (
+ <Flexbox align={'center'} justify={'center'} style={{ padding: 48 }}>
+ <Empty description={t('creds.orgSetupRequired')} />
+ </Flexbox>
+ ) : (
+ <WorkspaceCredsList credsApi={credsApi} visibilityFilter={visibilityFilter} />
+ )}
+ </MarketSignInGate>
+ </Block>
</Flexbox>
);
};
diff --git a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
index 3b8531b0522..fa124dc8a27 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
@@ -1,90 +1,44 @@
'use client';
-import type { DeviceVisibility } from '@lobechat/types';
-import { Icon, Tabs } from '@lobehub/ui';
-import { LockIcon, UsersIcon } from 'lucide-react';
import { memo, useState } from 'react';
-import { useTranslation } from 'react-i18next';
-import { useParams, useSearchParams } from 'react-router';
+import { useParams } from 'react-router';
import { DeviceConnectModal, DeviceDetailPage, DeviceManager } from '@/features/DeviceManager';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
/**
- * Workspace device settings: two pools behind tabs —
- * - Workspace: the shared (public-visibility) pool every member sees.
- * - Private: the caller's own private enrollments in this workspace.
- * The tab also parameterises the connect wizard, so a device enrolled from the
- * Private tab registers as private (`lh connect … --private`).
- * The tab lives in `?visibility=` so leaving a device's detail page
- * (`devices/:sub`) lands back on the tab that device belongs to.
+ * Workspace device settings: one list of the shared pool every member sees
+ * and the caller's own private enrollments, the private ones marked with a
+ * lock. A device enrolled from here registers as private
+ * (`lh connect … --workspace <id>` without `--public`); its card menu
+ * publishes it to the workspace.
*/
const WorkspaceDevicesSetting = memo(() => {
- const { t } = useTranslation('setting');
const [open, setOpen] = useState(false);
const { sub: deviceId } = useParams<{ sub?: string }>();
- const [searchParams, setSearchParams] = useSearchParams();
- const visibility: DeviceVisibility =
- searchParams.get('visibility') === 'private' ? 'private' : 'public';
const navigate = useWorkspaceAwareNavigate();
- const setVisibility = (next: DeviceVisibility) =>
- setSearchParams(next === 'private' ? { visibility: next } : {}, { replace: true });
-
if (deviceId)
return (
<DeviceDetailPage
deviceId={deviceId}
scope={'workspace'}
- onBack={(device) =>
- navigate(
- (device?.visibility ?? visibility) === 'private'
- ? '/settings/devices?visibility=private'
- : '/settings/devices',
- )
- }
+ onBack={() => navigate('/settings/devices')}
/>
);
return (
<>
- {/* DeviceManager owns the refresh + connect toolbar; the tabs fill its
- leading slot (same header pattern as the workspace credential page). */}
<DeviceManager
scope={'workspace'}
- visibility={visibility}
- toolbarLeading={
- <Tabs
- activeKey={visibility}
- items={[
- {
- icon: <Icon icon={UsersIcon} />,
- key: 'public',
- label: t('devices.visibilityTabs.workspace'),
- },
- {
- icon: <Icon icon={LockIcon} />,
- key: 'private',
- label: t('devices.visibilityTabs.private'),
- },
- ]}
- onChange={(key) => setVisibility(key as DeviceVisibility)}
- />
- }
onConnect={() => setOpen(true)}
- onOpenDevice={(id) =>
- navigate(
- `/settings/devices/${encodeURIComponent(id)}${
- visibility === 'private' ? '?visibility=private' : ''
- }`,
- )
- }
+ onOpenDevice={(id) => navigate(`/settings/devices/${encodeURIComponent(id)}`)}
/>
<DeviceConnectModal
open={open}
scope={'workspace'}
- visibility={visibility}
+ visibility={'private'}
onClose={() => setOpen(false)}
/>
</>
diff --git a/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
index 776c5b64ffe..ac0d81e2ef1 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
@@ -1,11 +1,9 @@
'use client';
-import type { EnvironmentVisibility } from '@lobechat/types';
-import { Flexbox, Icon, Tabs } from '@lobehub/ui';
-import { LockIcon, UsersIcon } from 'lucide-react';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
-import { useParams, useSearchParams } from 'react-router';
+import { useParams } from 'react-router';
import { MAX_WIDTH } from '@/const/layoutTokens';
import EnvironmentManager from '@/features/EnvironmentManager';
@@ -13,33 +11,18 @@ import EnvironmentDetailPage from '@/features/EnvironmentManager/EnvironmentDeta
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
/**
- * The workspace's environments, in two pools behind tabs — the same split the
- * workspace device page draws, for the same reason.
+ * The workspace's environments in one list: what members have published, and
+ * the caller's own private ones, marked with a lock. Running in a published
+ * one means running in its instances, which carry whatever a session left in
+ * them.
*
- * - Workspace: what members have published. Running in one means running in its
- * instances, which carry whatever a session left in them.
- * - Private: the caller's own, which is where every environment starts.
- *
- * The tab also decides where a new environment lands, so creating one from the
- * Private tab cannot quietly publish it.
- *
- * The tabs are handed to the manager rather than rendered above it: they belong
- * on the same row as the actions, and the manager owns that row.
- *
- * The pool lives in `?visibility=` and one environment's page is
- * `environments/:sub`, so going back from it lands on the tab it is in.
+ * A new environment starts private, so creating one cannot quietly publish
+ * it; its row menu publishes it.
*/
const WorkspaceEnvironmentsSetting = memo(() => {
const { t } = useTranslation('setting');
const { sub: environmentId } = useParams<{ sub?: string }>();
- const [searchParams, setSearchParams] = useSearchParams();
- const visibility: EnvironmentVisibility =
- searchParams.get('visibility') === 'private' ? 'private' : 'public';
const navigate = useWorkspaceAwareNavigate();
- const query = visibility === 'private' ? '?visibility=private' : '';
-
- const setVisibility = (next: EnvironmentVisibility) =>
- setSearchParams(next === 'private' ? { visibility: next } : {}, { replace: true });
if (environmentId)
return (
@@ -47,42 +30,21 @@ const WorkspaceEnvironmentsSetting = memo(() => {
<EnvironmentDetailPage
environmentId={environmentId}
key={environmentId}
- visibility={visibility}
- onBack={() => navigate(`/settings/environments${query}`)}
+ onBack={() => navigate('/settings/environments')}
/>
</Flexbox>
);
return (
<Flexbox style={{ maxWidth: MAX_WIDTH, width: '100%' }}>
- {/* Keyed on the pool so a refresh in flight does not survive a tab switch. */}
<EnvironmentManager
- key={visibility}
- visibility={visibility}
- tabs={
- <Tabs
- activeKey={visibility}
- // Tabs fill their container by default, which pushed the actions
- // onto a second row; size to the tabs so both share one.
- style={{ width: 'auto' }}
- items={[
- {
- icon: <Icon icon={UsersIcon} />,
- key: 'public',
- label: t('environments.visibility.tabs.workspace'),
- },
- {
- icon: <Icon icon={LockIcon} />,
- key: 'private',
- label: t('environments.visibility.tabs.private'),
- },
- ]}
- onChange={(key) => setVisibility(key as EnvironmentVisibility)}
- />
- }
- onOpenEnvironment={(id) =>
- navigate(`/settings/environments/${encodeURIComponent(id)}${query}`)
+ createVisibility={'private'}
+ headerLeading={
+ <Text fontSize={13} style={{ flex: 1, minWidth: 0 }} type={'secondary'}>
+ {t('environments.workspaceListDesc')}
+ </Text>
}
+ onOpenEnvironment={(id) => navigate(`/settings/environments/${encodeURIComponent(id)}`)}
/>
</Flexbox>
);