Skip to content

[upstream #87] 侧栏可见性修正 (37d23dcc8) - #91

Merged
woncc merged 1 commit into
mainfrom
cursor/upstream-issue-87-37d23dcc8-20261101
Nov 1, 2026
Merged

woncc merged 1 commit into
mainfrom
cursor/upstream-issue-87-37d23dcc8-20261101

Conversation

@woncc

@woncc woncc commented Nov 1, 2026

Copy link
Copy Markdown

🔗 关联任务 / Related Issue

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix)

📝 变更描述 / Description

原样 cherry-pick 上游提交,仅修改 web/src/features/profile/components/sidebar-modules-card.tsx。个人侧栏设置等待全局状态加载后显示,过滤管理员关闭的分组与模块,重置仅启用当前可见模块。复用已有解析器、状态 Hook 和 UI 组件。

AI 辅助移植与验证;不涉及 OAuth、SSE、Kling、#81/#82 或网关部署。

📸 运行证明 / Proof of Work

基线 67db8dcb5ac2562821dc1a3e883b33b24bcb1c48,移植提交 1983c873328e9e20f60c817588dbee0c04a9bc6d。

  • cd web && bun run typecheck:退出 0。
  • cd web && ./node_modules/.bin/oxlint -c .oxlintrc.json src/features/profile/components/sidebar-modules-card.tsx:退出 0,无诊断。
  • cd web && bun run test src/hooks/__tests__/sidebar-config.test.tsx:1 文件、13 测试通过。
  • git diff HEAD^ HEAD --check:通过;与上游目标文件比较无差异。
  • 使用本机已有 node_modules;未安装依赖或运行整包构建。依用户单文件范围保留上游补丁,未增加测试文件。现有测试覆盖侧栏配置,未进行卡片浏览器交互/截图验证。
  • 本地证据:/workspace/g4-t638u-r3-0199/writers/R0199W87/g4-R0199W87-upstream-37d23dcc8-01/。

✅ 提交前检查项 / Checklist

  • 人工确认:待独立审阅
  • 非重复提交:查询本仓库 PR 的 37d23dcc8,无已有结果
  • 功能范围:单文件侧栏可见性修复
  • 非透传
  • 范围聚焦
  • 本地验证:命令与结果见上
  • 安全合规:未加入凭据,未改认证流程

待独审及 PR 检查通过后由 t630u 合入,本写手不执行合并或部署。

* fix(profile): honor global sidebar visibility

* fix(profile): wait for sidebar status
@woncc
woncc merged commit c93d075 into main Nov 1, 2026
@woncc
woncc deleted the cursor/upstream-issue-87-37d23dcc8-20261101 branch November 1, 2026 06:50
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.

[上游/现在能解] 37d23dcc8 侧栏可见性修正

2 participants