fix(page-data): deliver MindSpace workspace URLs for questionnaires #9

Merged
tkmind merged 2 commits from release/0712-portal-prep into main 2026-07-12 06:03:44 +00:00
Owner

Summary

  • Page Data 问卷/后台页发布时优先返回 /MindSpace/<用户ID>/public/... 工作区 URL,不再对 password 模式回退到 /u/用户名/pages/... 发布路由。
  • 新增 Page Data finish guard:自动 bind、校验 HTML/策略,并在微信与 Portal 聊天交付时把误发的发布路由链接改写为 MindSpace URL。
  • 已在 103 生产验证发布(20260712-135528-b86ce98),智趣问卷 MindSpace 链接可正常访问。

Test plan

  • node --test db.test.mjs capabilities.test.mjs llm-providers.test.mjs wechat-mp.test.mjs
  • node --test mindspace-page-data-finish-guard.test.mjs tkmind-proxy.test.mjs
  • npm run verify:mindspace-publish-guards:full
  • 103 发布后 MindSpace 智趣问卷/后台页 → 200
## Summary - Page Data 问卷/后台页发布时优先返回 `/MindSpace/<用户ID>/public/...` 工作区 URL,不再对 `password` 模式回退到 `/u/用户名/pages/...` 发布路由。 - 新增 Page Data finish guard:自动 bind、校验 HTML/策略,并在微信与 Portal 聊天交付时把误发的发布路由链接改写为 MindSpace URL。 - 已在 103 生产验证发布(`20260712-135528-b86ce98`),智趣问卷 MindSpace 链接可正常访问。 ## Test plan - [x] `node --test db.test.mjs capabilities.test.mjs llm-providers.test.mjs wechat-mp.test.mjs` - [x] `node --test mindspace-page-data-finish-guard.test.mjs tkmind-proxy.test.mjs` - [x] `npm run verify:mindspace-publish-guards:full` - [x] 103 发布后 MindSpace 智趣问卷/后台页 → 200
tkmind added 2 commits 2026-07-12 06:02:50 +00:00
Page Data questionnaires were returning publication slugs to users; password-mode
pages always fell back to /u/ routes. Prefer MindSpace paths at publish time and
rewrite mistaken delivery links in WeChat and Portal chat.

Co-authored-by: Cursor <cursoragent@cursor.com>
tkmind merged commit 5704cb11b0 into main 2026-07-12 06:03:44 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tkmind/memind#9