🤯 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
🐛 fix(topic): render byStatus group mode in agent topic sidebar (#16686)
Arvin Xuf7ae61683928
diff --git a/src/features/NavPanel/components/NavItem.tsx b/src/features/NavPanel/components/NavItem.tsxindex 7c265c6cfcb..27c08d50346 100644--- a/src/features/NavPanel/components/NavItem.tsx+++ b/src/features/NavPanel/components/NavItem.tsx@@ -129,7 +129,15 @@ const NavItem = memo<NavItemProps>({...rest}>{icon && (- <Center flex={'none'} height={28} width={28}>+ <Center+ flex={'none'}+ // With a description the row is two lines tall; align the leading icon+ // to the title's first line (match its line-height) instead of letting+ // it center across both lines, which drops it into the gap.+ height={description ? 22 : 28}+ style={description ? { alignSelf: 'flex-start' } : undefined}+ width={28}+ >{loading ? (<NeuralNetworkLoading size={iconSize} />) : (diff --git a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsxindex 08e7da311ca..ebc37ca98f3 100644--- a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx+++ b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx@@ -262,8 +262,8 @@ const TopicItem = memo<TopicItemProps>(const workingDirectoryNode =showWorkingDirectory && workingDirectory ? (<Flexbox horizontal align={'center'} gap={4} style={{ overflow: 'hidden' }}>- <DirIcon repoType={isDesktop ? undefined : 'github'} size={12} />- <Text ellipsis fontSize={11} style={{ color: cssVar.colorTextDescription }}>+ <DirIcon repoType={isDesktop ? undefined : 'github'} size={13} />+ <Text ellipsis fontSize={12} style={{ color: cssVar.colorTextDescription }}>{getDirName(workingDirectory)}</Text></Flexbox>diff --git a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/index.tsx b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/index.tsxindex b589704d662..3ef63a58f7a 100644--- a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/index.tsx+++ b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/index.tsx@@ -15,6 +15,7 @@ import { topicSelectors } from '@/store/chat/selectors';import AllTopicsDrawer from '../AllTopicsDrawer';import { useAgentTopicGroupMode } from '../hooks/useAgentTopicGroupMode';import ByProjectMode from '../TopicListContent/ByProjectMode';+import ByStatusMode from '../TopicListContent/ByStatusMode';import ByTimeMode from '../TopicListContent/ByTimeMode';import FlatMode from '../TopicListContent/FlatMode';@@ -54,6 +55,8 @@ const TopicList = memo(() => {<FlatMode />) : topicGroupMode === 'byProject' ? (<ByProjectMode />+ ) : topicGroupMode === 'byStatus' ? (+ <ByStatusMode />) : (<ByTimeMode />)}