🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(settings): move Credentials into the Runtime group below Environments (#23358)
Rdmclin2d9329c752b8f
diff --git a/src/features/Settings/hooks/useCategory.test.tsx b/src/features/Settings/hooks/useCategory.test.tsxindex 0af69e67803..07b79a02ed1 100644--- a/src/features/Settings/hooks/useCategory.test.tsx+++ b/src/features/Settings/hooks/useCategory.test.tsx@@ -87,13 +87,14 @@ describe('settings useCategory', () => {SettingsTabs.Messenger,SettingsTabs.Integrations,SettingsTabs.Connector,- SettingsTabs.Creds,]);// The sandbox drives moved to Docs → Sandbox Storage; settings keep only the// environment definitions.const keys = groupKeys(SettingsGroupKey.Resource);expect(keys).toContain(SettingsTabs.Environments);+ // Credentials sit right below Environments, the runs that read them.+ expect(keys?.indexOf(SettingsTabs.Creds)).toBe(keys!.indexOf(SettingsTabs.Environments) + 1);expect(keys).not.toContain('drive');});diff --git a/src/features/Settings/hooks/useCategory.tsx b/src/features/Settings/hooks/useCategory.tsxindex 4e2cd77d3da..d867edd89cf 100644--- a/src/features/Settings/hooks/useCategory.tsx+++ b/src/features/Settings/hooks/useCategory.tsx@@ -235,11 +235,6 @@ export const useCategory = () => {key: SettingsTabs.Webhooks,label: t('tab.webhooks'),},- {- icon: KeyRound,- key: SettingsTabs.Creds,- label: t('tab.creds'),- },].filter(Boolean) as CategoryItem[];groups.push({@@ -269,6 +264,13 @@ export const useCategory = () => {key: SettingsTabs.Environments,label: t('tab.environments'),},+ // Secrets the agents' runs read at execution time, next to the+ // environments that consume them.+ {+ icon: KeyRound,+ key: SettingsTabs.Creds,+ label: t('tab.creds'),+ },isDesktop && {icon: EthernetPort,key: SettingsTabs.Proxy,diff --git a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx b/src/features/WorkspaceSetting/hooks/useCategory.test.tsxindex 29270d83c22..1ab2c44f9af 100644--- a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx+++ b/src/features/WorkspaceSetting/hooks/useCategory.test.tsx@@ -111,7 +111,7 @@ describe('workspace settings useCategory', () => {expect(result.current.at(-1)?.key).toBe(WorkspaceSettingsGroupKey.System);});- it('groups devices, subscription accounts and environments under Resources', () => {+ it('groups devices, subscription accounts, environments and credentials under Runtime', () => {const { result } = renderHook(() => useWorkspaceSettingCategory(), { wrapper });const keys = result.current.map((group) => group.key);const resourceGroup = result.current.find(@@ -131,6 +131,7 @@ describe('workspace settings useCategory', () => {WorkspaceSettingsTabs.Devices,WorkspaceSettingsTabs.SubscriptionAccounts,WorkspaceSettingsTabs.Environments,+ WorkspaceSettingsTabs.Creds,]);expect(generalGroup?.items.map((item) => item.key)).not.toContain(WorkspaceSettingsTabs.Devices,@@ -162,6 +163,9 @@ describe('workspace settings useCategory', () => {expect(connectionGroup?.items.map((item) => item.key)).toContain(WorkspaceSettingsTabs.Integrations,);+ expect(connectionGroup?.items.map((item) => item.key)).not.toContain(+ WorkspaceSettingsTabs.Creds,+ );});// Accounts are shared capacity every agent routes onto, so managing them isdiff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsxindex 260662d6f33..e8d1d9e157f 100644--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx@@ -280,11 +280,6 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =key: WorkspaceSettingsTabs.Webhooks,label: t('tab.webhooks'),},- {- icon: KeyRound,- key: WorkspaceSettingsTabs.Creds,- label: t('tab.creds'),- },].filter(Boolean) as WorkspaceSettingCategoryItem[],key: WorkspaceSettingsGroupKey.Connection,title: t('group.connection'),@@ -313,6 +308,13 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =key: WorkspaceSettingsTabs.Environments,label: t('tab.environments'),},+ // Secrets the agents' runs read at execution time, next to the+ // environments that consume them.+ {+ icon: KeyRound,+ key: WorkspaceSettingsTabs.Creds,+ label: t('tab.creds'),+ },].filter(Boolean) as WorkspaceSettingCategoryItem[],key: WorkspaceSettingsGroupKey.Resource,title: t('group.resource'),