Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(bots): 保留隐藏任务列表的原有样式

xuzini-xznd70c2c7b84a8
diff --git a/apps/desktop/scripts/fixtures/wechat-companion/ui-page.mjs b/apps/desktop/scripts/fixtures/wechat-companion/ui-page.mjs
index b322c2fd21..119d8fb6a7 100644
--- a/apps/desktop/scripts/fixtures/wechat-companion/ui-page.mjs
+++ b/apps/desktop/scripts/fixtures/wechat-companion/ui-page.mjs
@@ -14,7 +14,9 @@ export default {
},
async check(page, ui) {
if (ui.data.hiddenIm) {
- await page.locator('button').filter({ hasText: '8c9b5c' }).focus();
+ await page.locator('[title="拉拉, 徐紫旎, 姚刘浏"]').waitFor({ state: 'visible' });
+ const row = page.locator('button').filter({ hasText: '8c9b5c' });
+ if (await row.count()) await row.focus();
} else {
await page.locator('#companion-im-wechat-trigger').click();
}
diff --git a/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx b/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx
index d43eb1367b..e023a03d12 100644
--- a/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx
+++ b/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx
@@ -11,7 +11,7 @@
import { HookConnectionsSection } from '@/components/settings/HookConnectionsSection';
import { useCallback, useEffect, useRef, useState, type FormEvent } from 'react';
import * as Dialog from '@radix-ui/react-dialog';
-import { Briefcase, ChevronRight, Gamepad2, MessageSquare, Plus, Send, Zap, type LucideIcon } from 'lucide-react';
+import { Briefcase, Gamepad2, MessageSquare, Plus, Send, Zap, type LucideIcon } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { AttentionDot } from '@/components/sidebar/AttentionDot';
@@ -473,9 +473,8 @@ function ConnectionLanes({ connectionId, botId, botName }: { connectionId: strin
<button
type="button"
onClick={() => navigate(`/bots/${encodeURIComponent(botId)}/history/${encodeURIComponent(lane.sessionId)}`)}
- className="flex min-h-9 min-w-0 flex-1 items-center gap-2 rounded-lg px-2 py-1 text-left outline-none hover:bg-[var(--surface-hover)] focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)]"
+ className="min-w-0 flex-1 text-left focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--focus-ring)]"
>
- <span className="min-w-0 flex-1">
<span className="flex min-w-0 items-center gap-1.5">
<span className="min-w-0 truncate text-12 text-[var(--text-primary)]" title={name}>
{name}
@@ -487,8 +486,6 @@ function ConnectionLanes({ connectionId, botId, botName }: { connectionId: strin
) : null}
</span>
<span className="block text-11 leading-[1.5] text-[var(--text-tertiary)]">{meta.join(' · ')}</span>
- </span>
- <ChevronRight size={14} aria-hidden className="shrink-0 text-[var(--text-tertiary)]" />
</button>
<Button
type="button"