Sending method, the owner's answers: nothing changes until another option is picked; the panel warns before the save

- a save that sends the method already shown, while nothing is stored, stores nothing: the site keeps sending
  exactly as before and keeps following what is filled in, until somebody picks ANOTHER option
- the state block reads the form as it is edited and warns at once when "Own SMTP server" is picked with server,
  user name or password empty, or "Microsoft Graph" on a server without GRAPH_* (graphReady in the panel state);
  it reloads after every save
- texts, doctor's info finding, docs, skills, changelog; reference e2e checks the warning

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 23:15:42 +01:00
co-authored by Claude Fable 5.2
parent 8c19391590
commit dc3e594d38
17 changed files with 107 additions and 33 deletions
+12 -3
View File
@@ -94,9 +94,18 @@ The method follows the order of 1.17.0, the field shows it **as selected**, and
| half an SMTP set-up, no `GRAPH_*` | IWSN (built-in), with the hint "The SMTP settings below are incomplete" | through the service, as in 1.17.0 |
| a new site | IWSN (built-in) | through the service |
**The first save of Site integrations stores what the form shows** (the form always sends the field), and from
then on the method is fixed. The state block says "Nobody has chosen the sending method yet, so the site picked
this one. Save this page to keep it." until then, and the doctor's deep run notes it (`mail-method`, info). A script
**Nothing changes until somebody picks another option.** Saving Site integrations with the method shown stores no
choice — the site keeps sending exactly as before and keeps following what is filled in, as in 1.17.0 (owner's rule,
2026-11-26). Picking a **different** option and saving stores it; from then on the method is fixed (a save that keeps
it keeps it). The state block says "The site sends the way it did before. It changes only when you pick another
sending method." meanwhile, and the doctor's deep run notes it (`mail-method`, info). To fix the method shown without
picking another, a script calls `setMailMethod(payload, 'relay')`.
**A warning before the save.** The state block reads the form as it is being edited: "Own SMTP server" picked with
server, user name or password empty says "Fill in server, user name and password below. If you save without them,
e-mails will not be sent."; "Microsoft Graph" picked on a server without `GRAPH_*` says the same for Graph. After the
save the block reloads and shows the saved state (the error above, if it was saved anyway). Saving is not refused:
an admin may set the method first and the server after. A script
of before 1.17.1 that writes `emailTransport` alone still means what it meant: it puts the site back on the order
above (write `emailMethod` to choose).