π€― 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(sidebar): restore network loader and running-badge color after base-ui Spin migration (#20031)
Innei39e5565dcb9c
diff --git a/.agents/skills/ux/references/feedback.md b/.agents/skills/ux/references/feedback.mdindex 2fa1c92d6fa..bae07b33765 100644--- a/.agents/skills/ux/references/feedback.md+++ b/.agents/skills/ux/references/feedback.md@@ -20,6 +20,7 @@ that matches wins:| Unknown-shape content region (file preview, QR, modal body) | `Spin size="large"` centred || Inline / button / background refresh (revalidate, saving) | `Spin size="small"`, or `Button`'s `loading` prop for the button itself || AI thinking, generating or running a tool | `Spin variant="network"` |+| Sidebar nav loading (section header revalidate, nav item) | `Spin variant="network"` in place of the title suffix or item icon || Waiting for a streamed reply's first token | `BubblesLoading` from `@/components/BubblesLoading` || Long job with a known progress value | `Progress` + persisted elapsed readout (see below) |@@ -28,7 +29,8 @@ Sizes: `small` for 14β20 px contexts (inline, rows, buttons), `middle` for 24body, panel), `large` for 36β48 px (centred region). A pixel number is fine when the loadermust replace an icon of an exact size.-**`variant="network"` means "the AI is working", nothing else.** A settings save or a list+**`variant="network"` means "the AI is working" β plus the sidebar nav loading+indicator above, which keeps the product's signature glyph.** A settings save or a listfetch uses the default variant; using `network` for plain I/O dilutes the one signal thattells the user the agent is busy.diff --git a/package.json b/package.jsonindex 93c39149b55..44cea2ce9af 100644--- a/package.json+++ b/package.json@@ -321,7 +321,7 @@"@lobehub/icons": "^5.18.0","@lobehub/market-sdk": "0.41.0","@lobehub/tts": "^5.1.2",- "@lobehub/ui": "^5.50.0",+ "@lobehub/ui": "^5.50.2","@modelcontextprotocol/sdk": "^1.30.0","@neondatabase/serverless": "^1.1.0","@next/third-parties": "^16.3.0",diff --git a/src/features/AgentSidebar/Topic/index.tsx b/src/features/AgentSidebar/Topic/index.tsxindex 1450f78cd63..ebb99c8a5dc 100644--- a/src/features/AgentSidebar/Topic/index.tsx+++ b/src/features/AgentSidebar/Topic/index.tsx@@ -59,7 +59,7 @@ const Topic = memo<TopicProps>(({ expanded, itemKey }) => {{topicCount}</Text>)}- {isRevalidating && <Spin size="small" />}+ {isRevalidating && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><divdiff --git a/src/features/Home/Recents/index.tsx b/src/features/Home/Recents/index.tsxindex c1360128401..38825651dd1 100644--- a/src/features/Home/Recents/index.tsx+++ b/src/features/Home/Recents/index.tsx@@ -140,7 +140,7 @@ const Recents = memo<RecentsProps>(({ itemKey }) => {<Text ellipsis fontSize={12} type={'secondary'} weight={500}>{t('recents')}</Text>- {syncStatus?.isValidating && query && <Spin size="small" />}+ {syncStatus?.isValidating && query && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><divdiff --git a/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx b/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsxindex ce48a8c8cc5..42a689ee6ab 100644--- a/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx+++ b/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx@@ -122,7 +122,11 @@ const CreateAgentButton = memo<CreateAgentButtonProps>(({ groupId, className, vionClick={handleClick}><Center flex={'none'} height={28} width={28}>- {isMutatingAgent ? <Spin size="small" /> : <Icon icon={PlusIcon} size={'small'} />}+ {isMutatingAgent ? (+ <Spin size="small" variant="network" />+ ) : (+ <Icon icon={PlusIcon} size={'small'} />+ )}</Center><Text style={{ flex: 1 }} type={'secondary'}>{t('addAgent')}diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsxindex 42cc7faad3c..cd8d7a6ed61 100644--- a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx+++ b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx@@ -162,7 +162,7 @@ const AgentItem = memo<AgentItemProps>(({ item, style, className, onNavigate, se<span className={styles.wrapper}>{avatarNode}<span className={styles.runningBadge}>- <Spin size={9} />+ <Spin size={9} style={{ color: 'inherit' }} /></span></span>);diff --git a/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx b/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsxindex 75c4baf0513..e01d217f8f7 100644--- a/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx+++ b/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx@@ -81,7 +81,7 @@ const InboxItem = memo<InboxItemProps>(({ className, style }) => {<span className={styles.wrapper}>{avatarNode}<span className={styles.runningBadge}>- <Spin size={9} />+ <Spin size={9} style={{ color: 'inherit' }} /></span></span>) : (diff --git a/src/features/HomeSidebar/Body/Agent/index.tsx b/src/features/HomeSidebar/Body/Agent/index.tsxindex 4f548b00c32..f95de9ab826 100644--- a/src/features/HomeSidebar/Body/Agent/index.tsx+++ b/src/features/HomeSidebar/Body/Agent/index.tsx@@ -77,7 +77,7 @@ const Agent = memo<AgentProps>(({ itemKey }) => {<Text ellipsis fontSize={12} type={'secondary'} weight={500}>{t(titleKey)}</Text>- {isRevalidating && <Spin size="small" />}+ {isRevalidating && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><Flexboxdiff --git a/src/features/HomeSidebar/Body/Private/index.tsx b/src/features/HomeSidebar/Body/Private/index.tsxindex 3c618b56a62..7b967adc3c1 100644--- a/src/features/HomeSidebar/Body/Private/index.tsx+++ b/src/features/HomeSidebar/Body/Private/index.tsx@@ -105,7 +105,7 @@ const Private = memo<PrivateProps>(({ itemKey }) => {<Text ellipsis fontSize={12} type={'secondary'} weight={500}>{t('navPanel.privateAgents', { defaultValue: 'Private' })}</Text>- {isRevalidating && <Spin size="small" />}+ {isRevalidating && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><Flexboxdiff --git a/src/features/NavPanel/components/NavItem.tsx b/src/features/NavPanel/components/NavItem.tsxindex ba686083303..eafdb6d8357 100644--- a/src/features/NavPanel/components/NavItem.tsx+++ b/src/features/NavPanel/components/NavItem.tsx@@ -196,7 +196,7 @@ const NavItem = memo<NavItemProps>(width={28}>{loading ? (- <Spin size={iconSize} />+ <Spin size={iconSize} variant="network" />) : (<Icon color={iconColor} icon={icon} size={iconSize} />)}diff --git a/src/features/Pages/PageLayout/Body/index.tsx b/src/features/Pages/PageLayout/Body/index.tsxindex 8e8d2346771..90b06d692f1 100644--- a/src/features/Pages/PageLayout/Body/index.tsx+++ b/src/features/Pages/PageLayout/Body/index.tsx@@ -128,7 +128,7 @@ const Body = memo(() => {{section.title}{section.count > 0 && ` ${section.count}`}</Text>- {isValidating && <Spin size="small" />}+ {isValidating && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><Flexboxdiff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsxindex 9134157b37f..70b946ad840 100644--- a/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx@@ -43,7 +43,7 @@ const Topic = memo<TopicProps>(({ itemKey }) => {<Text ellipsis fontSize={12} type={'secondary'} weight={500}>{`${t('title')} ${topicCount > 0 ? topicCount : ''}`}</Text>- {isRevalidating && <Spin size="small" />}+ {isRevalidating && <Spin size="small" variant="network" />}</Flexbox></AccordionTrigger><div