GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mail-footer): name the Träger by its legal name and contact by Storypapst · Pull Request #1246 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

What happened

#1239 builds the mail footer's sender block from the platform owner's Admin master data and lets a Träger override it field by field. A Träger could only override its name and address, because it had no contact field. So its mails still showed the platform owner's e-mail address under the Träger's name.

TenantService now stores an optional full legal name, contact e-mail and contact phone per Träger (ORISO-TenantService feat/tenant-legal-name-and-contact), and the Admin panel lets a Träger enter them.

What this PR does

  • Sender name: the Träger's legal name when it is set, otherwise its display name, otherwise the platform owner's name.
  • Contact line: built from the Träger's e-mail and phone exactly like the platform owner's (e-mail · phone). If the Träger entered either value, its contact line replaces the platform owner's whole line. A Träger that entered only a phone number therefore shows only that number, never its phone next to the platform owner's e-mail. See the open question below.
  • The address stays as it is on feat(mail-footer): sender block from Admin master data, Träger overrides field by field #1239: the Träger's address if it has one, otherwise the platform owner's.
  • "X ist ein Angebot von Y" is not touched: feat(mail-footer): sender block from Admin master data, Träger overrides field by field #1239 already makes Y the platform operator in every case. A new test pins that the Träger's legal name never appears there.
  • Onboarding: POST …/register accepts organisation.legalName, contactEmail and contactPhone. TenantAdminOnboardingService creates the tenant with them (trimmed, blank → left out). The values are checked against TenantService's limits (255/255/64) and its @Email rule before the admin account is created, so a value TenantService would refuse cannot fail the registration half-way.
  • services/tenantadminservice.yaml carries the three fields, and the generated client is regenerated from it. The TenantService provider pin in openapi-contracts.yml (and its gate test) moves from 70ea300 to e68b087, the commit that adds the fields.

Base

