Skip to content

feat(qq): QZone 发布并入 QQ 渠道页 + 配置去噪 + 参考图描述互通 + 吉祥物去嘴#160

Merged
sweetcornna merged 2 commits into
mainfrom
feat/qq-qzone-merge-refdesc
Jul 19, 2026
Merged

feat(qq): QZone 发布并入 QQ 渠道页 + 配置去噪 + 参考图描述互通 + 吉祥物去嘴#160
sweetcornna merged 2 commits into
mainfrom
feat/qq-qzone-merge-refdesc

Conversation

@sweetcornna

Copy link
Copy Markdown
Owner

概要

四件事,一次 QQ 面收敛:

1. QZone 发布模块并入 QQ 渠道页

  • /scheduler/qzone 整页抽成 <QzonePanel>ui/components/scheduler/qzone-panel.tsx),挂载在 /channels/qq 的 ChannelConfigEditor 之后 —— QZone 发布借用的就是 NapCat 登录态,归属渠道页更符合心智模型。
  • 旧路由保留为 redirect(书签/深链不断);侧栏导航项移除,QZone 关键词并入 QQ 项供 cmdk 搜索。

2. QQ 渠道配置表单去噪

  • access_token(OneBot WS 鉴权)与 napcat_access_token(NapCat WebUI 鉴权)都是活字段但不同端口,不能删 —— 收进 Advanced,并给出人话标签("OneBot WS 令牌"/"NapCat WebUI 令牌")+ 说明(内置 NapCat 无需填写)。ws_url/napcat_url 同步补说明。
  • 顺手修掉一个真 buggroup_whitelist/proactive_groups/两个开关/六个数字字段保存后从不回显(_non_secret_config_keys 不吐),表单永远渲染空值盖住已存配置。现在全部 echo 进 config_keys,编辑器可正确 pre-seed。

3. 参考图 description 全局/任务级互通

  • persona_assetsdescription 列(含 ALTER TABLE 显式迁移,老库安全);上传表单字段 + PATCH assets/{aid} 支持改 label 和/或 description(空 body 400)。
  • persona 页参考图逐图描述编辑器;QZone 任务页 picker 展示描述(tooltip + 摘要行)。任务级按 label 引用全局资产,persona 页编辑描述后任务链路自动生效 —— 单一数据源,天然互通。
  • 描述注入生成链路两处:image_with_refs 图例(Reference image N = label (desc))+ qzone builtin 系统提示词块(label(描述),best-effort、never-raise)。上限 500 字符,服务端裁剪。

4. 吉祥物去嘴

  • docs/assets/eclipse-pearl.svg:移除嘴部 path + smile 动画,眼睛下移 4px 回视觉中心。

测试

  • UI: tsc --noEmit 清洁;vitest 全量 161 files / 1256 passed(含迁移后的 qzone-panel.test)
  • 后端: 新增 12 个测试(asset store 描述/迁移、PATCH 路由、qzone 描述块、config_keys 回显);routes_admin_a + routes_admin_b + scheduler + image_with_refs 共 842 passed
  • ruff check + mypy 清洁(touched files)

- QZone 发布/自动回评论面板从 /scheduler/qzone 整体迁入 /channels/qq
  (QzonePanel 组件化;旧路由重定向保留书签;导航项移除并入 QQ 关键词)
- QQ 渠道配置: access_token/napcat_access_token 收进 Advanced 并给出
  人话标签+说明(内置 NapCat 无需填写);白名单/开关/数字字段现在会
  回显进 config_keys, 表单不再永远渲染空值
- 参考图 description 全链路: persona_assets 加列(含 ALTER 迁移) →
  上传/PATCH 路由 → AssetOut → persona 页逐图描述编辑器 → qzone
  任务页 picker 展示 → image_with_refs 图例与 qzone builtin 系统
  提示词块注入; 任务级按 label 引用全局资产, 描述天然互通
- 吉祥物 eclipse-pearl.svg 去嘴, 眼睛微调回视觉中心
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added codex:needs-review A Codex review is needed for the current PR head. codex:review-requested A Codex review was requested or should be running automatically. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. codex:reviewed Codex posted a review result or thumbs-up after the latest request. status: 👀 ready for maintainer look No automation blocker is known; a maintainer should inspect the current result. and removed codex:review-requested A Codex review was requested or should be running automatically. codex:needs-review A Codex review is needed for the current PR head. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. labels Jul 19, 2026
@github-actions github-actions Bot added codex:needs-rerun A new push or stale result means @codex review should be requested again. codex:review-requested A Codex review was requested or should be running automatically. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. and removed codex:reviewed Codex posted a review result or thumbs-up after the latest request. status: 👀 ready for maintainer look No automation blocker is known; a maintainer should inspect the current result. labels Jul 19, 2026
@sweetcornna
sweetcornna merged commit ec7eb40 into main Jul 19, 2026
10 checks passed
@sweetcornna
sweetcornna deleted the feat/qq-qzone-merge-refdesc branch July 19, 2026 07:42
@github-actions github-actions Bot added status: ✅ merge-ready Evidence and review are clear; normal merge gates may proceed. and removed codex:review-requested A Codex review was requested or should be running automatically. codex:needs-rerun A new push or stale result means @codex review should be requested again. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. labels Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ✅ merge-ready Evidence and review are clear; normal merge gates may proceed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant