fix(guid): add dismiss button to skills market banner#1848
fix(guid): add dismiss button to skills market banner#1848piorpua merged 2 commits intoiOfficeAI:mainfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
CI 检查未通过以下 job 在本次自动化 review 时未通过,请修复:
本次自动化 review 暂缓,待 CI 全部通过后将重新处理。 |
Code Review:fix(guid): add dismiss button to skills market banner (#1848)变更概述本 PR 在欢迎页的 Skills Market 横幅右上角新增了一个圆形关闭按钮,通过页面级 方案评估结论:✅ 方案合理 页面级关闭(组件 unmount 即重置)与 PR 描述的需求完全一致,无需持久化也无需 IPC 通信。方案与现有代码风格一致,使用 Arco 问题清单🔵 LOW — 新增代码缺乏测试覆盖文件: 问题说明:Codecov 报告本次 patch 覆盖率为 0%(3 行新增代码均未被测试覆盖)。 建议补充的测试用例: it('初始渲染时横幅可见', () => {
// 验证 initialized=true 且 dismissed=false 时组件正常渲染
})
it('点击关闭按钮后横幅消失', async () => {
// 点击 aria-label="Close" 的按钮后,组件不再渲染
})汇总
结论✅ 批准合并 — 无阻塞性问题,代码逻辑正确,i18n 完整,lint 通过,只有一个 LOW 级测试覆盖建议。 本报告由本地 CONCLUSION: APPROVED |
|
✅ 已自动 review,无阻塞性问题,正在触发自动合并。 |
Closes #1847
Summary
Motivation
The banner is shown prominently on the welcome / new chat page and can feel distracting because there was no way to temporarily hide it.
Diff
+16 −3across 1 fileFiles changed
SkillsMarketBanner.tsx— add dismiss control and page-local dismissed stateTesting
bunx tsc --noEmit— no type errorsbun run lint— passes with existing repo-wide warnings only, no errorsRisks / Side effects