Stacked on feat/mail-footer-org-from-tenant (#1239), rebased on its head 8ca0d78 ("the offered-by line always names the platform operator"). Nothing was pushed to #1239. Until #1239 is merged, this PR against dev also shows #1239's commits. Merge #1239 first.

How to test it quickly

  1. Needs TenantService with the new fields, and Keycloak#34 (the technical user reads the tenant).
  2. Under Träger → Allgemein, give a Träger a legal name and an e-mail. Wait up to 5 minutes (sender cache), then send an invite for that Träger. The footer shows the legal name, then the address, then the Träger's e-mail. The platform owner's e-mail does not appear. The line "Online-Beratung ist ein Angebot von " is unchanged.
  3. Clear the Träger's contact fields and send again. The platform owner's contact line is back.

Tests

  • TraegerOrganisationClientTest: the legal name wins over the display name, a blank legal name falls back to the display name, the contact line is built from e-mail and phone, and a phone alone works.
  • SenderOrganisationResolverTest: the Träger's contact line replaces the platform owner's whole line.
  • SenderOrganisationTest: contactLine joins what was entered and is null when nothing was.
  • InviteFrameMailRendererTest: one rendered invite, end to end from a TenantService TenantDTO through the real TraegerOrganisationClient. It shows the legal name, the platform owner's address, the Träger's own contact line, no platform e-mail, and the offered-by line naming the operator.
  • TenantAdminOnboardingControllerTest / TenantAdminOnboardingServiceTest: request → command → MultilingualTenantDTO, blank values left out, and invalid e-mail or too-long values → 400 before anything is created.
  • Consumer contracts checked locally with oasdiff breaking against TenantService e68b087: no breaking changes for tenantadminservice.yaml or tenantservice.yaml. pytest tests/contracts is green.
  • Local: ./mvnw -B spotless:check clean, ./mvnw -B verify green (5040 unit tests; 1024 ITs, 32 of them skipped).

Verified: local only.

Open question

The contact line as one field: should a Träger that entered only a phone number really hide the platform owner's e-mail? Or should the e-mail and the phone number each fall back separately? This PR does the first, so that one line never names two organisations.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Storypapst and others added 17 commits September 22, 2026 19:02
@Storypapst @claude
fix(email): keep the free-text frame neutral when the mail has no action
86a4a06
einladung-freitext always printed "do not pass this link on" and "this
email is part of your invitation", also for the contract-signed notice
(DpaSignedNoticeService), which has neither a button nor an invitation.

The security row is now the conditional {{assuranceBlock}} (expanded by
OrisoEmailRenderer on the same actionUrl condition as {{ctaBlock}}, text
in {{assurance}}), and the footer line is {{footerNote}}: the invitation
note with an action, "sent automatically, please do not reply" without.
Output with an action is byte-identical to before. Templates mirror the
ORISO-Frontend kit (PR #1517).

Co-Authored-By: Claude Opus 5 <[email protected]>
@Storypapst @claude
fix(dpa-mail): show the signing time in German local time
d0a74f9
The "AVV unterzeichnet" notice printed the zoneless UTC signedAt as-is,
so a contract signed at 00:45 German time on 23.09. read "Unterzeichnet
am: 22.09.2026 22:45 Uhr" on dev. Convert UTC to Europe/Berlin before
formatting; covered for a summer (+2h, date rollover) and a winter (+1h)
timestamp. The contract version stays verbatim because it is an
identifier that must match the label the Admin shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
fix(dpa-mail): use accusative "Ihre Organisation" after "für"
10f56a4
When the tenant is only reserved and has no name yet, the forward mail
falls back to a generic name that the signing mail puts after "für"
("Vertragsunterlagen für …"). "Ihrer Organisation" is dative and wrong
there; "für" takes the accusative.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(dpa-mail): render and send the AVV signing mail from the design …
c91b715
…system

The DPA signing mail was the last legal-flow mail still built by hand: a
620px grey card with an "ORISO" bar, Arial and no legal footer, assembled in
ConsultingTypeService. UserService now renders it from the kit's
`avv-unterschrift` template with OrisoEmailRenderer and sends it over the
same global SMTP path as the invite mail, so preview and sent mail come out
of one renderer and are byte-identical.

- DpaSigningMailRenderer fills the template: Träger name, sign link (button
  plus copy-link line), provided-at and expiry in German local time.
- TenantEmailBrandValues holds the tenant-branding overlay the invite frame
  already used (name, logo via the tenant-pinned public logo route, accent),
  now shared, so both mails brand a tenant the same way.
- InviteMailDispatchService.sendRendered sends an already rendered
  design-system mail with the same strict receipt/SmtpSendException contract.
- DefaultDpaSigningEmailDispatchService no longer calls ConsultingTypeService.
- avv-unterschrift templates and catalogue entry synced byte-identically from
  ORISO-Frontend (copy-link line, subject "Vertragsunterlagen für <Träger>").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
fix(dpa-mail): say "Vertragsunterlagen" and name the platform, not th…
b7aaa5e
…e Träger, in the footer

Decisions by Frank (2026-09-23) for the Träger legal-flow mails:

- Mail copy never says "AVV" or "Auftragsverarbeitungsvertrag", always
  "Vertragsunterlagen" (en: "contract documents"). avv-unterschrift is
  re-synced byte-identically from ORISO-Frontend
  `feat/email-kit-avv-copy-link-and-subject`; the DPA signed notice default
  subject and body follow ("Vertragsunterlagen unterzeichnet – <Träger>").
- "X ist ein Angebot von Y" names the configured platform and its operator,
  never the Träger. TenantEmailBrandValues overlays platformName with the
  Träger name for the header; the offered-by line of avv-unterschrift and
  einladung-freitext (invite mail and signed notice) now reads
  `{{offeringName}}`, which OrisoEmailBrand fills with the platform name and
  no overlay touches. It used to read "Caritasverband Musterstadt e.V. ist
  ein Angebot von ORISO."
- The fine print no longer prints "e.V..": OrisoEmailRenderer drops the
  template's full stop when a value already ends the sentence with one.
- A reserved tenant without a name reads "zwischen ORISO und Ihrer
  Organisation" in the fine print (dative, `{{tenantNameDative}}`) while the
  subject keeps "für Ihre Organisation". DpaSigningMailRenderer now owns both
  fallbacks; DpaForwardEmailService passes no name instead of a wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): resolve the sender organisation from Admin master …
1391334
…data

The footer's sender block (name, postal address, contact line) is read
from what the platform owner enters under Admin -> Globale Einstellungen
-> Dokument-Stammdaten (TenantService /tenant/public/dpia, operator), with
a Traeger's own name and address laid over it field by field (Frank,
2026-09-23). A value nobody entered stays empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): omit a sender line nobody entered
764d103
A blank organisation name, address or contact line now takes its whole
footer line with it - including "X ist ein Angebot von Y" and the
contract sentence of the signing mail - instead of leaving an empty line
or needing a sample value. A value missing from the map entirely still
stays visible as {{placeholder}}.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): take the platform sender block from Admin master data
882d2ab
OrisoEmailBrand no longer carries email.brand.org-name/org-address/
contact-line with an "ORISO" default. Every design-system mail now names
the platform owner as entered under Dokument-Stammdaten -> Betreiber, and
a value nobody entered stays blank so the renderer drops its line.

