Repository navigation
feat(ui): 前端改版第一批:配色与暗色模式、统一状态标签、交互基础 - #49
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 浅色模式底色改为浅暖灰,卡片为白色;主按钮浅色接近黑色、暗色接近白色 - 暗色侧栏去掉遗留的蓝色,全部改为中性色 - 新增 warning、info 状态色;成功、失败、阻塞、信息四种状态色在两种模式下都达到 WCAG AA - 执行结果的图表色引用状态色,在卡片上的对比度达到 3:1 - 新增 shadow-card、shadow-popover 阴影令牌;卡片使用细边框和淡阴影 - 打包 @fontsource-variable/inter 和 geist-mono,回退字体按字体度量调整,加载时布局不跳动 - 中文回退到苹方、微软雅黑、思源黑体 - 新增 numeric(等宽数字)、eyebrow(小标签)样式和 page-title、card-title、body、caption 字号层级 - tailwind-merge 登记新的字号和阴影令牌 - 新增 ui 测试项目,用测试检查主题令牌的对比度 Closes #20 Closes #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 新增 StatusBadge:一个组件显示执行结果、测试任务状态、用例状态和优先级,每个标签都显示文字 - 样式按改版表格:通过和生效为绿、失败为红、阻塞为琥珀色、跳过和未测为灰、待评审和草稿为灰色描边、待测试为浅蓝描边、测试中为蓝、已完成和已提交为深灰实心、废弃为灰色加删除线 - 优先级不用颜色:等宽字体的 P0–P3,只有 P0 加粗;脑图的优先级标记使用相同的规则 - 新增 success、destructive、warning、info 四种浅底令牌和 neutral-solid 令牌,浅色和暗色模式的文字对比度都达到 WCAG AA,并用主题测试检查 - 删除 CaseStatusBadge、TestRunStatusBadge 和各处的徽标样式表;用例列表、用例详情、版本历史、选择用例、测试任务列表、执行页、报告和项目概览改用 StatusBadge - 执行页阻塞相关的文字和输入框从写死的 amber 色改为 warning 令牌 - 单元测试覆盖每个状态的文字、样式名和颜色类 Closes #22 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 按钮新增 pending:显示加载图标和 aria-busy,提交完成前不能再次点击,焦点不丢失 - InlineConfirm:删除单条用例时在按钮旁边二次确认,不弹出对话框;焦点先落在「取消」上,Esc 取消且不会关闭所在的抽屉 - TypeToConfirmDialog:删除项目和删除模块时输入名称后才能确认;Enter 提交,名称不一致时在输入框旁边说明原因,Esc 关闭,提交中不能关闭 - UnsavedChangesGuard:项目设置表单有未保存的修改时,站内跳转、切换标签页和关闭页面都会提醒;会话过期和要求改密码的跳转不拦截 - FieldError:字段旁边的错误提示,替换 JiraFieldError 和设置表单里的写法 - 失败提示说明原因:mutation 的 meta.failureAction 让提示写成「删除项目失败:原因」,网络错误改为中文说明 - 项目设置的保存按钮使用加载状态,保存中输入框改为只读,保存成功后立即更新未保存判断 - 组件测试覆盖二次确认、输入名称确认和未保存离开提醒 Closes #23 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jacksonw111
added a commit
that referenced
this pull request
Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
概要
前端视觉改版(#19)的第一批:样式基础和交互基础。路由、字段和操作不变。
内容
StatusBadge显示执行结果、测试任务状态、用例状态和优先级,替换所有页面的旧徽标。pending加载状态,提交完成前不能再次点击。docs/page.jpeg和CONTEXT.md的「用例与测试任务」术语。验证
部署说明
没有数据库迁移,也没有接口修改。
Closes #20
Closes #21
Closes #22
Closes #23
🤖 Generated with Claude Code