Skip to content

Commit 79146dc

Browse files
committed
chore(platform-objects): add changeset for sys_email.error description widening
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ
1 parent 9913ee4 commit 79146dc

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"@objectstack/platform-objects": patch
3+
---
4+
5+
fix(platform-objects): `sys_email.error` field help now covers pre-delivery rejections, not only transport failures
6+
7+
`sys_email.error` was declared as *"Transport error message when status=failed"*.
8+
Since `EmailService.recordRejectedMessage` landed, the same column also carries
9+
the reason a message was rejected by `normalizeMessage` **before** it reached a
10+
transport (an unsendable `from`, no recipient, no subject, no body) — those rows
11+
are written with `status: 'failed'` too, prefixed `rejected before delivery: `.
12+
13+
Nothing was misleading in the *data*: the row prefixes its own reason, so an
14+
operator reading a failed row is never sent chasing an SMTP host for a message
15+
that never reached one. What was stale was the field's declared `description`,
16+
which Studio surfaces as the field's help text — it named only the transport
17+
case, narrower than what the column has held since that change landed.
18+
19+
The description now reads: *"Why the message failed — a transport error, or the
20+
validation that rejected it before delivery."* It stays true under both row
21+
shapes and deliberately does not name the row's own `rejected before delivery:`
22+
prefix, so it will not go stale again if that prefix's wording changes.

0 commit comments

Comments
 (0)