TenantEmailBrandValues takes the sender tenant as a parameter; the DPA
signing mail passes none on purpose (its fine print names the operator as
contract partner). Test fixtures no longer use a Musterstrasse sample or
the app.oriso.org host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): let a Traeger's own name and address override the …
b2031e6
…platform owner's

The invite mail and the "Vertragsunterlagen unterzeichnet" notice now
carry the Traeger's sender block: its name and, where it entered one, its
address; everything it has not entered comes from the platform owner.
The DPA signing mail keeps the operator as sender on purpose - its fine
print names the operator as the Traeger's contract partner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
style(mail-footer): apply spotless to the invite footer test
df129a8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
fix(email): drop the plain-text divider together with the security line
d59b9cd
In the plain-text half of einladung-freitext the 64-dash rule stood in the
template, outside {{assuranceBlock}}. A mail without an action (the
contract-signed notice) lost the security line but kept the rule, while
the HTML half drops both. The rule now travels inside ASSURANCE_BLOCK_TEXT,
the same unit as the HTML emailAssurance molecule. Output with an action is
unchanged.

The ORISO-Frontend kit text builder needs the matching change (the slot
carries its own rule); see the PR comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
Merge #1233 (neutral free-text frame) into the signing-mail branch
078fea4
Both change the einladung-freitext frame. Resolution keeps #1233's
conditional {{assuranceBlock}} / {{footerNote}} and this branch's
{{offeringName}} in the "is a service provided by" line; catalogue.json
lists all three placeholders. Without this merge the branch conflicts
once #1233 lands first, which is the agreed merge order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
Merge #1238 (now including #1233) into the mail-footer branch
0a3d6a6
The signing-mail branch took in #1233's conditional {{assuranceBlock}}.
OrisoEmailRenderer conflicted only because both sides added constants at
the same spot: the resolution keeps the assurance block constants and the
sender-line patterns side by side, unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
fix(mail-footer): inventory the two sender caches for replica safety
6f12f07
CI failed in tests/ci/test_replica_safety_contract.py: the new
PlatformOperatorOrganisationClient (AtomicReference) and
TraegerOrganisationClient (ConcurrentHashMap) hold process-local state that
replica-safety-components.json did not list. Both are five-minute TTL
caches of TenantService reads, so they are inventoried like
operator-dpa-content-cache: performance risk, bounded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): the offered-by line always names the platform oper…
8ca0d78
…ator

Product decision (Frank, 2026-09-23): in "X ist ein Angebot von Y", Y is
the platform operator from Admin -> Globale Einstellungen ->
Dokument-Stammdaten -> Betreiber, never the Traeger, even when the Traeger
overrides the sender name and address above it. X stays the platform name.

The two templates where a Traeger can overlay the sender block
(einladung-freitext, avv-unterschrift) now take Y from a new
{{operatorName}} token, which OrisoEmailBrand fills from the operator's
master data and TenantEmailBrandValues never overlays. An operator without
a name drops the sentence, as a blank sender value already does; the
Traeger never stands in. The signing mail keeps the operator as sender.

Tests first: InviteFrameMailRendererTest and DpaSignedNoticeFooterTest
failed on "... ist ein Angebot von Traeger Nord e.V." before the change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
feat(mail-footer): name the Träger by its legal name and contact
adeb5f7
TenantService now stores an optional full legal name, contact e-mail and
phone per Träger (ORISO-TenantService feat/tenant-legal-name-and-contact).

- TraegerOrganisationClient uses the legal name as the sender name, else
  the display name, and builds the Träger's contact line from its e-mail
  and phone the same way as the platform owner's ("a · b").
- The contact line stays one field: a Träger that entered any contact
  replaces the platform owner's whole line, so a line never names two
  organisations.
- Tenant-admin onboarding accepts organisation.legalName, contactEmail and
  contactPhone and creates the tenant with them. They are checked against
  TenantService's limits and @Email rule before anything is created.
- services/tenantadminservice.yaml carries the three fields; the
  TenantService provider pin moves to the commit that adds them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
test(mail-footer): pin that the offered-by line never takes the Träge…
3c0ef1b
…r's legal name

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst
Storypapst requested a review from shazia-k September 23, 2026 02:43
@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 80 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: OpenResilienceInitiative/ORISO-UserService/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 5e963755-9a5c-4232-a53f-3ff93b9cd1c2

