🤯 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: hotfix v2.1.30 (#12321)
Innei53e4228ea7d6
diff --git a/.github/workflows/auto-tag-release.yml b/.github/workflows/auto-tag-release.ymlindex 0338049993e..e21af8bf485 100644--- a/.github/workflows/auto-tag-release.yml+++ b/.github/workflows/auto-tag-release.yml@@ -186,8 +186,8 @@ jobs:echo "✅ Tag v$VERSION created successfully!"- - name: Create GitHub Release (release)- if: env.SHOULD_TAG == 'true' && env.KIND == 'release' && steps.check-tag.outputs.exists == 'false'+ - name: Create GitHub Release+ if: env.SHOULD_TAG == 'true' && steps.check-tag.outputs.exists == 'false'uses: softprops/action-gh-release@v1with:tag_name: v${{ env.VERSION }}@@ -206,26 +206,6 @@ jobs:env:GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}- - name: Create GitHub Release (hotfix)- if: env.SHOULD_TAG == 'true' && env.KIND == 'hotfix' && steps.check-tag.outputs.exists == 'false'- uses: softprops/action-gh-release@v1- with:- tag_name: v${{ env.VERSION }}- name: 🩹 Hotfix v${{ env.VERSION }}- body: |- ## 📦 Hotfix v${{ env.VERSION }}-- This hotfix was automatically published from PR #${{ github.event.pull_request.number }}.-- ### Changes- See PR description: ${{ github.event.pull_request.html_url }}-- ### Commit Message- ${{ github.event.pull_request.body }}- draft: false- env:- GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}-- name: Output resultrun: |if [ "${{ env.SHOULD_TAG }}" == "true" ]; thendiff --git a/.github/workflows/release-desktop-stable.yml b/.github/workflows/release-desktop-stable.ymlindex 9da89790a58..1faab6a15e8 100644--- a/.github/workflows/release-desktop-stable.yml+++ b/.github/workflows/release-desktop-stable.yml@@ -84,6 +84,8 @@ jobs:steps:- name: Check release infoid: check+ env:+ RELEASE_BODY: ${{ github.event.release.body || '' }}run: |# 判断触发方式if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then@@ -100,7 +102,7 @@ jobs:version="${version#v}"echo "is_manual=false" >> $GITHUB_OUTPUTecho "version=${version}" >> $GITHUB_OUTPUT- release_body="${{ github.event.release.body }}"+ release_body="${RELEASE_BODY:-}"{echo "release_notes<<EOF"printf '%s\n' "$release_body"diff --git a/eslint-suppressions.json b/eslint-suppressions.jsonindex 27ea9663556..7024897abba 100644--- a/eslint-suppressions.json+++ b/eslint-suppressions.json@@ -183,11 +183,6 @@"count": 1}},- "src/features/NavPanel/SideBarHeaderLayout.tsx": {- "@eslint-react/dom/no-flush-sync": {- "count": 1- }- },"src/features/PluginsUI/Render/utils/iframeOnReady.test.ts": {"unicorn/no-invalid-remove-event-listener": {"count": 1@@ -779,4 +774,4 @@"count": 1}}-}+}\ No newline at end of filediff --git a/package.json b/package.jsonindex 82c41e00ebd..26e044decff 100644--- a/package.json+++ b/package.json@@ -126,23 +126,30 @@],"*.mdx": ["remark -r ./.remarkrc.mdx.mjs --silent --output --",- "eslint --quiet --fix"+ "eslint --quiet --fix --prune-suppressions",+ "git add eslint-suppressions.json"],"*.json": ["prettier --write --no-error-on-unmatched-pattern"],"*.{mjs,cjs}": [- "prettier --write",- "eslint --fix"+ "eslint --fix --prune-suppressions",+ "git add eslint-suppressions.json",+ "prettier --write"],"*.{js,jsx}": [- "prettier --write",+ "eslint --fix --prune-suppressions",+ "git add eslint-suppressions.json","stylelint --fix",- "eslint --fix"+ "prettier --write"],"*.{ts,tsx}": [- "prettier --parser=typescript --write","stylelint --fix",+ "eslint --fix --prune-suppressions",+ "git add eslint-suppressions.json",+ "prettier --parser=typescript --write"+ ],+ "*.{yml,yaml}": ["eslint --fix"]},@@ -221,7 +228,7 @@"@lobehub/icons": "^4.1.0","@lobehub/market-sdk": "0.29.2","@lobehub/tts": "^4.0.2",- "@lobehub/ui": "^4.36.3",+ "@lobehub/ui": "^4.38.1","@modelcontextprotocol/sdk": "^1.25.3","@napi-rs/canvas": "^0.1.88","@neondatabase/serverless": "^1.0.2",diff --git a/src/features/NavPanel/SideBarHeaderLayout.tsx b/src/features/NavPanel/SideBarHeaderLayout.tsxindex ab3921c8a8e..889ed4a29b3 100644--- a/src/features/NavPanel/SideBarHeaderLayout.tsx+++ b/src/features/NavPanel/SideBarHeaderLayout.tsx@@ -107,6 +107,7 @@ const SideBarHeaderLayout = memo<SideBarHeaderLayoutProps>(if (href) {event.preventDefault();event.stopPropagation();+ // eslint-disable-next-line @eslint-react/dom/no-flush-syncflushSync(() => navigate(href));}},diff --git a/src/features/User/UserPanel/PanelContent.tsx b/src/features/User/UserPanel/PanelContent.tsxindex e3f83403e88..5b5bf79d3ac 100644--- a/src/features/User/UserPanel/PanelContent.tsx+++ b/src/features/User/UserPanel/PanelContent.tsx@@ -1,6 +1,6 @@import { ENABLE_BUSINESS_FEATURES } from '@lobechat/business-const';import { Flexbox } from '@lobehub/ui';-import { memo } from 'react';+import { type FC } from 'react';import { Link } from 'react-router-dom';import { navigateToDesktopOnboarding } from '@/app/[variants]/(desktop)/desktop-onboarding/navigation';@@ -19,7 +19,7 @@ import UserLoginOrSignup from '../UserLoginOrSignup';import LangButton from './LangButton';import { useMenu } from './useMenu';-const PanelContent = memo<{ closePopover: () => void }>(({ closePopover }) => {+const PanelContent: FC<{ closePopover: () => void }> = ({ closePopover }) => {const isLoginWithAuth = useUserStore(authSelectors.isLoginWithAuth);const [openSignIn, signOut] = useUserStore((s) => [s.openLogin, s.logout]);const { mainItems, logoutItems } = useMenu();@@ -72,6 +72,6 @@ const PanelContent = memo<{ closePopover: () => void }>(({ closePopover }) => {</Flexbox></Flexbox>);-});+};export default PanelContent;diff --git a/src/features/User/UserPanel/PanelContentSkeleton.tsx b/src/features/User/UserPanel/PanelContentSkeleton.tsxnew file mode 100644index 00000000000..875a384b7aa--- /dev/null+++ b/src/features/User/UserPanel/PanelContentSkeleton.tsx@@ -0,0 +1,127 @@+'use client';++import { Flexbox, Skeleton } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { memo } from 'react';++const PanelContentSkeleton = memo(() => {+ return (+ <Flexbox gap={2} style={{ minWidth: 300 }}>+ {/* UserInfo + DataStatistics area */}+ <Flexbox gap={8} style={{ padding: '12px 16px' }}>+ <Flexbox horizontal align="center" gap={12}>+ <Skeleton.Button+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 40,+ minWidth: 40,+ width: 40,+ }}+ />+ <Flexbox flex={1} gap={4}>+ <Skeleton.Button+ active+ block+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 16,+ maxWidth: 120,+ opacity: 0.6,+ }}+ />+ <Skeleton.Button+ active+ block+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 12,+ maxWidth: 80,+ opacity: 0.4,+ }}+ />+ </Flexbox>+ </Flexbox>+ <Flexbox horizontal gap={4}>+ {[1, 2, 3].map((i) => (+ <Skeleton.Button+ active+ key={i}+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ flex: 1,+ height: 36,+ opacity: 0.5,+ }}+ />+ ))}+ </Flexbox>+ </Flexbox>++ {/* Menu items */}+ {[1, 2].map((row) => (+ <Flexbox gap={2} key={row} style={{ padding: '0 8px' }}>+ {[1, 2].map((i) => (+ <Flexbox horizontal align="center" gap={8} key={i} style={{ height: 36 }}>+ <Skeleton.Button+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 20,+ minWidth: 20,+ width: 20,+ }}+ />+ <Skeleton.Button+ active+ block+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 14,+ opacity: 0.5,+ }}+ />+ </Flexbox>+ ))}+ </Flexbox>+ ))}++ {/* Footer: BrandWatermark + LangButton */}+ <Flexbox+ horizontal+ align="center"+ gap={4}+ justify="space-between"+ style={{ padding: '6px 8px 6px 16px' }}+ >+ <Skeleton.Button+ active+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 20,+ width: 80,+ opacity: 0.4,+ }}+ />+ <Skeleton.Button+ size="small"+ style={{+ borderRadius: cssVar.borderRadius,+ height: 28,+ minWidth: 28,+ width: 28,+ }}+ />+ </Flexbox>+ </Flexbox>+ );+});++PanelContentSkeleton.displayName = 'PanelContentSkeleton';++export default PanelContentSkeleton;diff --git a/src/features/User/UserPanel/index.tsx b/src/features/User/UserPanel/index.tsxindex 0fac1c94e00..9c8d6c908d9 100644--- a/src/features/User/UserPanel/index.tsx+++ b/src/features/User/UserPanel/index.tsx@@ -1,6 +1,6 @@'use client';-import { Popover } from 'antd';+import { Popover } from '@lobehub/ui';import { createStaticStyles } from 'antd-style';import { type PropsWithChildren } from 'react';import { memo, Suspense, useState } from 'react';@@ -8,6 +8,7 @@ import { memo, Suspense, useState } from 'react';import { isDesktop } from '@/const/version';import PanelContent from './PanelContent';+import PanelContentSkeleton from './PanelContentSkeleton';import UpgradeBadge from './UpgradeBadge';import { useNewVersion } from './useNewVersion';@@ -16,6 +17,10 @@ const styles = createStaticStyles(({ css }) => {popover: css`inset-block-start: ${isDesktop ? 32 : 8}px !important;inset-inline-start: 8px !important;+ border-radius: 10px;+ `,+ popoverContent: css`+ padding: 0;`,};});@@ -29,16 +34,18 @@ const UserPanel = memo<PropsWithChildren>(({ children }) => {<UpgradeBadge showBadge={hasNewVersion}><Popoverarrow={false}- content={<PanelContent closePopover={() => setOpen(false)} />}open={open}- placement={'topRight'}- trigger={['click']}+ placement="topLeft"+ trigger="click"classNames={{root: styles.popover,+ content: styles.popoverContent,}}- styles={{- container: { borderRadius: 10, padding: 0 },- }}+ content={+ <Suspense fallback={<PanelContentSkeleton />}>+ <PanelContent closePopover={() => setOpen(false)} />+ </Suspense>+ }onOpenChange={setOpen}>{children}