Replies: 3 comments
|
Oh, this is cool! I didn't realize that EmDash is missing this. And I appreciate that Payload CMS has it (the other option that I am considering for my large stack of WordPress websites). I'll share a link to this thread in the Discord to see if anyone else has ideas for how to implement it. Otherwise - thank you @mvanhorn for taking a stab at it and getting started on Phase 1!! |
|
I think this is something that should 100% be added. The path suggested makes sense to me, as well. |
|
A reproducible EmDash 0.35.0 fixed-template workflow adds another acceptance case for live preview: a page composed from more than one CMS entry. Our Astro page queries a routable
I verified the behavior in the real admin, not only through API inspection: change the published child title, wait for Saved, open the signed parent preview, and both public and preview responses retain the old child title. Discarding the child draft restores the expected clean state. This is distinct from a generic page builder: the Astro components and six allowable template slots are fixed in code. The missing piece is a preview context that can compose draft revisions from related or explicitly registered child entries while continuing to keep them out of unsigned public responses. For the phased proposal here, I suggest including a multi-entry acceptance case and defining how draft visibility is scoped. A signed preview session might resolve draft revisions reachable from the parent reference graph, or allow the site to register the child queries that belong to the preview. Either approach needs to avoid exposing unrelated drafts and must remain no-store. Related page-composition discussion: #337. This evidence comes from Astro 7.2.6 + EmDash 0.35.0 on the Cloudflare adapter with local D1/R2. |
Uh oh!
There was an error while loading. Please reload this page.
When editing content in the admin, there's no way to see changes reflected on the front-end in real-time. You have to save, switch to the browser, and refresh.
Payload CMS and Sanity both offer live preview where admin edits update the front-end instantly. Simeon Griggs noted this gap in his review: "What I'd also like to see is live preview on my front end. Unfortunately, I don't seem to get that either."
Proposed approach
/_emdash/api/preview/eventsthat streams draft content changesWhy SSE over WebSockets
Phased scope
Phase 1 could serve as a proof of concept before investing in the full implementation. The visual editing toolbar already has front-end presence, so there's a natural integration point.
Happy to start with Phase 1 if the approach looks right. Open to different technical directions.
All reactions