preview: pretend homeserver for the dev preview (in-page, off by default) #28
Loading…
Reference in a new issue
No description provided.
Delete branch "void/preview-demo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes the behind-login features usable on the dev preview with no server and no credentials.
src/preview-demo/: a pure in-memory Matrix handler (server.ts, fixtures infixtures.ts) behind a guardedfetch(install.ts). Own-origin requests pass,https://demo.invalidis answered in-page, every other origin is refused (fetch, WebSocket, XHR, beacon).VITE_PREVIEW_DEMO=1and switched on bypreviewDemo: truein config.json (scripts/preview-config.js low --demo, run by the dev workflow). A build without the flag contains none of it (checked by grep).demo(any password); a banner sayspretend server. First visit turns the pose-portraits setting on.org.gamecult.pose; a Mind answers whatever you send.preview-demo/poses, ~200 KB) copied into dist by the workflow; the full art stays unsynced.Public-safe fixtures: only the Minds and a fictional visitor.
🤖 Generated with Claude Code
Provenance note on the pose thumbnails in this PR.
The 24 PNGs under
preview-demo/poses/(about 200 KB in total, 160 px wide, palette-quantised) are downscaled copies of GameCult's own Persona art from/opt/commons/cast-art/poses. That directory carries no provenance or licence note: the image model that made the art and the terms it was made under are not recorded. I committed them so the dev preview can show pose portraits; the full-size art stays unsynced and uncommitted.Meta may veto. If so, strip them: delete
preview-demo/poses/and theAdd the demo pose artstep in.github/workflows/rat-dev-preview.yml. The demo then runs with broken portrait images (everything else is unaffected).A README with the same text is in the follow-up PR onto
dev.🤖 Generated with Claude Code