Skip to content

fix(status): 未安装的组件不再用警告色,卡片说明按需安装 - #87

Merged
Yundi339 merged 1 commit into
mainfrom
fix/component-not-installed-hint
Nov 25, 2026
Merged

Yundi339 merged 1 commit into
mainfrom
fix/component-not-installed-hint

Conversation

@Yundi339

Copy link
Copy Markdown
Member

问题

组件状态页里未安装的组件显示黄色「未安装」芯片加 warning 图标,卡片上没有其他说明,容易被误读成必须安装才能正常使用。

修改

  • missing 状态芯片从黄色 warn 改为中性灰,图标从 warning 改为 download:未安装是状态而不是故障
  • 未安装的组件卡片增加一行说明「这是可选组件,需要它的功能时再安装。」(Sparxie 保留原有的取包提示),英文对应 "An optional component: install it only when you need what it adds."
  • 未安装卡片标题下原来的「未报告版本」行改为留空,避免再叠加一条不合逻辑的信息

测试

  • test/status.test.js 17 项全部通过
  • 全套 2417 项测试与 main 干净基线结果一致:9 项失败为 main 上的既有失败(dash 形状、安装器页面、模态层等无关区域),与本次改动无关

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 界面改进
    • 缺失组件的状态改为中性提示,并使用下载图标。
    • 缺失组件状态不再显示版本行。
    • 为非 Sparxie 缺失组件增加可选组件说明;Sparxie 仍显示原有专属提示。可选组件提示现支持英文和中文。

缺失组件现在使用中性色调和下载图标。状态组件为缺失组件显示可选安装提示,并隐藏状态行。Sparxie 缺失提示保持不变。

Changes: 缺失组件状态

层 / 文件 摘要
缺失状态呈现
src/status/texts.js, src/vue/MComponentStatus.vue
新增英文和中文可选组件提示。缺失组件的色调改为 neutral,图标改为 download。所有缺失组件均不显示状态行;非 Sparxie 组件显示通用提示,Sparxie 保留专属提示。

Estimated code review effort: 2 (Simple) | ~6 minutes

Change: Bug fix

Suggested reviewers: skyhua0224

Merge Risk: Minimal · up to bd893

Uninstalled components now show a neutral gray chip and a download icon, plus a short note that installation is optional. The change is small, presentation-only and easy to revert, and no risk remains that should block merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“fix(status): 未安装的组件不再用警告色,卡片说明按需安装”准确描述了主要变更:未安装组件的芯片从警告色改为中性色,并在卡片上增加按需安装说明。标题与 raw_summary 中的 TONE 从 warn 改为 neutral、以及新增 missingHint 的改动一致。
Description check Passed 描述说明了问题(未安装芯片的黄色警告容易被误读为必须安装)、具体修改(芯片改为中性灰、图标改为 download、新增 missingHint 说明、清空未报告版本行)以及测试结果,与 raw_summary 中的文件改动一致。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

小兔捧来下载图标,
缺失状态换上中性色。
中英文提示轻声说:
需要功能时再安装。
Sparxie 的提示依旧在。

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c6f13341-8293-4147-93aa-66d7ff693f45
Commits

Reviewing files that changed from the base of the PR and between 790bff3 and bd8936c.

Files selected for processing: 2

  • src/status/texts.js
  • src/vue/MComponentStatus.vue

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Yundi339
Yundi339 merged commit 830ae35 into main Nov 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant