GeezerVison is showing github.com — DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system · Issue #946 · OpenResilienceInitiative/ORISO-UserService
DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system #946Description
Status 2026-09-24 · Readiness 3/5 — missing: DPA_FORWARD template kind question open
The contract mail is rendered by DpaSigningMailRenderer (kit page avv-unterschrift). Remaining: remove the old ConsultingTypeService endpoint /settingsadmin/dpa-signing-emails (PR in progress), receipt of the new mail on Dev, and decide whether the editable DPA_FORWARD template kind stays.
Readiness = one point each for: plain-language goal, testable acceptance criteria, dependencies resolved, code location correct on dev, verification path defined. Epic: OpenResilienceInitiative/ORISO-Frontend#828.
Two remaining direct-SMTP senders with their own markup:
DpaForwardEmailService — forwards the DPA for signature. Client-facing and legally relevant, so it should look like the rest.
GlobalSmtpTestEmailService — the admin SMTP diagnostic. Not a product mail, but it is the first mail a Träger admin ever receives; if it looks broken, the platform looks broken.
Note DPA_FORWARD also exists as an editable InviteEmailTemplateKind. Part of this issue is establishing which of the two actually sends, and removing or reconciling the other.
Design lives in ORISO-Frontend src/emails/ (branch feat/email-design-system-storybook).
Part of #828.
Reviewer test plan
- Mail sent from a real trigger on Pre-Dev matches the Storybook story
- Tenant primary/accent colour and logo come through
- No hand-written HTML skeleton left in the Java class
-
text/plain alternative part is attached
- Rendered in Apple Mail iOS or Gmail Android — no horizontal scrolling
- Clarified whether DPA forwarding uses the Java sender or the DB template — and only one remains
- Checked at 375px and at 320px (narrow phone)
Current delivery status — 30 September 2026
Working status: In progress; planned for v2.0.10.
Developed: DPA signing/forward rendering and shared dispatch exist; DPA forward has a recorded Dev receipt.
Still open: Legacy CTS removal, DPA signed notices and remaining route receipts are separate open gates.
Scope: Do not describe DPA_FORWARD as unimplemented.
Next action: Review CTS #162 and final sender stack, then test each DPA flow independently.
Acceptance still needed: Forward, signing and signed notice reach the correct party with valid link and no private-log leak.
The release and lane are planning fields. Existing readiness scores are retained; neither a board move nor a green PR establishes deployment or received mail.
For developers — audit boundary (skip for the progress overview):
Updated: 2026-09-30 11:47 UTC.
Native child of https://github.com/OpenResilienceInitiative/ORISO-Frontend/issues/828; live recursive Epic828 inventory contains58 unique descendants.
PR state/review/check snapshot:2026-09-30T11:29:19UTC. Source notes retain the dated code audit; this pass does not repeat every code or runtime test.
Current source, local verification, CI, human review, merge, deployment and real-mail receipt remain separate gates.
No new account, merge, deployment or acceptance was performed by this description update.
Release and delivery state — correction on 1 October 2026
This implementation is merged and belongs to v2.0.10. It is queued in QA internal for Dev/Stage. Missing agent test evidence or separate follow-up work does not move delivered scope back into development. Frank confirmed that the team performed manual testing.
Delivering PRs: #1258. Activitycoderabbitai commented on Aug 2, 2026
🔗 Related PRs
#439 - feat(auth): self-service password reset (mirrors Magic Link) [merged]
#508 - Fix own-email rejection during consultant 2FA setup [merged]
#728 - Fix email 2FA completion for encoded Admin usernames [merged]
#885 - [Stability] Focus identity email address mutations [open]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord! Storypapst commented on Aug 3, 2026 CollaboratorAuthor More actions Half built — commit 0255c771, PR #958.
GlobalSmtpTestEmailService now renders the smtp-test template. It goes through the same skeleton as every other mail on purpose: a diagnostic that renders differently from production mail tests the wrong thing.
The DPA half is not in this repository. DpaForwardEmailService only validates the sign link's origin and POSTs to ${consulting.type.service.api.url}/settingsadmin/dpa-signing-emails via DefaultDpaSigningEmailDispatchService. The HTML for the DPA mail is therefore built in ConsultingTypeService, not here.
The design exists and is ready to consume — Email/Pages/AvvUnterschrift in ORISO-Frontend#867, with the freemarker and plain dialects generated. Someone should decide whether that port becomes a sub-issue against ConsultingTypeService; I have not opened one, because ORISO-Frontend#828 does not list that repository and I would rather not create work in a repo without an owner's agreement.
This issue should stay open for the DPA half. Storypapst commented on Sep 7, 2026 CollaboratorAuthor More actions My coding agent checked the current issue/PR record. Technical follow-up: @shazia-k. PR #1124 is open (draft; CLEAN; no review decision). The earlier issue explicitly split UserService SMTP and ConsultingTypeService DPA email paths. Review the current mail PRs and prove both actual receipts before completing this combined request.
Storypapst commented on Sep 14, 2026 CollaboratorAuthor More actions Verified 15 September 2026 against origin/dev @ 3342b2eb — half delivered, and the other half is in the wrong repository.
GlobalSmtpTestEmailService renders the smtp-test occasion through OrisoEmailRenderer. Done.
DpaForwardEmailService renders nothing. It validates the tenant and the sign link and delegates to DefaultDpaSigningEmailDispatchService, which POSTs {recipientEmail, tenantName, signLink, expiresAt} to ConsultingTypeService /settingsadmin/dpa-signing-emails. The DPA mail body lives downstream, not here.
So the DPA half of this issue cannot be done in UserService. It is ORISO-ConsultingTypeService#142 (open draft, overlapping #135) that applies the design-system layout to the DPA invitation. This issue should either be recut to the SMTP-test half, or point at that PR for the rest. Storypapst commented on Sep 15, 2026 CollaboratorAuthor More actions Delivered on branch email-v2.1, head 4f62ca0e, based on 3342b2eb (dev). 4529 unit tests pass.
Not cherry-picked. The source commit b5d2a945 is one 167-file commit mixing e-mail with case handover (including two Liquibase changesets) and account recovery, so the e-mail half was reassembled file by file.
Taken: NotificationEmailService and GlobalSmtpSettingsResolver (new), TenantSystemEmailDeliveryClient, the OrisoEmailBrand rewrite to tenant branding, OrisoEmailDispatcher.sendOrThrow, EmailBrandingResolver with the first-party logo rule and a 10s TTL cache, MailService switching from the upstream HTTP call to local rendering, plus the 70 template resources.
Left out: CaseHandoverEmailNotification, EventNotificationService, the case-handover classes and changesets, the account-recovery chain.
Two traps that would have broken a straight copy:
getSingleTenancyTenantDataFresh() was added on dev, not deleted by pre-dev — copying TenantService.java across would have deleted a method dev needs. Only the getPlatformTenantData signature is taken.
InviteMailDispatchService changed on both sides; pre-dev's SMTP extraction is taken, dev's CONFIRMED_NOT_SENT / DELIVERY_UNCERTAIN dispositions are kept.
Three things to review deliberately: OrisoEmailBrand.values(appUrl, themeColor) now ignores themeColor (three callers still pass one — no compile error, silent change); NotificationEmailService.render throws on an unmapped template name; after MailService the upstream service is out of the notification path except for sendErrorMail.
Requires ORISO-TenantService branch email-v2.1 first.
No pull request: the branch is pushed for the integrating developer to open one. Full cross-repository handoff in OpenResilienceInitiative/ORISO-Frontend#828.
Receipt evidence is still outstanding — the Pre-Dev server is pinned to another workstream's test images until roughly 16 September 20:00, so no mail has been proven to arrive yet. Code verified, receipt not. Storypapst commented on Sep 22, 2026 CollaboratorAuthor More actions Partly delivered: the SMTP test mail uses the ORISO design on dev. The DPA signing mail does not. It is still a hand-written card, and it is built in ConsultingTypeService, not here.
Evidence (re-checked 23 Sep 2026)
Still open
- Render the DPA signing mail from the kit's
avv-unterschrift design. ORISO-ConsultingTypeService#142 (draft) covers the branding part.
- The editable
DPA_FORWARD template kind still exists next to that sender. Which one is authoritative is still undecided.
Storypapst commented on Sep 23, 2026 CollaboratorAuthor More actions The contract signing mail ("Vertragsunterlagen") now comes from the ORISO design system and is sent by UserService itself; ConsultingTypeService no longer builds it by hand.
It uses kit page avv-unterschrift, the same frame, sender block and footer as the invite mail, and the wizard preview comes from the same renderer as the sent mail. The SMTP test mail was already done.
PRs
Still open
- Remove the old ConsultingTypeService endpoint
/settingsadmin/dpa-signing-emails (DpaSigningEmailController, DpaSigningEmailService); it is still on dev but nothing calls it any more.
- Not on staging yet; one receipt check of the new mail on Dev.
Storypapst commented on Oct 1, 2026 CollaboratorAuthor More actions
Short thesis: Source for DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system has reached the published-branch stage.
Problem: A linked source branch or merged source exists. This score does not mean human approval, Dev deployment, a received email, or completion.
Readiness: 10/20. This is the GitHub delivery ladder, not a development percentage.
Next step toward the next level: Run the documented automated review loop, resolve valid findings, and collect the next review evidence.
Related source: PR 1258, PR 1320.
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|