Mail relay: state block without an import-map entry, e2e on the reference site, sharper failure reports

- the state block is rendered by IntegrationStatusBanner (no new admin component: generate:importmap gives no diff)
- reference site: e2e/mail-relay.spec.ts with a fixture and setup script; e2e:built runs it with both bundlers
- a failed enrolment is reported as what it was; the service's own refusal after a fresh enrolment
- a message keeps its key after any failure that is not final
- a local site is shown as refused in the panel before any e-mail

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 21:14:47 +01:00
co-authored by Claude Fable 5.2
parent dd3792cbc7
commit 2cceceffd0
29 changed files with 1461 additions and 65 deletions
+5 -5
View File
@@ -13,7 +13,7 @@ once there are more than 20.
> **Read before upgrading.** Nothing has to change in a project. The plugin's name is now **IAPL** (Intecion
> Advanced Payload Library); it was ipal-kit. **The package is still `@intecion/ipal-kit`**, and every name a
> project uses keeps working. The rename changes no option, schema, migration or import map. This release also carries the
> project uses keeps working. No schema, migration or import-map change. This release also carries the
> security follow-ups listed under 1.16.8 below (prepared, not released on their own).
>
> **E-mail — read which of three cases the site is.** A site with **no SMTP server in Site integrations and no
@@ -22,14 +22,14 @@ once there are more than 20.
> host and the plugin version, receives its own token through a new public route, and sends from
> `[email protected]` under the panel's "Sender name". **A site with SMTP filled in is not
> affected and contacts nothing. A site on Microsoft Graph keeps working and prints one deprecation warning at
> start.** Each new behaviour has its opt-out (table below). No schema change, no migration; one import-map entry.
> start.** Each new behaviour has its opt-out (table below).
> **The service must be live for the first case: until Intecion announces it, such a site reports
> `relay-unreachable` and sends nothing, as it sent nothing before.**
### Requires project changes
- **Every site: `pnpm payload generate:importmap`, commit.** The e-mail tab of Site integrations has a new block
("How e-mails are sent", component `@intecion/ipal-kit/admin#MailRelayStatus`); with a stale import map the block is
blank. Nothing else changes in the panel's data: no field was added, "Sending method" keeps its two stored values.
- **Nothing has to be run.** The e-mail tab of Site integrations has a new block ("How e-mails are sent"); it is
rendered by the status banner already in every import map, so `generate:importmap` gives no diff. No field was
added; "Sending method" keeps its two stored values.
- **What changes for an existing site on upgrade — e-mail:**
| Site today | After the upgrade | Opt-out |