Commit Graph

8 Commits

Author SHA1 Message Date
john 048f25f580 feat(miniapp): add privacy consent and legal pages
Show privacy popup on launch, gate login on legal consent, and link
user agreement and privacy policy pages in the mini program.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-12 12:18:54 +08:00
john 57a60d41d7 fix(miniapp): persist session token for WeChat login
Return sessionToken from login endpoints and store it client-side because
wx.request cannot rely on Set-Cookie. Also fix multi-cookie parsing,
start on login page, and guard chat rendering fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 13:05:44 +08:00
john 3163445a9d fix(miniapp): inline createUuid in config to fix DevTools require
WeChat DevTools failed to resolve utils/uuid.js at runtime; move UUID
generation into config.js which is already loaded by app.js.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 13:02:34 +08:00
john c842119929 fix(miniapp): add missing uuid and message-display utils
Commit the utility modules required by api.js, messages.js, and chat page
so WeChat DevTools can resolve require('./uuid') at runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 13:01:05 +08:00
john fe6d631ba1 fix(miniapp): declare miniprogram root 2026-07-11 09:50:29 +08:00
john b17b2f18cb fix(miniapp): point API client at portal domain 2026-07-11 09:32:33 +08:00
john 0fd34a5644 feat(miniapp): improve session navigation and auth guard 2026-07-11 08:51:30 +08:00
john 9e5a59b7d9 feat(miniapp): scaffold WeChat mini program MVP 2026-07-11 08:46:08 +08:00