refactor: AiFailPlanCard 样式重构与展开收起交互#3996
Merged
Merged
Conversation
35d1018 to
da6ecc4
Compare
Contributor
PR CI 汇总状态:全部通过
由 pull_request test workflow 自动生成 |
Contributor
There was a problem hiding this comment.
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
approved these changes
Jul 14, 2026
EmbraceAn
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
合并方式:2