Skip to content

RustCMS v0.10.1

Choose a tag to compare

@irisvn irisvn released this 24 Oct 09:23
· 1 commit to main since this release

RustCMS v0.10.1. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).

Built from irisvn/RustCMS-Core v0.10.1.

— 2026-10-24

Added (0.10.1)

  • The Media page shows the library as a grid of thumbnails (the
    authorized file URL in an <img>, scaled by the browser; other files as
    an icon) or as the usual table, a choice remembered per user in the
    browser; the grid shows at most 24 thumbnails a page. Its Upload
    files
    button sends several files through the panel's upload queue
    (useUploads: at most 2 at a time, a 429 sent again after Retry-After,
    an idempotency key per file, the same on a retry). The media schema has
    an upload ability (media.create); create stays refused. Images
    inserted from the library take the file's alternative text; a trashed or
    missing file shows "File unavailable" on its page and in the editor.
  • Media names and alternative text: a nullable media.alt column
    (framework migration m20261201_000022_add_alt_to_media, re-runnable on
    MySQL), and the media record's edit form changes exactly name (a rename,
    cleaned like uploaded names, never empty) and alt (at most 500
    characters). MediaPolicy allows update with media.update on one's own
    files, and on others' only with media.manage_all (like trashing); every
    other column stays refused. alt is read with the record and returned in
    MediaItem (alt?). The record page shows the file and what was detected.
  • SettingField::media(name) and SettingField::media_list(name, max)
    (with .accept(…), .max_size(…)): settings holding media ids
    (Option<Uuid>, Vec<Uuid>), edited with the media input. A save checks
    each changed reference as resource media fields are checked (exists, not
    trashed, visible to the saver now, accepted type and size; rows locked
    in the save's transaction). Boot refuses them without
    AdminProvider::media() or with a non-empty default. Contract fixture
    settings.brand.json.
  • Action::visible_when(|ctx, record| …): whether an action is offered on
    a record, decided by the server for each record (envelope abilities) and
    again on the locked record when the action runs: a run on one record it is
    hidden on is refused (403); a run on several skips those records (reported
    in denied, never handed to the handler). Oracle case.
    Action::primary() (schema ActionSchema.primary) and
    Action::destructive() (color danger): a list row shows at most one
    labelled action (the first primary one it offers) and a ⋯ menu with the
    others, destructive ones last after a separator. Vocabulary 10.
  • Action outcomes: Action::with_outcome(name, handler) (a new
    constructor; Action::new is unchanged) takes a handler returning
    AppResult<ActionOutcome>; ActionOutcome gains message and open
    (ActionOutcome::message, ActionOutcome::open, with_message,
    with_open). open must be https:// (no credentials) or an absolute
    path of this site (no //, dot segments, backslashes; at most 2,048
    bytes), or the action fails (500) and rolls back; it is refused on runs on
    several records (422 one_record_only). The message is at most 500
    characters. The panel shows the message and, after the commit, opens the
    page in a new tab (noopener,noreferrer), with a link as fallback.
  • TableColumn::hide_below(Breakpoint::Sm | Md | Lg) (a closed enum,
    rustcms::admin::Breakpoint; schema ColumnSchema.hideBelow,
    vocabulary 10): the column is hidden on narrower screens (640, 768,
    1024 px) by static CSS classes (lists and relation tables); records are
    unchanged.
  • Action::submit_label(label) (schema ActionSchema.submitLabel): the
    button of the action's form dialog; by default the action's label without
    a trailing ellipsis (it was always "Run"). Action dialog titles drop a
    trailing ellipsis too.

Fixed (0.10.1)

  • Bulk actions were never offered on list rows, although .bulk() means
    "also offered for selections": every action is now a row action where the
    row's abilities allow it.
  • Record pages and relation tables showed no actions: a record's page shows
    the actions it offers (primary labelled, the others under ⋯), and the rows
    of relation tables those of the related resource.
  • Record pages showed dates and times as wire text
    (2026-10-24T02:00:45.857073Z): they are formatted in the user's
    language, instants in the browser's time zone with its name (the exact
    value stays in the <time datetime> attribute).
  • Widget::recent showed raw values (draft, ISO instants): each column
    now carries its valueType, its form input's options and its table
    column, and each record its wire data, so the panel shows option
    labels, custom cells, badges and formatted dates (the values text stays).
  • A rich text image whose file is missing or trashed rendered as a broken
    image: it shows the "File unavailable" chip, as file fields now do.
  • Generated text: a null value on a record's page reads "Not set" (no
    "(null)"); relation search boxes have a placeholder.
  • The media input reported its pending upload again on every render of its
    form (a new onBusy callback each time), re-rendering the form without
    end while a file was being uploaded.

Changed (0.10.1)

  • ActionOutcome has two new fields, message and open (code building
    it with a struct literal adds ..Default::default()).
  • The navigation (and the dashboard's resource cards) lists resources in
    registration order instead of by slug; ResourceMeta::sort still
    reorders them.
  • media::entity::Model has a new field alt: Option<String> (code that
    builds media::ActiveModel literals sets it).