Skip to content

refactor: AiFailPlanCard 样式重构与展开收起交互#3996

Merged
b1rdfree merged 1 commit into
masterfrom
refactor/ai-fail-plan-card
Jul 14, 2026
Merged

refactor: AiFailPlanCard 样式重构与展开收起交互#3996
b1rdfree merged 1 commit into
masterfrom
refactor/ai-fail-plan-card

Conversation

@hubin4826

Copy link
Copy Markdown
Contributor

合并方式:2

@hubin4826 hubin4826 added the need more test 需要更多的测试 label Jul 13, 2026
@hubin4826 hubin4826 force-pushed the refactor/ai-fail-plan-card branch from 35d1018 to da6ecc4 Compare July 13, 2026 08:55
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

PR CI 汇总

状态:全部通过

  • ✅ i18n(zh/en)
  • ✅ ESLint(renderer src/main)
  • ✅ TypeScript(renderer src/main)
  • ✅ ESLint(engine-link-startup)
  • ✅ TypeScript(engine-link-startup)
  • ✅ 图片/视频体积
  • ○ Vitest(main / renderer / engine-link;test 同目录·别名·相对路径)(skipped)
  • ✅ Prettier

由 pull_request test workflow 自动生成

@Vernon818 Vernon818 added ready and removed need more test 需要更多的测试 labels Jul 14, 2026
@b1rdfree b1rdfree requested a review from Copilot July 14, 2026 08:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 对 AI Agent 的 AiFailPlanCard 进行了样式与交互重构:将失败原因内容改为默认收起,通过卡片标题栏的“展开/收起”按钮控制展示,并补齐对应的多语言文案。

Changes:

  • AiFailPlanCard 增加展开/收起状态与标题栏操作按钮(Tooltip + 图标按钮)
  • 简化/调整 AiFailPlanCard 的样式结构,并为内容区增加最大高度限制
  • 更新 aiAgent 的 zh / zh-TW / en 语言包,新增 expand/collapse 文案

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/renderer/src/main/src/pages/ai-agent/components/aiFailPlanCard/AiFailPlanCard.tsx 引入展开/收起交互与标题栏按钮,并在展开时渲染失败内容
app/renderer/src/main/src/pages/ai-agent/components/aiFailPlanCard/AiFailPlanCard.module.scss 调整卡片背景与按钮/内容区样式,新增最大高度限制
app/renderer/src/main/public/locales/zh/aiAgent.json 新增 AiFailPlanCard 的展开/收起文案
app/renderer/src/main/public/locales/zh-TW/aiAgent.json 新增 AiFailPlanCard 的展开/收起文案
app/renderer/src/main/public/locales/en/aiAgent.json 新增 AiFailPlanCard 的展开/收起文案

Comment on lines +24 to +32
<Tooltip title={expand ? t('AiFailPlanCard.collapse') : t('AiFailPlanCard.expand')}>
<YakitButton
size="small"
type="text"
icon={expand ? <OutlineChevronsDownUpIcon /> : <OutlineChevronsUpDownIcon />}
onClick={toggle}
className={styles['expand-btn']}
/>
</Tooltip>
@b1rdfree b1rdfree merged commit 3b21930 into master Jul 14, 2026
11 checks passed
@hubin4826 hubin4826 deleted the refactor/ai-fail-plan-card branch July 16, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants