Skip to content

2.7.0

Choose a tag to compare

@goldnead goldnead released this 15 Sep 20:03
· 21 commits to main since this release

The overview shows the webhooks themselves, not just four numbers

It used to hold four tiles and not a single row of the actual webhooks. The
page now carries the figures as a key/value table and below it the outgoing
webhooks as a real Statamic listing, with column headers, sorting, multi-select
and a "…" menu. The delivery listing was unusable — the URL column 60 px wide,
every row just "…" — and is no longer.

Fixed: two holes in the action endpoints

  • [fix] A selection that collapsed to zero records server-side (a stale page, a
    deleted row, a brand switch) made core run over the global action list of
    all installed addons and ended in HTTP 500 with a stack trace. The
    endpoint now answers with an empty list, or a 404, before core is asked.
  • [fix] An action of the wrong type ran through and reported success — an outgoing
    webhook could be run as "Resend delivery". visibleTo() is only a guard for
    the interface; when executing, Statamic checks authorize() and nothing
    else. All five CP actions now check the type there, and every endpoint
    accepts only its own actions.

The Control Panel speaks German throughout

357 strings sat in the code as global translation keys. Global means a sibling
addon can redefine them — the delivery detail page was titled "Versand #266"
because another addon binds Delivery to "Versand". Everything now lives under
webhook-manager::messages.*. A test holds the state: it also catches
trans_choice, double quotes, config/ and calls with a variable key.

Smaller things

  • The error type on the log page had never resolved: the server looked it up in
    the delivery failure classes, while the column carries log event types. Its
    own vocabulary with 26 event types; the column is now called "Event".
  • Removed checkbox columns that had no effect at all on four listings.
  • One word per thing: the German interface says "Zustellung", no longer also
    "Auslieferung".