Blog

EmDash 1.7: editorial comments, a cleaner dashboard, and scheduled cache purges

Leave private review threads on entries in the editor or on the page, get a cleaner dashboard on large sites and phones, keep scheduled Workers Cache purges working with EmDashWorker, and import richer WordPress content.

Reviewing a draft with your team no longer means copying paragraphs into a chat thread. EmDash 1.7 adds editorial comments: private threads you can attach to an entry, a field, a block, or a specific phrase, both in the admin editor and directly on the site in edit mode.

This release also reshapes the admin Dashboard for large sites and phones, ties co-editing and revision colors to each person's avatar, brings the visual editor onto the same rich text converter as the admin, and fixes scheduled Workers Cache purges on Cloudflare. All on top of the usual fixes across WordPress imports, image optimization, plugins and translations.

Highlights include:

To update, run this from the project directory:

npx upgrade-emdash@latest

Or update by hand:

pnpm up --latest emdash
# or if you are using Cloudflare
pnpm up --latest emdash @emdash-cms/cloudflare

Database migrations: this release adds one, 099_editorial_comments. It creates the _emdash_editorial_threads and _emdash_editorial_comments tables and their indexes for editorial comments (#4686). It runs automatically on SQLite, D1 and PostgreSQL with the default auto migration mode and needs no manual action.

Optional action on Cloudflare: if you deploy to Cloudflare Workers and use route caching, switch src/worker.ts to re-export EmDashWorker so scheduled publishes purge cached pages.

Editorial comments

Before 1.7, reviewing a draft meant leaving feedback outside the CMS – in Slack, email, or a separate doc – where notes quickly drifted out of sync with the text they referred to. Even with collaborative editing, reviewers who only wanted to ask a question or suggest a change had no place to discuss an entry without editing it directly.

Team members can now leave private comment threads on an entry while reviewing it, separate from the public comments visitors post (#4686). Threads never appear on the live site and are left out of site transfers.

In the entry editor, select text in any Portable Text field and choose Comment in the formatting toolbar, or press ⌘⌥M (Ctrl+Alt+M), to start a thread beside it. You can also comment on images, embeds, dividers and other non-text blocks from their block menu, or on a whole field from the comment button at the end of its label row. The comments button in the editor bar toggles the margin and shows how many threads are open. Commenting needs no edit access: Contributors who can't edit an entry, and anyone viewing an entry while someone else holds its edit lock, can still select text and comment. Commented text stays highlighted as you edit, and a thread whose text is deleted stays visible as detached with the text it referred to.

Editorial comment thread in the admin editor margin beside highlighted text, showing three replies, gradient avatars, an @mention, and a one-line reply box

Type @ in a comment to mention anyone who can take part in threads. When your site has an email provider configured, new comments email mentioned users and earlier participants in the thread with the entry's title, an excerpt and a direct ?thread=<id> link.

You can also review threads directly on the site in visual editing mode. Elements bound with {...entry.edit} or {...entry.edit.field} — and <PortableText> fields — show open thread counts, and hovering or tabbing to them opens a popover where you can reply, resolve threads, jump to the admin editor, or start a new thread.

Editorial comment popover on the live page in visual editing mode below highlighted text, with avatars, an @mention, Open in admin and Resolve icons, and a reply box

AI agents can take part through five new MCP tools — editorial_thread_list, editorial_mentionable_list, editorial_thread_create, editorial_comment_create and editorial_thread_resolve — and integrations can use the REST endpoints under /_emdash/api/content/{collection}/{id}/threads. Two new permissions govern access: editorial:comment (Contributor and above) and editorial:manage (Editor and above). See Comment on an entry and the MCP server reference.

A cleaner Dashboard on large sites and phones

The admin Dashboard has been reorganized so it stays scannable when a site has many collections, long titles, or is opened on a phone (#5006, thanks @khoinguyenpham04).

Updated admin Dashboard on a 10-collection site with a single Overview card, Recent Activity in the main column, Content in a side column with grouped counts, and a More menu in the header

Counts now sit in one Overview card with language-aware digit grouping. Recent Activity takes the main column (hiding its collection column on single-collection sites), while Content moves to a side column on wide screens. Sites with more than three collections keep two New buttons and tuck the rest into a More menu, empty collections show No entries, and long lists of collections or failed scheduled publishes collapse behind Show more. On phones, failed scheduled publishes stack their reason and Dismiss button instead of pushing them off-screen, and in Arabic, English titles truncate at their end rather than their start. Plugin dashboard widgets declared with size: "third" now sit in the side column on wide screens.

Avatar colors in co-editing and revisions

Co-editing presence and Revisions now color each person from their generated avatar, so teammates without a profile photo look the same in the editor bar, in rich text and in revision history (#4824, thanks @khoinguyenpham04).

Content editor with three co-editors showing gradient avatars in the header, matching gradient field pills, and colored carets and name flags clear of the toolbar

The editor bar now shows profile photos or generated avatars instead of flat initials, name flags use a readable gradient in light and dark mode, and rich text fields gain 4 px above the first line so caret flags stay clear of the toolbar. Generated avatars now draw from 18 palettes instead of 12, so existing generated avatars change color once after upgrading.

Consistent rich text in the visual editor

The visual editor now reads and saves rich text with the admin editor's schema and converter (#5153). Editing on the page keeps span and link _key values and leaves tables, galleries, embeds, videos and plugin blocks intact instead of altering them on save.

Scheduled Workers Cache purges on Cloudflare

Scheduled publishing on Cloudflare Workers now purges Workers Cache entries reliably when your site exports the new EmDashWorker class as its default Worker entrypoint (#5152).

To enable this on an existing Cloudflare site, update src/worker.ts:

export {
  EmDashWorker as default,
  EmDashRoom,
  EmDashRoomSite,
  PluginBridge,
} from "@emdash-cms/cloudflare/worker";

Sites with custom fetch or scheduled handlers should extend EmDashWorker and pass invalidateViaDefaultEntrypoint: true to createScheduledHandler(). The legacy object-style default export continues to work, though scheduled Workers Cache purges require EmDashWorker. emdash doctor now recognizes the class form and prints a migration hint for legacy entrypoints. See Add the Worker entry point.

Automatic image optimization without siteUrl

On sites serving media through EmDash's media route (R2 or local storage without a public bucket URL), <Image> and <Gallery> from emdash/ui previously fell back to full-size originals in production whenever siteUrl, EMDASH_SITE_URL or SITE_URL wasn't set at build time — including in the Cloudflare templates (#4701, thanks @swissky).

On pages rendered on demand, <Image> and <Gallery> now produce resized WebP renditions and responsive srcset attributes automatically, using the Cloudflare Images binding on Cloudflare or sharp on Node.js. If the Images binding returns an error (such as hitting a monthly transformation limit) or sharp isn't installed, the original file is served instead of failing. Prerendered pages still need siteUrl, EMDASH_SITE_URL or SITE_URL at build time.

WordPress imports keep translations, media metadata and term hierarchy

Several fixes make WordPress migrations much more faithful:

  • Polylang translations: WordPress exports of All content from Polylang sites now link translated posts together and keep translated categories, tags and terms in their own language and translation group (#4648, thanks @dmythro).
  • Media alt text and captions: WXR and EmDash Exporter imports now preserve alt text and captions from the WordPress media library (#5053, thanks @danielmlr).
  • Hierarchical terms: Imported categories and other hierarchical terms now keep their parent relationships (#5056, thanks @danielmlr).
  • Navigation menus in the review screen: The WordPress plugin import review screen now lists the source site's navigation menus before you import and reports how many were created vs. skipped (#4306, thanks @iNerdStack).
  • Details block summaries: Nested Gutenberg Details blocks keep their summary text as editable paragraphs instead of dropping it (#5211).

Admin translations

This release adds the Greek (el) admin catalog and calendar localization (ready to appear in the language picker once enabled by a maintainer, #5073, thanks @NickDimitratos), and updates translations across eight more languages:

  • German (de): editorial comments in the editor and visual editing, plus updated field-type naming (#5174, thanks @danielmlr).
  • English (UK) (en-GB): newly extracted editorial, visual editing, transfer, block editor and settings strings (#5171, thanks @theshubh77).
  • Latin American Spanish (es-419): Calendar view, content editor, settings panel and content list, plus corrected mistranslations (#5036, #5108, thanks @SantiagoSM2000).
  • Hindi (hi): co-editing presence, sync status and sidebar customization (#5149, thanks @CacheMeOwside).
  • Indonesian (id): editorial comments, visual editing overlays and WordPress import messages (#5169, #5201, thanks @Zahid09987).
  • Japanese (ja): editorial comments, WordPress import messages, sidebar admin navigation and site transfer strings (#5165, #5202, thanks @Yusaku01).
  • Ukrainian (uk): co-editing, sidebar layout and SMTP settings (#5049, thanks @dmythro).
  • Simplified Chinese (zh-CN): editorial comments, unpublish/bulk confirmations and settings (#5176, thanks @zaochih).

Overloaded English admin labels (Select field type, Admin sidebar heading, and import Authors) also get separate translation contexts (#5035, thanks @danielmlr).

Smaller improvements and fixes

Editor and admin

  • Fixed a memory leak in the rich text editor after removing an empty line following an image, divider or embed with Backspace (#5189, thanks @khoinguyenpham04).
  • Fixed co-editing losing or doubling text when multiple people start typing in the same empty rich text block or edit around a line break (#5179, thanks @khoinguyenpham04).
  • Fixed Cmd/Ctrl+S in the content editor saving pending changes instead of opening the browser's Save Page dialog (#5188).
  • Fixed Preview in single-editor mode waiting for pending edits to finish saving before loading the preview tab (#5156, thanks @danielmlr).
  • Fixed ?field= links from the site losing focus or collapsing the target block when a co-editing room joins (#5042).
  • Fixed the visual editor placing the caret at the start of an image-first body instead of where you clicked (#5001).
  • Fixed the visual editing toolbar and Cloudflare preview toolbar wrapping cleanly on narrow screens (#5143, thanks @Yusaku01).
  • Fixed the slash menu so /section, /video and /iframe match their English names in every admin language (#4924, thanks @danielmlr).
  • Fixed extending a saved link over adjacent text joining adjacent spans cleanly instead of splitting them into separate links (#5060).
  • Fixed gallery blocks overflowing the editor on long captions (#5003), alignment and layout shifts in the blocks UI (#4981, thanks @khoinguyenpham04), plugin block dialogs focusing their first field on open (#5191), and the media picker layout on phones (#4956).
  • Fixed the menu editor's Add Content picker listing only entries in the menu's locale (#5047).
  • Fixed Plugins and registry pages hiding admin-only controls from Editors (#4768, thanks @danielmlr).
  • Fixed admin copy for character limits, plain-text placeholders, RTL empty text inputs, and content type drag-reordering (#4982, thanks @khoinguyenpham04).
  • Fixed plugin proposed-change reviews in the editor showing the full before/after value rather than a truncated 160-character preview (#5105).
  • Fixed plugin README rendering for unclosed inline tags and external links (#5087).
  • Fixed the 404 Errors tab creating literal redirects instead of pattern redirects when a logged path contains brackets, and fixed redirect loop detection for self-matching pattern redirects (#5123).
  • Fixed creating a translation when a collection has a non-translatable reference field (#4850, thanks @Antonio-Bennett).
  • Fixed image fields keeping alt text and metadata when saving legacy URL-only src values (#5069).
  • Updated the OAuth consent and device authorization pages so Approve and Authorize enable after one second of focused visibility (ef0e581).

Sites, caching and hosting

  • Fixed public links, preview links, and admin/API request handling on sites that configure Astro's base path, including percent-encoded bases (#5158, thanks @khoinguyenpham04; 822ac68).
  • Fixed LiveSearch result links honoring each collection's urlPattern, date tokens and locale prefixes (#5161).
  • Fixed decodeSlug() returning undefined for slugs containing a NUL byte so PostgreSQL sites return 404 instead of 500 (#5013, thanks @swissky).
  • Fixed slug lookups without a locale returning the default locale's published entry instead of an arbitrary locale (#5107).
  • Fixed route caches on Node.js purging after scheduled publishes and background plugin actions, including with memoryCache() (#4889).
  • Fixed route-cached /_image and media routes not storing 304 Not Modified responses (52d7880), and updated /_image on Node.js so non-EmDash images go through the adapter's image endpoint (46f8a08).
  • Fixed non-HTML responses (such as feeds and JSON endpoints) not keeping public Cache-Control headers while viewed in edit mode (#5091).
  • Fixed Cloudflare dev servers reloading the worker repeatedly on an editor's first page visit (#5042).
  • Fixed admin content list searches failing on Cloudflare D1 with long or multibyte terms (#5145), and made emdash media repair-usage stop cleanly with CONTENT_USAGE_QUERY_LIMIT before exhausting D1's per-request query allowance on Workers Paid (#5164).
  • Fixed after() delegating to the host's waitUntil on Vercel and Netlify so deferred tasks aren't dropped after responses finish (#5106).
  • Restricted development-only endpoints, console email, Server-Timing on /_emdash/api, and dev fallbacks to astro dev rather than non-production NODE_ENV builds (69a77ad, #5106).
  • Tightened URL scheme validation on image/file fields (#5115), CSS color/size values in Portable Text blocks and <Image> (#5114), isolated HTML block document.baseURI (#5118), and public comment email length and 404 log path length (#5096).

Auth and access

  • Added matchGroupsBy: "id" to the Cloudflare Access adapter so roleMapping can match IdP group IDs instead of display names, and included group IDs in [cf-access] logs (#5109).
  • Fixed Cloudflare Access roleMapping matching organization-qualified GitHub team names ("org/team") (#5027) and lowercasing Access emails (#5104).
  • Fixed first-admin setup races across GitHub, Google, Microsoft, AT Protocol and Cloudflare Access, and fixed setup recovery if account linking fails partway through (#5104). @emdash-cms/auth-atproto now requires emdash 1.7.0 or later.
  • Fixed sign-in always issuing a fresh session ID and clearing the prior session (#5093), and bound OAuth sign-in callbacks to the browser that started them (#5100).
  • Fixed Atmosphere sign-in expiring OAuth states after 10 minutes, cleaning up abandoned states and previously stored provider tokens, and using siteUrl/EMDASH_SITE_URL in /.well-known/atproto-client-metadata.json (#5116).
  • Added delayWhenUnsent to sendMagicLink() and requestSignup() in @emdash-cms/auth, and moved magic-link/signup lookups behind the response (#5106).
  • Updated sites using an external auth provider (such as Cloudflare Access) so the OAuth consent page checks the provider on every request (0f67ed9) and local setup/sign-in endpoints return 400 NOT_SUPPORTED outside astro dev (a14daef).
  • Scoped read-only API responses, author email fields, public comment/reaction endpoints, preview-link token checks, role checks, translation/revision permission lookups, and PUT unpublish checks consistently (#5089, #5090, #5092, #5098, #5103, #5120, 00367c1). Also grouped IPv6 clients by /64 for reactions and rate limits (#5090), restricted D1/DO bookmark cookies to verified callers (#5106), and hardened WordPress connect approval and password-protected post status in wxrSource (#5097).

Plugins

  • Fixed decimal validation for number_input in Block Kit forms and sandboxed field widgets (#5133, thanks @justincavery), rejected unsupported repeater fields inside Block Kit form blocks (#4925), and ensured custom chart tooltips always draw on canvas (7afb693).
  • Fixed plugin routes on Cloudflare recovering cleanly after cancelled storage index checks (#5077), and marked internal PluginBridge helpers as JS private (#) (770d9c8).
  • Fixed updating a disabled plugin keeping it disabled (#5102), ctx.content.restore() returning NOT_FOUND for non-trashed entries (#5101), comment:beforeCreate preserving submission fields (#5119), raw plugin route redirects (c5877be, #5122), registry/marketplace redirect handling (#5094, #5117), and Node.js sandbox temp directory permissions (#5086).
  • AT Protocol plugin (0.2.6): Unpublishing an entry now removes its standard.site document and Bluesky post (#5125).
  • Audit Log plugin (0.2.5): Fixed Audit History failing with INVALID_BLOCK_RESPONSE when sandboxed, plus empty-state and pagination fixes (#4928).
  • Forms plugin (0.2.15): Fixed form edits and submission counts overwriting each other; now requires emdash 0.38.0+ (#5127).

API, CLI and types

  • Fixed emdash types typing blocks fields as the union of their block types instead of unknown[], and avoided duplicate type declarations in emdash-env.d.ts (#4828, thanks @danielmlr).
  • Fixed emdash content get --published returning published values when a draft exists, and added published: true to EmDashClient.get() (#5015, thanks @Yusaku01).
  • Fixed emdash login retrying after Retry-After on 429 responses instead of failing with [object Object] (#5172, thanks @ricardosantisinc), and restricted emdash login / emdash-plugin login browser launches to http:/https: URLs while fixing Windows URL handling (#5088).
  • Fixed emdash seed --validate rejecting unsupported repeater sub-field types (#4888).
  • Updated MCP schema tools to support URL and repeater fields, widget config, field sort order, collection admin settings, schema_reorder_fields, and reference relation validation (#4927).
  • Fixed media replacement and S3 signed upload confirmation edge cases (#5099).

The release updates @emdash-cms/admin@1.7.0, @emdash-cms/auth@1.7.0, @emdash-cms/auth-atproto@0.2.53, @emdash-cms/blocks@1.7.0, @emdash-cms/cloudflare@1.7.0, @emdash-cms/gutenberg-to-portable-text@1.7.0, @emdash-cms/plugin-test@0.2.14, @emdash-cms/registry-cli@0.13.8, @emdash-cms/sandbox-workerd@0.9.9, and the AT Protocol (0.2.6), Audit Log (0.2.5) and Forms (0.2.15) plugins. @emdash-cms/plugin-embeds@0.1.61 has a dependency-only update, and create-emdash@1.7.0 and @emdash-cms/x402@1.7.0 receive matching 1.7.0 tags with no changes.

Thanks to the 15 community contributors who worked on this release alongside the core team.

Read the complete emdash@1.7.0 release, then follow Update EmDash to back up, build, deploy and verify the site.

Keep reading

All posts
  • 3 min read

    How we built collaborative editing in EmDash

    EmDash 1.5 lets several people edit one entry at the same time. Here's how we built it, from the room on the server that saves everyone's edits to the tests that make sure merges don't delete anything.

  • 19 min read

    EmDash 1.5: edit together in real time

    Turn on collaborative editing, keep a new site out of search engines until launch, send email through your own SMTP server, arrange your own admin sidebars, and edit blocks fields that you can scan at a glance.