Skip to content

feat(profile-helper): add profile view page migration + sync upstream 5 commits#3

Open
Boyuan-Zheng wants to merge 4 commits intoTashanGKD:mainfrom
Boyuan-Zheng:boyuan
Open

feat(profile-helper): add profile view page migration + sync upstream 5 commits#3
Boyuan-Zheng wants to merge 4 commits intoTashanGKD:mainfrom
Boyuan-Zheng:boyuan

Conversation

@Boyuan-Zheng
Copy link
Contributor

本次提交内容

1. 同步上游主仓库 5 个提交(已 fast-forward 合并,零冲突)

  • 88ca7b8: feat(topic): OpenClaw Key 认证显示 + 新 API 路由支持
  • e8cd766: feat(docker): healthcheck 参数更新 + 讨论轮次处理优化
  • cc186c3: feat(openclaw): 专用路由 + OpenClaw Key 认证
  • 9cfd4d2: feat(openclaw): Skill 版本管理机制
  • 91122a1: perf(topiclab): 数据库连接池可配置 + 讨论状态缓存

2. 本地新增开发(profile-helper 模块)

前端新增 blocks 组件:ActionsBlock、ChartBlock、ChoiceBlock、RatingBlock、TextInputBlock、CopyableBlock、BlockRenderer

前端新增 components:ScientistCard、ScientistMatchSection、ScientistScatter、及 profile/ 下各 Section 组件

更新:ChatWindow、ProfilePanel、ProfilePage、ScaleTestPage、scales data、scoring utils、profile-helper.css

vite.config.ts:增加 /api/auth 代理规则(指向 localhost:8001,认证服务分离)

新增文档:DEPLOY_ARCH.md、architecture.md、产品全景梳理、产品设计、工程实施计划、执行计划、画像查看页移植方案

兼容性说明

本地改动与上游改动无代码冲突。主要开发集中在 profile-helper 模块,上游主要改动在 OpenClaw 认证体系,两者不重叠。

… config

Migrate profile helper module: new blocks (ActionsBlock, ChartBlock, ChoiceBlock,
RatingBlock, TextInputBlock, CopyableBlock, BlockRenderer), profile components
(ScientistCard, ScientistMatchSection, ScientistScatter, profile sections), types.ts

Update ChatWindow, ProfilePanel, ProfilePage, ScaleTestPage, scales data,
scoring utils, and profile-helper.css

Add vite proxy rule for /api/auth routing to localhost:8001 (auth service)

Add DEPLOY_ARCH.md and full docs suite: product overview, product design,
implementation plan, execution plan, profile page migration plan

Made-with: Cursor
… anon profile recovery

Frontend changes:
- types.ts: add _responded_blocks (string[]) field to ChatMessage for block-level response tracking
- ChatWindow.tsx: handleBlockRespond now accepts blockId param; marks individual blocks as responded instead of entire message; BlockRenderer disabled/responded logic updated to block-level
- profileHelperApi.ts: add getChatHistory() function for GET /chat-history/{session_id}

Backend submodule update (fecf7f0):
- sessions.py: message history disk persistence (save_messages/load_messages)
- sessions.py: anonymous profile recovery by session id prefix
- sessions.py: _migrate_anon_to_user for login-time profile migration
- block_agent.py: single interactive block per turn enforcement
- block_agent.py: check_profile_completeness tool (F1-F7 validation)
- block_agent.py: max_iterations configurable via env var (default 30)
- profile_helper.py: GET /chat-history/{session_id} endpoint
- prompts.py: reinforce one-question-per-turn with code-level notice
- collect-basic-info/SKILL.md: 1 rating per round; incremental write_profile per batch

Docs (new):
- docs/画像构建系统_完整流程分析_v1.md
- docs/画像系统_沙盘推演_逻辑漏洞分析_v1.md
- docs/画像系统_技术修改方案与新架构_v1.md
- docs/画像系统_修改日志_v1.md

Made-with: Cursor
… for CI visibility

Commit fecf7f0 exists on Boyuan-Zheng/Resonnet:boyuan but not yet on TashanGKD/Resonnet.
When maintainer merges backend changes to TashanGKD/Resonnet, revert this to TashanGKD/Resonnet.git

Made-with: Cursor
deploy.yml:
- Replace broad 'location /' snippet with scoped 'location ^~ /VITE_BASE_PATH/'
  so tashan.chat's nginx only intercepts /topic-lab/ traffic, not the whole site
- Read VITE_BASE_PATH from .env (default /topic-lab/) to keep it config-driven
- Add redirect: GET /topic-lab -> 302 /topic-lab/
- Drop separate /api/ snippet (internal container nginx handles all API routing)
- Rename snippet file to topiclab-main.conf

frontend/nginx.conf:
- Fix double-api path bug: /topic-lab/api/api/v1/ -> /topic-lab/api/v1/

frontend/nginx.conf.template:
- Fix double-api path bug: __BASE_PATH__api/api/v1/ -> __BASE_PATH__api/v1/
- Add missing /topics and /topics/ API routes (align with nginx.conf)

Made-with: Cursor
@FZR95 FZR95 force-pushed the main branch 2 times, most recently from 68ecd39 to b6969c3 Compare March 20, 2026 12:11
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