Skip to content

🤯 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.

💄 feat: open inbox runs in place & celebrate a fully-accepted checklist (#17367)

Arvin Xu3cb74ea67844
diff --git a/locales/en-US/verify.json b/locales/en-US/verify.json
index 3948c0a70d1..cb5ce04c05d 100644
--- a/locales/en-US/verify.json
+++ b/locales/en-US/verify.json
@@ -29,6 +29,8 @@
"acceptance.bar.rejectComment": "Reject with comment",
"acceptance.bar.rerun": "Send back & rerun",
"acceptance.bar.rerunSent": "Sent to the origin conversation — the repair round is starting.",
+ "acceptance.checks.allAccepted.desc": "Nice work — every acceptance check has been signed off.",
+ "acceptance.checks.allAccepted.title": "All checks accepted 🎉",
"acceptance.checks.copied": "Copied",
"acceptance.checks.copySeq": "Copy the check label",
"acceptance.checks.empty": "No acceptance checks recorded yet",
diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.json
index ac2e98362d6..6b5a0b10b2d 100644
--- a/locales/zh-CN/verify.json
+++ b/locales/zh-CN/verify.json
@@ -29,6 +29,8 @@
"acceptance.bar.rejectComment": "评论并打回",
"acceptance.bar.rerun": "打回重跑",
"acceptance.bar.rerunSent": "已发送到源会话,修复轮次启动中。",
+ "acceptance.checks.allAccepted.desc": "太棒了,所有验收项都已通过 🎉",
+ "acceptance.checks.allAccepted.title": "已全部验收",
"acceptance.checks.copied": "已复制",
"acceptance.checks.copySeq": "复制检查项序号",
"acceptance.checks.empty": "尚未记录验收检查项",
diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.ts
index 7fcbd830228..35e5939c76c 100644
--- a/packages/locales/src/default/verify.ts
+++ b/packages/locales/src/default/verify.ts
@@ -37,6 +37,8 @@ export default {
'acceptance.bar.rejectComment': 'Reject with comment',
'acceptance.bar.rerun': 'Send back & rerun',
'acceptance.bar.rerunSent': 'Sent to the origin conversation — the repair round is starting.',
+ 'acceptance.checks.allAccepted.desc': 'Nice work — every acceptance check has been signed off.',
+ 'acceptance.checks.allAccepted.title': 'All checks accepted 🎉',
'acceptance.checks.copied': 'Copied',
'acceptance.checks.copySeq': 'Copy the check label',
'acceptance.checks.empty': 'No acceptance checks recorded yet',
diff --git a/src/features/HomeInbox/UnreadTopicList.tsx b/src/features/HomeInbox/UnreadTopicList.tsx
index e7735a609b3..892fed36fcb 100644
--- a/src/features/HomeInbox/UnreadTopicList.tsx
+++ b/src/features/HomeInbox/UnreadTopicList.tsx
@@ -1,3 +1,4 @@
+import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import { type ConversationContext } from '@lobechat/types';
import { Avatar, Flexbox, Icon, Markdown, stopPropagation, Text } from '@lobehub/ui';
import { Button } from '@lobehub/ui/base-ui';
@@ -9,9 +10,9 @@ import { useTranslation } from 'react-i18next';
import UnreadDot from '@/components/UnreadDot';
import RunReplyEditor from '@/features/AgentTasks/AgentTaskDetail/RunReplyEditor';
import { useAgentDisplayMeta } from '@/features/AgentTasks/shared/useAgentDisplayMeta';
+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import Time from '@/routes/(main)/home/features/components/Time';
import { useChatStore } from '@/store/chat';
-import { useTaskStore } from '@/store/task';
import AuthorChip from './AuthorChip';
import { type InboxTopic } from './useHomeInboxTopics';
@@ -67,12 +68,12 @@ interface UnreadTopicItemProps {
* reply drops in inline (up to the server's ~2000-char preview, tail elided with
* `…`) — no second "show more" step, because the click that opened the row
* already said "I want to read this". The full thread lives one click deeper, in
- * the chat drawer.
+ * the topic itself.
*/
const UnreadTopicItem = memo<UnreadTopicItemProps>(({ topic, onFollowUpSent, showAuthor }) => {
const { t } = useTranslation('home');
const agent = useAgentDisplayMeta(topic.agentId);
- const openTopicDrawer = useTaskStore((s) => s.openTopicDrawer);
+ const navigate = useWorkspaceAwareNavigate();
const updateTopicStatus = useChatStore((s) => s.updateTopicStatus);
const sendMessage = useChatStore((s) => s.sendMessage);
const prefetchMessages = useChatStore((s) => s.prefetchMessages);
@@ -100,12 +101,14 @@ const UnreadTopicItem = memo<UnreadTopicItemProps>(({ topic, onFollowUpSent, sho
});
}, [markRead]);
- // View the full thread in the drawer — the "查看执行轨迹" analog for a run.
+ // Open the run in place — navigate straight into the topic's chat, the same
+ // destination the running-topics rows go to, rather than surfacing it in a
+ // drawer stacked over the home page.
const viewChat = useCallback(() => {
if (!agentId) return;
markRead();
- openTopicDrawer(topic.id, { agentId, title: topic.title ?? undefined });
- }, [agentId, markRead, openTopicDrawer, topic.id, topic.title]);
+ navigate(AGENT_CHAT_TOPIC_URL(agentId, topic.id));
+ }, [agentId, markRead, navigate, topic.id]);
// Reply in place, continuing the topic exactly like the chat drawer does:
// hydrate the topic's messages into the store first so the reply threads onto
diff --git a/src/features/Messenger/IntegrationList.tsx b/src/features/Messenger/IntegrationList.tsx
index 2f0cbb4673c..ac6210598b8 100644
--- a/src/features/Messenger/IntegrationList.tsx
+++ b/src/features/Messenger/IntegrationList.tsx
@@ -11,13 +11,13 @@ import type { SerializedMessengerPlatformDefinition } from '@/server/services/me
import { type MessengerPlatform, PlatformAvatar } from './constants';
const styles = createStaticStyles(({ css, cssVar }) => ({
+ // Match the agent channel list's card weight: an outlined Block on
+ // colorBgContainer with a soft secondary border (the Block variant supplies
+ // both), rounded a step larger so it reads as the same surface as 消息频道.
card: css`
cursor: pointer;
-
padding: 16px;
- border: 1px solid ${cssVar.colorBorder};
- border-radius: ${cssVar.borderRadius};
-
+ border-radius: ${cssVar.borderRadiusLG};
transition: border-color 0.2s ease;
&:hover {
@@ -46,7 +46,12 @@ const IntegrationList = memo<IntegrationListProps>(({ onSelect, platforms }) =>
return (
<div className={styles.grid}>
{platforms.map((platform) => (
- <Block className={styles.card} key={platform.id} onClick={() => onSelect(platform.id)}>
+ <Block
+ className={styles.card}
+ key={platform.id}
+ variant={'outlined'}
+ onClick={() => onSelect(platform.id)}
+ >
<Flexbox horizontal align="center" gap={16}>
<PlatformAvatar platform={platform.id} size={48} />
<Flexbox flex={1} gap={2}>
@@ -58,7 +63,7 @@ const IntegrationList = memo<IntegrationListProps>(({ onSelect, platforms }) =>
</Text>
</Flexbox>
{platform.access?.requiredPlan === 'paid' && (
- <Tag color="gold" size="small">
+ <Tag color="blue" size="small">
{t('messenger.paidBadge')}
</Tag>
)}
diff --git a/src/features/Verify/Acceptance/CheckList.tsx b/src/features/Verify/Acceptance/CheckList.tsx
index 246a8d8fb99..04248d7320c 100644
--- a/src/features/Verify/Acceptance/CheckList.tsx
+++ b/src/features/Verify/Acceptance/CheckList.tsx
@@ -29,6 +29,7 @@ import {
Images,
MessageSquareText,
MessageSquareX,
+ PartyPopper,
Repeat,
XCircle,
} from 'lucide-react';
@@ -169,6 +170,27 @@ const styles = createStaticStyles(({ css }) => ({
background: ${cssVar.colorBgContainer};
`,
+ // The finish-line icon pops in — a small beat of delight the plain empty
+ // state never earned. Plays once, on the transition into the celebration.
+ celebrateIcon: css`
+ @keyframes acceptance-celebrate-pop {
+ 0% {
+ transform: scale(0.6);
+ opacity: 0;
+ }
+
+ 60% {
+ transform: scale(1.15);
+ }
+
+ 100% {
+ transform: scale(1);
+ opacity: 1;
+ }
+ }
+
+ animation: acceptance-celebrate-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
+ `,
groupCard: css`
overflow: hidden;
border: 1px solid ${cssVar.colorBorderSecondary};
@@ -1106,20 +1128,43 @@ const CheckList = memo<CheckListProps>(
.filter((group) => group.rows.length > 0);
// A filter that matches nothing must read as "this bucket is empty", not as
- // a blank bordered card — each filter gets its own reassuring line.
- if (groups.length === 0)
+ // a blank bordered card — each filter gets its own reassuring line. But an
+ // EMPTY pending bucket where every check is signed off isn't "nothing here"
+ // — it's the finish line, so it earns a celebration instead of a flat line.
+ if (groups.length === 0) {
+ const allAccepted = filter === 'pending' && isGroupFullyAccepted(checks);
return (
- <Flexbox align={'center'} className={styles.emptyCard} justify={'center'}>
- <Empty
- icon={CircleDashed}
- description={t(
- filter === 'all'
- ? 'acceptance.checks.empty'
- : `acceptance.checks.emptyFilter.${filter}`,
- )}
- />
+ <Flexbox align={'center'} className={styles.emptyCard} gap={12} justify={'center'}>
+ {allAccepted ? (
+ <>
+ <Icon
+ className={styles.celebrateIcon}
+ color={cssVar.colorSuccess}
+ icon={PartyPopper}
+ size={40}
+ />
+ <Flexbox align={'center'} gap={4}>
+ <Text strong style={{ color: cssVar.colorSuccess, fontSize: 15 }}>
+ {t('acceptance.checks.allAccepted.title')}
+ </Text>
+ <Text fontSize={13} type={'secondary'}>
+ {t('acceptance.checks.allAccepted.desc')}
+ </Text>
+ </Flexbox>
+ </>
+ ) : (
+ <Empty
+ icon={CircleDashed}
+ description={t(
+ filter === 'all'
+ ? 'acceptance.checks.empty'
+ : `acceptance.checks.emptyFilter.${filter}`,
+ )}
+ />
+ )}
</Flexbox>
);
+ }
return (
<Flexbox className={styles.groupCard}>