Skip to content

@emdash-cms/admin@1.6.0

Choose a tag to compare

@emdashbot emdashbot released this 22 Nov 19:44
bbe73ed

Minor Changes

  • #4939 a4c05ad Thanks @khoinguyenpham04! - Adds a breadcrumb trail to the admin header on pages that sit under another page, such as Settings › General, Menus › Main navigation, Content Types › Relations and Media › Product photos. The parent crumb replaces the back buttons and links those pages had, including the media library's Back button and its in-page folder trail. Top-level pages and the content editor show no trail. Leaving a media folder by any route, including the browser's Back button, now keeps the library's scroll position and moves focus to its heading. On phones, View Site and the Staging badge in the header show only their icons.

  • #4626 ac16583 Thanks @khoinguyenpham04! - Adds draft access for trusted content editor panels. A native plugin's panel receives editorDraft beside entry. editorDraft.get() reads the values open in the editor, including unsaved changes: the field values, the slug, and the SEO title and meta description, with their definitions and a revision. editorDraft.patch(operations, { expectedRevision }) sets or clears them in the form without saving the entry. The editor refuses the patch when any of those values changed after the revision was read. A translation or excerpt panel can therefore read the current draft and put its results back for the user to review, without overwriting edits made while it worked. The SEO panel saves patched SEO values the way it saves typed ones, so they take effect at once. editorDraft is undefined on older versions. The React admin extensions guide covers the rules and has an example.

    Draft patches from sandboxed editor panels and actions (admin.editor-draft:patch) change too:

    • A patched rich text field shows the patched document. Before, it kept showing the old document, and the next keystroke there wrote the old document back over the patch.
    • In collections with revisions, the first save that includes a patch keeps the draft revision it replaces, autosaves included, so the values from before the patch can be restored. With collaborative editing on, the room's saves don't keep it.
    • A sandboxed patch with rich text that the editor can't load is refused with the "Plugin changes were not applied" message, and the form is left unchanged.
    • The "Plugin changes were not applied" message shows as a toast. Before, it was a banner that stayed above the fields after the user moved on.

    Field descriptors in the admin manifest include the field's schema type, which tells apart types that share an editor kind, such as slug and string.

  • #4779 8a44cde Thanks @khoinguyenpham04! - Adds a Hide settings button at the end of the content editor's bar on screens 1024px and wider. Hiding the settings panel centers the page in the full width, and Show settings brings the panel back. The panel starts open, and each browser remembers the choice. A hidden panel opens on its own for image and gallery settings, and when Save is blocked by an invalid field inside it. While a version is open with the panel hidden, the bar shows the version stepper. On smaller screens, the same button replaces Settings in the bar and opens the panel over the page.

  • #4779 8a44cde Thanks @khoinguyenpham04! - Removes distraction-free mode from the content editor, including its button in the editor's bar and the ⌘⇧\ (Ctrl+Shift+\ on Windows and Linux) shortcut. To give the page more room on screens 1024px and wider, hide the settings panel with the toggle at the end of the bar.

