feat(ext): home 面板版本徽标 + 市场升级通道 - #483
Merged
Merged
Conversation
- GET /api/ext/cgc-2046/version 返回 ext.yml manifest 版本(青狮 /version 同款) - hub 头部 pill 旁版本徽标(v0.1.0),发布后市场用户可见当前版本 - 市场有新版时头部显示「升级 vX.Y.Z」(对齐青狮:仅市场安装层提示, compareVersions 判定,install job 轮询完成后刷新页面) - 副标题移除「端点 ... · Token 已配置」拼接:端点/token 状态属敏感运维 细节,不在 hub 透出(连接状态由 pill 表达) - 测试:harness home_hub 新增 3 断言(徽标渲染/端点不泄漏/无市场静默), handler 新增 /version 双用例(含与 ext.yml 一致性防漂移), 静态锚防状态信息复活
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.
改动
青狮工作台同款版本显示与升级链路,移植到 CGC-2046 hub 面板:
GET /api/ext/cgc-2046/version(返回 ext.yml manifest 版本,青狮/version同款通道),hub 头部状态 pill 旁渲染v0.1.0徽标——发布后市场用户与我们都可见当前安装版本。/api/store/extension?id=cgc-2046,市场版 > 本地版时头部显示「升级 vX.Y.Z」按钮;点击走POST /api/store/extension/install+ job 轮询,完成后自动刷新页面。仅市场安装层(removable===true)提示升级,local 开发层静默。验证
home_hub新增 3 断言并全绿(23 项):版本徽标渲染 v0.1.0、端点/Token 不再出现在副标题、无市场数据时升级按钮静默;home_unconnected/home_tasks_failed回归通过