📥 Commits

Reviewing files that changed from the base of the PR and between 26fa52f and 3c0ef1b.

⛔ Files ignored due to path filters (2)
  • services/tenantadminservice.yaml is excluded by none and included by none
  • tests/contracts/test_openapi_contract_gate.py is excluded by none and included by none
📒 Files selected for processing (51)
  • .github/workflows/openapi-contracts.yml
  • src/main/java/de/caritas/cob/userservice/api/adapters/web/controller/TenantAdminOnboardingController.java
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/DpaForwardEmailService.java
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteFrameMailRenderer.java
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteMailDispatchService.java
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/onboarding/TenantAdminOnboardingService.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/OrisoEmailBrand.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/OrisoEmailRenderer.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/TenantEmailBrandValues.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/sender/PlatformOperatorOrganisationClient.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/sender/SenderOrganisation.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/sender/SenderOrganisationResolver.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/sender/TraegerOrganisationClient.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/DefaultDpaSigningEmailDispatchService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/DpaSignedNoticeService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/DpaSigningEmailDispatchService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/DpaSigningEmailPreview.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/DpaSigningMailRenderer.java
  • src/main/resources/emails/catalogue.json
  • src/main/resources/emails/de-du/avv-unterschrift.html
  • src/main/resources/emails/de-du/avv-unterschrift.txt
  • src/main/resources/emails/de-du/einladung-freitext.html
  • src/main/resources/emails/de-du/einladung-freitext.txt
  • src/main/resources/emails/de-sie/avv-unterschrift.html
  • src/main/resources/emails/de-sie/avv-unterschrift.txt
  • src/main/resources/emails/de-sie/einladung-freitext.html
  • src/main/resources/emails/de-sie/einladung-freitext.txt
  • src/main/resources/emails/en/avv-unterschrift.html
  • src/main/resources/emails/en/avv-unterschrift.txt
  • src/main/resources/emails/en/einladung-freitext.html
  • src/main/resources/emails/en/einladung-freitext.txt
  • src/main/resources/replica-safety-components.json
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/controller/TenantAdminOnboardingControllerTest.java
  • src/test/java/de/caritas/cob/userservice/api/config/observability/ReplicaSafetyInventoryContractTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/DpaForwardEmailServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/DpaSigningMailDesignSystemTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteFrameMailRendererFixture.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteFrameMailRendererTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/onboarding/TenantAdminOnboardingServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/OrisoEmailBrandTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/OrisoEmailRendererTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/WelcomeEmailServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/sender/PlatformOperatorOrganisationClientTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/sender/SenderOrganisationFixture.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/sender/SenderOrganisationResolverTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/sender/SenderOrganisationTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/sender/TraegerOrganisationClientTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/DefaultDpaSigningEmailDispatchServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/DpaSignedNoticeFooterTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/DpaSignedNoticeServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/SupervisorAddedEmailNotificationServiceTest.java

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shazia-k
shazia-k previously approved these changes Sep 23, 2026
View reviewed changes
@Storypapst
Storypapst dismissed shazia-k’s stale review September 23, 2026 09:22

The merge-base changed after approval.

shazia-k
shazia-k previously approved these changes Sep 23, 2026
View reviewed changes
@Storypapst
Storypapst dismissed shazia-k’s stale review September 23, 2026 09:30

The merge-base changed after approval.

shazia-k
shazia-k previously approved these changes Sep 23, 2026
View reviewed changes
@Storypapst
Storypapst dismissed shazia-k’s stale review September 23, 2026 09:35

The merge-base changed after approval.

Hassan9215
Hassan9215 approved these changes Sep 23, 2026
View reviewed changes
@Hassan9215
Hassan9215 merged commit cf66ad4 into dev Sep 23, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hassan9215
Hassan9215 deleted the feat/mail-footer-traeger-legal-name-contact branch September 23, 2026 09:38
This was referenced Sep 23, 2026
EPIC: transactional e-mails — one design system across every sending path OpenResilienceInitiative/ORISO-Frontend#828
Open
ADR: tenant branding contract for e-mails — one mechanism instead of three OpenResilienceInitiative/ORISO-Frontend#862
Closed
@Hassan9215 Hassan9215 mentioned this pull request Sep 23, 2026
Release UserService v2.0.8 #1249
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hassan9215 Hassan9215 Hassan9215 approved these changes
@shazia-k shazia-k shazia-k left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Storypapst @Hassan9215 @shazia-k
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.