Improve WeChat MP replies and ship MindSpace/H5 production updates.

Add WeChat service account routing with sync acks, connectivity tests, and context isolation; document deploy runbooks; and bundle related MindSpace, voice, Plaza, and server gateway changes for production rollout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-19 23:06:43 +08:00
parent b0f5d6a51c
commit 229805a070
241 changed files with 13190 additions and 902 deletions
@@ -21,6 +21,7 @@ export function MindSpacePageDraftPreviewFrame({
maxHeight = 12000,
className = 'mindspace-page-preview-frame',
changeHighlight = null,
onFrameReady,
}: {
pageId: string;
title: string;
@@ -33,6 +34,7 @@ export function MindSpacePageDraftPreviewFrame({
maxHeight?: number;
className?: string;
changeHighlight?: MindSpacePreviewChangeHighlight | null;
onFrameReady?: (iframe: HTMLIFrameElement | null) => void;
}) {
const iframeRef = useRef<HTMLIFrameElement>(null);
const [srcdoc, setSrcdoc] = useState('');
@@ -73,6 +75,13 @@ export function MindSpacePageDraftPreviewFrame({
setHeight(minHeight);
}, [srcdoc, reloadKey, minHeight]);
useEffect(() => {
onFrameReady?.(iframeRef.current);
return () => {
onFrameReady?.(null);
};
}, [onFrameReady, srcdoc, reloadKey]);
useEffect(() => {
const iframe = iframeRef.current;
if (!iframe || !srcdoc) return;