Patch Changes

  • #4626 ac16583 Thanks @khoinguyenpham04! - Fixes the content editor discarding a slug edit made while a manual save is in progress. The slug stays in the form when the saved entry reloads, and the next autosave saves it.

  • #5033 fe19551 Thanks @SantiagoSM2000! - Fixes the admin loading screen so the spinner is horizontally centered above the loading message instead of left-aligned.

  • #4624 8c2ec3f Thanks @ferivoq! - Adds missing Hungarian translations for the admin interface, including the content editor, media library, forms, calendar, and site transfer screens.

  • #4854 5d446cb Thanks @khoinguyenpham04! - Makes Enter work in admin confirmation dialogs. A confirmation for something you can undo, such as Publish now, Publish changes, Move to Trash or Restore this version, now opens with its confirm button focused, so pressing Enter confirms it. A confirmation for something permanent, such as Delete Permanently, opens with Cancel focused, so Enter closes the dialog without acting. Publishing now over a schedule and restoring a version over unsaved edits count as permanent. Unpublish in the editor and the bulk Publish and Set to draft actions in the content list now ask for confirmation too, opening on their confirm button so Enter confirms; bulk Publish and bulk Set to draft open on Cancel when a selected entry is scheduled, because both clear its schedule.

    The Publish and plugin Uninstall confirmations now stay open when you click outside them, like the other confirmations. Press Escape or Cancel to close them. Confirmation dialogs also leave more room between the title and the description, and less empty space above the buttons.

  • #4779 8a44cde Thanks @khoinguyenpham04! - Gives Publish and Unpublish in the content editor matching globe icons, replacing the upload arrow and the crossed-out eye.

  • #4864 438b2f9 Thanks @emdash-autofix! - Fixes allowed-domain self-signup failing with "Setup already complete" when creating a passkey on a site that has finished setup.

  • #5034 9275235 Thanks @danielmlr! - Completes the German admin translations so German-speaking editors see localized text when they edit an entry together with others (save status, presence, lock and recovery notices), when they publish or set several entries to draft at once, in the publish and unpublish confirmations, and for the WordPress import's password-protected entries.

  • #4806 b58be50 Thanks @CacheMeOwside! - Translates Hindi admin, including the forms plugin settings, block field controls, and form validation messages. Hindi now uses transliterated terms for "content", "content type" and "redirect" across the admin.

  • #4912 814bba4 Thanks @Zahid09987! - Updates Indonesian (id) admin translations for email settings, form notifications and conditional fields, co-editing and entry lock notices, block and Portable Text editors, redirects, and layout controls.

  • #4987 90df67a Thanks @tamersaadeh! - Adds missing Italian translations for the breadcrumb, copy controls, form help, and editor settings toggle.

  • #4785 d3c66d2 Thanks @tamersaadeh! - Adds Italian (Italiano) translations for the whole admin interface and makes Italian selectable in the language picker on the sign-in page and in Settings. Browsers that prefer Italian now get the Italian admin automatically, and a site whose language is set to Italian sends its invite, sign-in and recovery emails in Italian. To keep Italian out of the admin, leave it out of the admin.locales option.

  • #4769 7ce0d77 Thanks @Yusaku01! - Adds missing Japanese translations for block editing, email settings, site status, sidebar customization, content list dates, scheduled publishing notices, and other admin controls.

  • #5028 817779d Thanks @Yusaku01! - Updates Japanese translations for publishing and draft confirmation dialogs, editor messages, and breadcrumb controls.

  • #4847 9b131c3 Thanks @Yusaku01! - Adds missing Japanese translations for co-editing, save and recovery notices, revision history, WordPress import warnings, and other admin controls.

  • #4945 f0c28ef Thanks @Yusaku01! - Adds Japanese translations for the button that shows and hides the editor's settings panel.

  • #4940 a570e5d Thanks @khoinguyenpham04! - Updates @cloudflare/kumo to 2.19.0. These packages now require exactly @cloudflare/kumo@2.19.0, so sites and plugins that install Kumo themselves should upgrade to that version to match the admin's prebuilt styles. Update emdash and the Forms, Field Kit, AI Moderation and AI Search plugins together, since their earlier releases require Kumo 2.15.0.

    In the admin, date pickers use Kumo's refreshed day and month buttons, and button labels are vertically centred.

    Plugin admin pages built with Kumo may need changes for Radio.Group tests, DatePicker style overrides and Dialog maximum heights. Upgrade to Kumo 2.19 describes each change, and Match the admin's Kumo version explains how a plugin pins Kumo.

  • #4968 e573224 Thanks @emdash-autofix! - Fixes media usage tracking missing files linked by their /_emdash/api/media/file/ URL. Used in now includes Portable Text paragraph link marks, HTML block href and src attributes, and whole string or URL field values, including fields inside blocks and repeaters.

    Counts both root-relative URLs and full same-site URLs copied from the Media Library. Full URLs must match the site origin resolved from configuration or environment, the Site URL setting, or the setup URL when neither is set. The Site URL setting is used only for HTTPS or loopback HTTP addresses; for other HTTP sites, configure siteUrl instead (or EMDASH_SITE_URL on Node.js). External URLs and URLs embedded in plain text are not counted. Deleting media still requires reviewing its references first; usage tracking does not prevent deletion.

    Playground sessions now record their setup origin automatically, so full URLs from Copy URL are counted without setting Site URL manually.

    Upgrade action

    Existing entries are not re-indexed automatically. After upgrading, run npx emdash media repair-usage --all against the upgraded instance (use --url to select the site), or save the affected entries again. Alternatives are the media_usage_repair MCP tool or POST /_emdash/api/admin/media-usage/repair, both with { "scope": "all" }. Until repair completes or the entries are saved again, coverage can still show as complete and a linked file can show No tracked references found. See the upgrade instructions for connection options and verification.

  • #4919 a0fdb0d Thanks @MartynasKi! - Adds a Lithuanian (lt) admin translation covering the whole admin catalog, including system emails and the date picker.

  • #4832 64b3288 Thanks @emdash-autofix! - Fixes stale dashboard counts, content lists, calendar entries, trash, and content search results after saving, publishing, unpublishing, deleting, or restoring content in the admin.

  • #4890 09a0a95 Thanks @emdash-autofix! - Fixes built-in search endpoints on PostgreSQL, including Hyperdrive, so they report 503 SEARCH_UNAVAILABLE instead of returning generic errors or misleading empty results. PostgreSQL search is still unavailable; use a SQLite-family database with FTS5 for built-in full-text search. The editor's link picker explains that content search is unavailable and suggests pasting a URL, without retrying the unsupported search or blaming the network connection.

  • #4893 af72255 Thanks @khoinguyenpham04! - Fixes the switches on Settings → Sidebars being hard to tell on from off in dark mode. They now use the same blue switch as the rest of the admin.

  • #4942 1118efe Thanks @kegren! - Translates the Swedish admin strings added in 1.5, including co-editing, the sidebar layout settings and the content list date column.

  • #4980 88b7795 Thanks @khoinguyenpham04! - Fixes taxonomy icons in the admin sidebar and on the Sidebars settings page. Flat taxonomies now show the tag icon and hierarchical ones the folders icon, so a custom flat taxonomy such as Topics no longer looks like Categories. The default Categories and Tags taxonomies look the same as before.

  • #4905 a5bd731 Thanks @emdash-autofix! - Fixes visual editing deep links to fields inside blocks so the editor opens the addressed block, indexed repeater item, and Advanced section when needed, then scrolls to and focuses the field.

    Fixes settings-panel deep links for publication date, bylines, slug, and SEO. The editor opens a collapsed desktop panel or mobile sheet before focusing, preserves the stored panel preference, and keeps collection fields with matching names ahead of these settings aliases.

  • #4440 c55e559 Thanks @khoinguyenpham04! - Fixes media_picker subfields in native plugin Portable Text repeaters, so Block Kit types and validation accept the fields that the editor already renders. Each row still stores the selected asset's URL string.

    Updates media_picker in plugin Portable Text block forms and plugin field widgets to show the selected image in a compact card with visible Replace and Remove buttons. The card labels uploaded media, and image-service URLs that end in a variant rather than a filename, as "Selected image" instead of showing a generated storage key or variant name. The picker URL-encodes local storage keys so keys with spaces or reserved URL characters resolve.

  • #4929 0e68d47 Thanks @emdash-autofix! - Fixes image sub-fields in repeaters ignoring validation.allowedMimeTypes in the media picker and during upload, including repeaters inside block types. Configure the image sub-field through a seed, the schema API, or code to opt into formats such as SVG without changing the global upload allowlist. Editing a repeater in Content Types preserves its configured sub-field allowlists.

  • #4835 41149d9 Thanks @zaochih! - Fixes the "(optional)" marker and the info-icon label on form fields staying in English when the admin is set to another language.

  • #4788 4cf36d3 Thanks @nqt9002! - Adds a Vietnamese (vi) admin translation covering the whole admin catalog, including system emails and the date picker.

  • #4834 7218164 Thanks @zaochih! - Adds missing Simplified Chinese translations for email settings, co-editing and sync status notices, block editing, redirects, sidebar customization, site status, and other admin controls, and makes the terms for slug, taxonomy term, and reusable section consistent across the catalog.

  • #4845 c73c600 Thanks @leevincent! - Updates the Traditional Chinese (Taiwan, zh-TW) admin translations for form notifications, content revision history, publishing controls, and media management.

  • Updated dependencies [a570e5d, c55e559]:

    • @emdash-cms/blocks@1.6.0
    • @emdash-cms/registry-client@0.7.3
    • @emdash-cms/registry-lexicons@0.7.1