🤯 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(agent): regroup the Agent settings sidebar (#23697)
Arvin Xu5013f045aa58
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex 46096e610ae..9cfc0d81201 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -2572,8 +2572,9 @@"tab.environment": "Environment","tab.goalsAndTasks": "Tasks and goals","tab.group.advanced": "Advanced",+ "tab.group.growth": "Growth","tab.group.identity": "Identity",- "tab.group.setup": "Configure",+ "tab.group.setup": "Capabilities","tab.group.shape": "Shape","tab.groupProfile": "Group Profile","tab.instruction": "Instruction",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex c39829ca0be..cfab28de6a2 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -2572,8 +2572,9 @@"tab.environment": "执行环境","tab.goalsAndTasks": "任务与目标","tab.group.advanced": "进阶配置",+ "tab.group.growth": "成长","tab.group.identity": "身份",- "tab.group.setup": "配置",+ "tab.group.setup": "能力","tab.group.shape": "塑造","tab.groupProfile": "群组档案","tab.instruction": "指令",diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.tsindex 44e68e7649c..c514d3475b4 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -2172,9 +2172,10 @@ export default {'tab.groupProfile': 'Group Profile','tab.backToChat': 'Back to chat','tab.group.advanced': 'Advanced',+ 'tab.group.growth': 'Growth','tab.group.identity': 'Identity','tab.group.shape': 'Shape',- 'tab.group.setup': 'Configure',+ 'tab.group.setup': 'Capabilities','tab.context': 'Context','tab.engine': 'Engine','tab.environment': 'Environment',diff --git a/src/features/AgentProfileTabs/tabOptions.test.ts b/src/features/AgentProfileTabs/tabOptions.test.tsindex 411df1348c6..d1c24282606 100644--- a/src/features/AgentProfileTabs/tabOptions.test.ts+++ b/src/features/AgentProfileTabs/tabOptions.test.ts@@ -286,7 +286,7 @@ describe('groupAgentProfileTabOptions', () => {value,});- it('keeps who-it-is on top, then the setup pages, then mail and IM bots under identity', () => {+ it('keeps who-it-is on top, then capabilities, mail and IM bots under identity, then growth', () => {const groups = groupAgentProfileTabOptions(([@@ -311,14 +311,15 @@ describe('groupAgentProfileTabOptions', () => {['shape', ['instruction', 'knowledge']],['setup', ['engine', 'environment', 'tools', 'skills']],['identity', ['mail', 'channel']],- ['general', ['self-evolving', 'statistics', 'share']],+ ['growth', ['self-evolving', 'statistics']],+ ['general', ['share']],]);});it('leaves out a group with nothing to open', () => {const groups = groupAgentProfileTabOptions([option('statistics')]);- expect(groups.map((group) => group.key)).toEqual(['general']);+ expect(groups.map((group) => group.key)).toEqual(['growth']);});});@@ -331,7 +332,7 @@ describe('webhook tab', () => {heterogeneous: false,};- it('lists webhooks after channels for an editor where the feature is on', () => {+ it('lists webhooks after channels, under Advanced, for an editor where the feature is on', () => {const options = buildAgentProfileTabOptions({...base,active: 'profile',@@ -342,9 +343,9 @@ describe('webhook tab', () => {expect(values.indexOf('webhook')).toBe(values.indexOf('channel') + 1);expect(groupAgentProfileTabOptions(options)- .find((group) => group.key === 'identity')+ .find((group) => group.key === 'advanced')?.options.map((option) => option.value),- ).toEqual(['channel', 'webhook']);+ ).toEqual(['webhook']);});it('leaves webhooks out while the feature is off or the member cannot edit', () => {@@ -376,18 +377,19 @@ describe('automations tab', () => {heterogeneous: false,};- it('lists the automations after channels under identity while webhooks are on', () => {+ it('lists the automations under Advanced, leaving identity to mail and IM bots', () => {const options = buildAgentProfileTabOptions({...base,active: 'profile',automationsSupported: true,canConfigure: true,});- expect(- groupAgentProfileTabOptions(options)- .find((group) => group.key === 'identity')- ?.options.map((option) => option.value),- ).toEqual(['channel', 'automations']);+ const groups = groupAgentProfileTabOptions(options);+ const tabsOf = (key: string) =>+ groups.find((group) => group.key === key)?.options.map((option) => option.value);++ expect(tabsOf('identity')).toEqual(['channel']);+ expect(tabsOf('advanced')).toEqual(['automations']);});it('shows the list to a member who cannot edit the agent too', () => {@@ -432,7 +434,7 @@ describe('permission tab', () => {groupAgentProfileTabOptions(options).find((group) => group.key === 'general')?.options.map((option) => option.value),- ).toEqual(['statistics', 'permission', 'share']);+ ).toEqual(['permission', 'share']);});it('leaves the tab out without a workspace or edit access', () => {@@ -487,7 +489,7 @@ describe('opening and graph tabs', () => {'setup','identity','advanced',- 'general',+ 'growth',]);});diff --git a/src/features/AgentProfileTabs/tabOptions.ts b/src/features/AgentProfileTabs/tabOptions.tsindex d95bb959f29..f50f242e756 100644--- a/src/features/AgentProfileTabs/tabOptions.ts+++ b/src/features/AgentProfileTabs/tabOptions.ts@@ -25,7 +25,7 @@ export interface AgentProfileTabOption {}export type AgentProfileTabGroupKey =- 'advanced' | 'general' | 'identity' | 'profile' | 'setup' | 'shape';+ 'advanced' | 'general' | 'growth' | 'identity' | 'profile' | 'setup' | 'shape';export interface AgentProfileTabGroup {key: AgentProfileTabGroupKey;@@ -152,9 +152,10 @@ const AGENT_PROFILE_TAB_GROUPS: { key: AgentProfileTabGroupKey; tabs: AgentProfi{ key: 'profile', tabs: ['profile'] },{ key: 'shape', tabs: ['instruction', 'knowledge', 'opening'] },{ key: 'setup', tabs: ['engine', 'environment', 'tools', 'skills'] },- { key: 'identity', tabs: ['mail', 'channel', 'automations', 'webhook'] },- { key: 'advanced', tabs: ['graph'] },- { key: 'general', tabs: ['self-evolving', 'statistics', 'permission', 'share'] },+ { key: 'identity', tabs: ['mail', 'channel'] },+ { key: 'advanced', tabs: ['automations', 'webhook', 'graph'] },+ { key: 'growth', tabs: ['self-evolving', 'statistics'] },+ { key: 'general', tabs: ['permission', 'share'] },];/** Sidebar sections for the visible tabs; a section with nothing to open is left out. */