Email de test : récapitulatif de planning compilé
ci-cd / build-backend (push) Successful in 46s
ci-cd / deploy (push) Successful in 12s
ci-cd / build-frontend (push) Successful in 21s

L'email de test reprend le modèle en cours d'édition, balises remplies
avec le planning d'un bénévole au choix (premier avec un créneau par
défaut), option lien de connexion sans vrai jeton, sujet « [Test] … » —
même fonction de rendu que l'envoi réel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AdamThomas
2026-10-28 19:44:14 +01:00
co-authored by Claude Opus 5.5
parent 461742eb78
commit 440466ccf9
12 changed files with 262 additions and 46 deletions
+3 -2
View File
@@ -31,6 +31,7 @@ import type {
VolunteerCreate,
VolunteerUpdate,
AttendanceUpdate,
TestEmailRequest,
} from './schema';
import { getAuthToken, notifyUnauthorized } from './session';
import { ApiError, type PlanningApi } from './types';
@@ -378,10 +379,10 @@ export function createHttpApi(baseUrl: string): PlanningApi {
method: 'POST',
body: JSON.stringify(body),
}),
sendTest: (editionId, email: string) =>
sendTest: (editionId, body: TestEmailRequest) =>
request(`${base(editionId)}/notifications/test`, {
method: 'POST',
body: JSON.stringify({ email }),
body: JSON.stringify(body),
}),
},
auth: {