Repository navigation
feat(email): calmer emails that say why a check is down - #623
Merged
Merged
Conversation
Every SolidPing email gets a lighter layout and tighter copy.
- Layout: the logo sits above a white card and the footer below it. The
navy header and the full-width red/green banner are gone. The state is
now a thin colored stripe plus a tinted pill ("Down", "Recovered").
- Alerts show the failure cause (e.g. HTTP 503) and the probed URL, like
the Slack and Discord alerts already do. "I'm on it" (the ack link) is
the main button.
- The escalation email now has the "I'm on it" button and the cause.
- Subjects start with a state emoji instead of a [TAG]:
"🔴 api is down: HTTP 503 (#42)", "🟢 api is back up after 15m (#42)".
Mail filters on "[DOWN]" or "[RECOVERED]" need updating.
- Status page subscriber mail shows the page name, not the SolidPing
logo, and every update of one incident shares one subject.
- Incident mails carry In-Reply-To/References, so Apple Mail and
Thunderbird group them per incident. Gmail keeps them apart because
their subjects differ.
- Times read "Jul 5, 10:00 UTC".
- Fixed: in dark mode the primary button label was blue on blue.
- Removed: the incident UUID line, repeated check names, "Hi," with no
name, and the "someone used your address" footer on alerts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #623 +/- ##
==========================================
+ Coverage 83.38% 83.58% +0.20%
==========================================
Files 1239 1253 +14
Lines 127100 128076 +976
==========================================
+ Hits 105978 107057 +1079
+ Misses 21113 21010 -103
Partials 9 9
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase A of spec 2026-10-21-01 (emails in en, fr, de, es, in the reader's timezone). - internal/i18n: Locale (language + timezone), Normalize, embedded JSON catalogs with the common namespace in 4 languages, T/Tn/THTML, Date, Day, Month, Duration, Number, Pct, missing-key fallback and MissingKeys(). - internal/i18n/recipient: per-recipient resolution (account, hint, org owner, default), cached per resolver. - users.preferences (migration 030_v0_41_0), PATCH /auth/me preferences, register and accept-invite locale/timezone, UserInfo.preferences. - Formatter.Format takes an i18n.Locale; per-render template funcs; base.html and shared partials localized; the ack sentence states the real expiry. - EmailJobConfig and email.Message carry Locale/Timezone; the support-reply notice is localized with a language-independent idempotency check. - Email preview takes ?locale; fixtures split per template group. - Sites left for phase B carry "i18n-phase-b: resolve the recipient locale". - Guide: wiki/conventions/email-i18n.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- recipient: the org owner's preferences fill only an address with no
account; a member without preferences reads English/UTC.
- Locale render test fails on a missing key in any namespace (control
namespace reserved for the positive control) and checks every
preheader in every locale.
- Identical-value allowlist moved to testdata/identical/<namespace>.json,
one file per namespace; every _one leaf must print {count}.
- Locale.In/InZone and dayIn/monthIn for zone-anchored calendar dates;
Signed, ListAnd/ListOr (Spanish e/u); Tn's {count} has no thousands
separator so shared producers keep their %d output.
- Text-block partials incident-actions-text and footer-text, with shared
labels in common.
- ParseTimezone caches with LoadOrStore (racing renders got different
*time.Location values).
- Operator notices stay English (spec decision 11 narrowed); the guide
gains a phase B file ownership table, raw-text mail and numeric
comparison rules.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The confirm and update mails to status page subscribers, and the confirm/unsubscribe landing pages, now follow the reader's language: the subscriber's own account preferences when the address has one, else the status page's language column, else English (UTC, a status page has no timezone). Landing pages use the page's language and set <html lang>; a token that resolves to no subscriber stays English. New "subscriber" namespace in en, fr, de, es. Subjects keep the "<page>: <title>" shape (French puts a space before the colon); the kind banner and "Confirm your subscription to <page>" are translated. German and Spanish use the status page's public wording for an incident (Störung, incidencia), the same as the auto-published updates these mails carry. English output is unchanged byte for byte. Removes the two i18n-phase-b markers of the group. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Registration, welcome, password reset (and SSO variant), password changed, email changed, invitation and membership request/decision templates read every string from the new "account" catalog namespace. Each mail is queued in its reader's language and timezone: - registration: the locale/timezone the signup form sent; - password reset, password changed, email changed: the account (the email-changed notice resolves from the user loaded before the update, since the old address no longer matches the row); - invitation: the invitee's account, else the inviter's preferences; - membership request: each admin's own; decision: the requester's. Go-built strings are gone: ChangedAt is a time formatted by the template's date func (reader's zone), the SSO provider list goes through ListOr, invitation lifetimes use account.duration plurals, roles and decisions select whole translated sentences. The preview fixtures use the same helpers. English output is unchanged except three em dashes replaced by full stops. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pages reached from incident email links now follow the reader: the account the token was sent to, else the browser's Accept-Language, else English. They set <html lang>, translate every string (namespace "pages", en/fr/de/es) and send Vary: Accept-Language. The unsubscribe page resolves its language itself. The ack page is ready (writeAckPage, ackPageLocale) but AcknowledgeIncidentByLink in incidents/handler.go still calls the English writeAckHTML until it is switched over. English copy is unchanged except two em dashes on the ack page, now commas. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The German and Spanish unsubscribe pages now say "abmelden" and "darse de
baja", like the dashboard's unsubscribed recipients list ("Abgemeldet",
"Dado de baja").
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment subject now starts with its state emoji and author, the headline reads "commented on", and the dark card is #161e27. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The AI auto-repair notice is written in the check owner's language (recipient.ForUser) and its job carries locale and timezone. The reason and the diff are quoted as they are. Operator notices (support message, new signup, watchdog digest, watchdog region, test) are localized for the email medium only. A Notice keeps its English Subject/Body, which Slack, Telegram, Discord, push and SMS send byte for byte as before, and carries an opsnotify.Localizer that DeliverToUser uses to write the email in the recipient super admin's language and timezone. The two queued kinds travel the job row as typed fields; a job queued before the upgrade has none and is mailed in English. New "notices" namespace (63 keys) in en, fr, de, es. Spec decision 11 and the phase B guide updated accordingly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t, region, usage cap, custom domain) Phase B, group 2 (namespace "alerts"): - escalation, paging-nudge, test-email, region-offline, region-recovered, usage-cap-reached and custom-domain-demoted render in the reader's language (en, fr, de, es) and timezone, text blocks through the shared partials. - Each send site resolves its reader: the account (escalation targets, admins of region / cap / custom-domain notices, the nudged member), the account behind an email contact with its owner as hint, the address with the acting admin as hint (SMTP test), the acting user (route test), the request hint (test API). Deferred jobs carry Locale/Timezone. - region-offline no longer compares a JSON float64 count with eq (the mail was lost): plurals come from tn, also "1 other check" and "and N more". - The usage-cap notice words each channel in whole sentences and states the real reset date in the reader's zone instead of "the 1st of next month (UTC)". - Preview fixtures are built by the production helpers; the custom-domain diagnostic is a real Diagnosis.String(). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The uptime report is written in each recipient's language (en, fr, de,
es): subject, preheader, labels, period and scope labels, percentages,
deltas, durations, response times and plurals ("incident(s)" is now a
real plural). Period labels stay in the schedule's timezone and the day
strip in UTC, whoever reads the report.
uptimereport.Data keeps raw figures; Data.In writes the text for one
locale and Data.ForReader resolves a recipient (account, else org owner
for an address with no account, else English) and caches one written
copy per language and timezone. The mail job sets EmailJobConfig
Locale/Timezone, and per-recipient unsubscribe links are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase B, group 1 (incident namespace) of spec 2026-10-21-01.
- The 12 incident-*.html templates read every string from the new
incident catalog: subject, preheader, pill, body, detail labels and the
text block, which now uses the shared incident-actions-text and
footer-text partials (the ack link states its real expiry, the old
"(link valid for 7 days)" is gone). Dates and durations are formatted in
the template, in the reader's language and timezone.
- Each recipient of an email integration gets the mail in their own
language: sendPerRecipient resolves the locale per address (account,
else the org owner for an address with no account, else English/UTC)
and sets Message.Locale/Timezone.
- The notifications producers the mail reads (degraded reason and rule
lines, burn rates/budget/exhaustion/policy, region line, ack and
comment attribution, reminder sentence, "Unknown check") take a
Locale. Slack, Discord, Telegram, SMS and the others keep their exact
English: X() == XIn(i18n.English), pinned by tests.
- Sentences built around Go fragments ("{actor} is on {check}", "withdrew
the acknowledgment via {channel}", "Posted via {channel}") are whole
keys, so word order works in every language. English plurals now agree
("1 failure", "1 of the last 6 probes was").
- Preview fixtures come from the mailer's own view model, called with the
requested locale (no more drift on AckVia / CommentSource).
- Incident templates test the incident number by truthiness, not with gt,
so the email job's float64 numbers render.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A notice queued before the upgrade has no structured form and is mailed in English; its email job now says "en" instead of the reader's locale. Copy: the support subjects name the sender first in French, the reply warning reads naturally in French and Spanish, German puts "seit dem" before the state, and Spanish says "atascada" for a stalled region, as dash0 does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Spec 2026-10-21-01, decision 5. AuthProvider adopts the language saved on the account, saves the dashboard's when none is set, and keeps the timezone on the browser's. Demo, impersonation and must-change-password sessions never write. The language menu saves the choice when signed in. Register and accept-invite send locale and timezone. The profile page gets an "Email language" card, and Test > Emails a language control (?locale=, omitted for en, in the query keys). E2E: email-language.spec.ts; the email preview spec's stale subject, headline and dark card colour assertions are fixed and it covers the locale control. Specs that seeded the UI language through localStorage stub the saved one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- fr welcome mail says "contrôle" like dash0, not "vérification";
"Soyez alerté" step and a first-person "Ouvrir mon tableau de bord" CTA.
- fr, de, es welcome lead reworded so it no longer reads as translated.
- Shorter email-changed subjects (fr, de, es) and German invitation
subject, so they fit in a mobile inbox list.
- es membership decision uses the reflexive passive ("Se ha aprobado").
- The role/decision test now asserts the role named in the approval and
the exact rejected subject in every language.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- fr, de, es preheaders no longer end with a period: a weekly label ends
with an abbreviated month ("11 oct.", "11. Okt.") and read "..".
- The previous week reads after "vs" as a week ("par rapport à la semaine
du 28 sept. au 4 oct.", "gegenüber der Woche vom ...", "frente a la
semana del ..."); English and monthly reports are unchanged.
- French: budget note agreement ("celles des autres contrôles ont été
omises"), truncated list wording.
- Spanish: "Tiempo de inactividad total" and "Media", as in the dashboard.
- The language test scans the visible HTML too, with the English render
as positive control, and covers a weekly report in all four languages.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- usage-cap-reached maps Channel onto the sms/voice/whatsapp allow-list
before building a key, so a job queued by the previous release ("SMS",
"voice call", "WhatsApp", no ResetsAt) still renders whole sentences and
falls back to "the 1st of next month (UTC)".
- escalation filters the heading link through absURL: tHTML only escapes
the href, so a non-http(s) URL is no longer linked.
- region-offline closes with a singular sentence for one blind check
(SingleBlind, computed in Go, no number comparison in the template).
- Translation review: es escalation no longer agrees "caído" with the check
name; fr region wording ("La région X de SolidPing", "dans l'organisation",
"Passée hors ligne"); de region "wieder online", "Offline ab", usage-cap
quota phrasing and "Sprachbenachrichtigungen"; de/es "DNS-Prüfung" /
"comprobación DNS"; "etc." / "usw." instead of "push..."; past tense in
the fr/de SMTP test mail; shorter es region subject.
- Tests: locale of the on-call schedule and all-admins fallback emails,
legacy usage-cap job data, the escalation link scheme filter.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Landing pages now follow the same rule as the mails whose links open them: the subscriber's account language, else the page's, else English. The handler reads the subscriber by token before the service consumes it, which also replaces the two slug lookups. A used or unknown link names no page, so its "Link expired" or "Something went wrong" page takes the browser's Accept-Language (first supported tag), else English. Landing responses send Vary: Accept-Language. Tests: landing pages on a page whose language is NULL, empty or unsupported are English (a known page ignores Accept-Language), an account's language wins on the landing pages too, and an unknown or used link follows Accept-Language. Copy: the fr and es confirm intro no longer repeat "receive", and the de text-part intro drops the doubled "Status". Co-Authored-By: Claude Opus 5.5 <[email protected]>
- fr: the check-only button reads "des alertes pour {check}" (no broken
elision on a name starting with a vowel), "cette vérification" like the
emails.
- de: "Abmeldung bestätigt / rückgängig machen / aufgehoben" instead of
words that also mean sign in and sign out, one noun for the messages
(E-Mail-Benachrichtigungen), "Haben Sie es sich anders überlegt?".
- es: "Deshacer la baja", "apunta" instead of "remite".
- fr/de/es expired ack page: links expire N days after the incident
started, and the page no longer says they came by email (SMS and voice
links open it too). No-break space between the count and its unit.
English copy is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- incident-reopened.html reads a HasRelapses bool built in Go instead of `gt .RelapseCount 1`, which failed after the email job's JSON round trip. - Where an ack, unack or comment came from is one catalog phrase per channel (incident.via.*), so French says "par téléphone" / "par e-mail", German "telefonisch" / "per E-Mail", Spanish "por teléfono" / "por correo". English output is unchanged. - The comment subject starts with the author in fr/de/es, so the "Someone" fallback opens the sentence. - The check-deleted mail labels its end "Clos le" / "Geschlossen am" / "Cerrado el" rather than a recovery time (English keeps "Back at"). - French uses "contrôle" for a check, like dash0's incident pages. Spanish "Check desconocido" agrees with the masculine sentences. - Wording fixes from review: fr escalated/reminder pronouns, de escalated subject and SLO "Fenster"/"Alarm", "not necessarily recovered" made explicit, notWithinWindow, es unack/ack/comment copy, de/es degraded lead, fr/de current status, de "Aufgelöst am". Co-Authored-By: Claude Opus 5.5 <[email protected]>
- AI repair mail: the reason line comes from notices.aiRepair.reason.*; only the failed run's error or step stays raw. The stored reason is the same producer in English, byte for byte (clipping included). - New signup: password/invite get labels; the organization line agrees with one or several organizations. English text unchanged. - Translation fixes: de/es support subjects put the sender first, fr/de recovery no longer says "depuis"/"seit", de stalled phase is "hängend", de dark headline and remediation reworded, dash0 placement terms in fr/es, es "CRÍTICA", de review and test lines. - Tests: the sweep mails a French/German operator in their language end to end, and an applied repair mails the owner in theirs. - Spec: record the English intro's plain quotes (was %q). Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The first sync saves the language and the timezone in two PATCHes, the language first: a browser zone the server refuses no longer loses the language with it. Each write still goes out once per page load. - The profile's email language card no longer ties another account's values to this dashboard and browser in impersonation and demo sessions: it shows the saved language and timezone (English, UTC when empty), read-only, with its own wording. - E2E: a refused timezone keeps the language saved; impersonation, demo and forced password change sessions send no PATCH /auth/me, each with a positive control. - Copy: "follow" calques in fr/de/es reworded, the English language toast says "language choice". Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # web/dash0/e2e/email-preview.spec.ts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb
enabled auto-merge (squash)
October 21, 2026 20:34
This was referenced Oct 21, 2026
Merged
fclairamb
added a commit
that referenced
this pull request
Oct 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.41.0](v0.40.1...v0.41.0) (2026-10-22) ### Features * **email:** calmer emails that say why a check is down ([#623](#623)) ([8dd68d3](8dd68d3)) * run crawl and discovery as worker tasks from private locations ([#633](#633)) ([062fd99](062fd99)) ### Bug Fixes * **aichecks:** hold AI runs with real secrets to a runtime host allowlist ([#631](#631)) ([c09fdd1](c09fdd1)) * **checkdns:** stub the resolver in TestDNSChecker_Execute ([#630](#630)) ([cca1d88](cca1d88)) * **dash0:** drag-to-zoom on the Timing chart ([#617](#617)) ([931816c](931816c)) * **deps:** update github.com/dop251/goja digest to 07c4b9d ([#637](#637)) ([0170643](0170643)) * **deps:** update github.com/dop251/goja digest to 64adc8b ([#626](#626)) ([1efd502](1efd502)) * **deps:** update github.com/dop251/goja digest to 7b1a022 ([#619](#619)) ([d3adde9](d3adde9)) * **deps:** update go dependencies (non-major) ([#622](#622)) ([adb622c](adb622c)) * **deps:** update go dependencies (non-major) ([#627](#627)) ([dee2fd0](dee2fd0)) * **deps:** update go dependencies (non-major) ([#635](#635)) ([da717a5](da717a5)) * **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.7.0 ([#625](#625)) ([bb8c7ae](bb8c7ae)) * **deps:** update module github.com/anthropics/anthropic-sdk-go to v2 ([#628](#628)) ([90f70c2](90f70c2)) * **deps:** update module github.com/fergusstrange/embedded-postgres to v2 ([#614](#614)) ([913ece9](913ece9)) * **email:** usage-cap email links to the platform upgrade page, not billing ([#632](#632)) ([abf3a68](abf3a68)) * **status-pages:** close a grouped check's entry when it recovers ([#615](#615)) ([d4d9b21](d4d9b21)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redesign of every transactional email: lighter layout, less repetition, and the failure cause in alerts.
Changes
HTTP 503 ...) and the target URL, like Slack/Discord already did. "I'm on it" (ack link) is the primary button.incidentlinks.AckURLis now shared by both senders.[TAG](🔴 down, 🟢 recovered, 🟠 escalated, 🟡 degraded, 🔵 acknowledged, 💬 comment, 🔥 burn, ⚪ closed). The cause goes in the DOWN subject, capped at 60 chars. Breaking for anyone filtering on[DOWN].Acme Status: <title>).email.Message.ThreadIDsetsIn-Reply-To/Referencesper incident. Apple Mail and Thunderbird group the mails. I checked on a real Gmail inbox: Gmail keeps them apart because the subjects differ, even when only the emoji differs.Jul 5, 10:00 UTCviaemail.Timestamp.users.preferencesJSON column (migration 030), exposed aspreferenceson/auth/meandPATCH /auth/me, synced from dash0. Catalogs live inserver/internal/i18n/locales/. Dates are 24-hour in the recipient's timezone. Slack/Discord/SMS text is unchanged. Spec:specs/todos/2026-10-21-01-email-localization.md, guide:wiki/conventions/email-i18n.md. Preview:?locale=fron/api/mgmt/email-preview.Testing
go test -short ./...passes, exceptinternal/appembedded-frontend tests that need a built frontend (they pass on a built checkout; this branch doesn't touchinternal/app).golangci-lint: 0 issues.🤖 Generated with Claude Code