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(emails): contract-documents wording, copy-link fallback and Träger subject for the signing mail by Storypapst · Pull Request #1544 · OpenResilienceInitiative/ORISO-Frontend

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

What happened

The contract signing mail ("Vertragsunterlagen") is moving onto the ORISO e-mail design system (see the UserService PR). The kit page avv-unterschrift already existed, but it lacked two things the sent mail needs:

  1. A copy-link line under the button. The signing link is single-use and cannot be found again anywhere else. If a mail client breaks the button, the signatory had nothing to click. The mail now spells the link out under the button: "Falls der Button nicht funktioniert, kopieren Sie diesen Link in Ihren Browser:" (du and en variants too).

  2. A subject that names the Träger. "Vertragsunterlagen für {{tenantName}}" (en: "Contract documents for {{tenantName}}"). This is the subject the mail has used so far; the kit subject "Auftragsverarbeitungsvertrag zur Unterschrift" did not say which organisation it was for.

  3. Frank's wording decisions of 2026-09-23 (second commit):

    • The mail never says "AVV" or "Auftragsverarbeitungsvertrag", always "Vertragsunterlagen" (en: "contract documents"). Preheader, headline, first paragraph and the blocked-counselling line now read, for example, "Die Vertragsunterlagen liegen zur Unterschrift bereit" and "Ohne unterzeichnete Vertragsunterlagen bleibt die Beratung für diesen Träger gesperrt." The catalogue label follows ("Vertragsunterlagen zur Unterschrift").
    • The line "X ist ein Angebot von Y" names the platform and its operator, never the Träger. UserService puts the Träger name into platformName to brand the header, so the legal footer now uses its own placeholder {{offeringName}}, which no sender overlays. Only the legal footer changes, so Keycloak, MailService and all other templates stay byte-identical.
    • The fine print "zwischen {{orgName}} und …" needs the dative, so it uses {{tenantNameDative}}. A sender without a Träger name writes "Ihrer Organisation" there, while the subject keeps "für Ihre Organisation".

What changed

  • EmailAction.fallbackHint (optional). When set, emailCallToAction renders the button plus the spelled-out link. Opt-in per mail, so no other mail changes. Only avv-unterschrift sets it.
  • New token emailType.copyLink (13/20), new atoms emailCopyLink / emailCopyLinkStyle, same look as the copy-link line of the free-text invite frame in UserService.
  • Regenerated dist/ for avv-unterschrift only (plain, thymeleaf, freemarker) plus catalogue.json and dist/README.md (two new placeholders in the avv row). npm run emails:keycloak and emails:mailservice produce no diff.
  • EMAIL_SAMPLE_VALUES gains offeringName and tenantNameDative so Storybook fills them.

How to test it quickly

Open Storybook → Emails → EmailAvvUnterschrift. The headline reads "Die Vertragsunterlagen liegen zur Unterschrift bereit"; the word "AVV" appears nowhere. The footer line reads "Online-Beratung ist ein Angebot von …". Under the red "Vertrag öffnen" button there is now a small grey line "Falls der Button nicht funktioniert, …" followed by the link, underlined, wrapping on narrow screens. Compare with EmailEinladungTraeger, which must look exactly as before (no extra line).

  • npx vitest run --project unit src/emails/ → 1217 passed. avvUnterschrift.test.ts has 18 tests: the first commit's 7 (4 failed / 3 passed before it), and 11 for the wording decisions, all 11 red before the second commit (for example expected 'Der AVV für {{tenantName}} liegt bere…' not to match /AVV|…/).
  • eslint on the changed files and tsc: clean.

What else I found

  • ORISO-UserService ships templates that already drift from this kit's dist/plain (for example the ;; style fix never reached UserService, and catalogue.json differs for passwort-zuruecksetzen and einladung-freitext). The UserService PR copies only the six avv-unterschrift files and its catalogue entry, byte-identical to this branch. A full re-sync is a separate job.
  • Merges cleanly with feat(emails): add einladung-freitext, the ORISO frame around an opera… #1517 (feat/email-kit-einladung-freitext), checked with git merge-tree. feat(emails): add einladung-freitext, the ORISO frame around an opera… #1517 still needs the same footer fix: its invite footer says {{platformName}} ist ein Angebot von {{orgName}}., and UserService now ships that frame with {{offeringName}}. Syncing feat(emails): add einladung-freitext, the ORISO frame around an opera… #1517 as it is would bring the Träger name back into the footer.
  • The notification settings page still says "zum Beispiel ein Auftragsverarbeitungsvertrag zur Unterschrift" (src/resources/i18n/de/common.json and de@informal, key …alwaysSent.legal; en "a data processing agreement to sign"). Not mail copy, left for a follow-up.
  • The MailService build maps both platformName and orgName to ${tenant_name} (buildMailServiceTemplates.mts), so its footers read "<Träger> ist ein Angebot von <Träger>". Keycloak uses the platform-level orisoPlatformName, which is correct. Not changed here.

Merge order

Merge this before or together with the UserService PR (feat/dpa-signing-mail-design-system). UserService does not read this repo at build time, so neither blocks the other technically, but the kit is the source of what UserService ships.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Email call-to-action buttons can now include a copyable fallback link for improved access.
    • Contract-document emails now display signing links directly and clarify that counselling remains unavailable until documents are signed.
  • Content Updates

    • Updated German and English legal email wording to refer to contract documents.
    • Improved localized branding, organisation naming, and legal footer details.
    • Updated the email label to “Contract documents for signing” and refined related terminology.

Sorry, something went wrong.

Uh oh!

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

All reactions
Storypapst and others added 2 commits September 23, 2026 01:18
@Storypapst @claude
feat(emails): copy-link fallback and Träger subject for the AVV signi…
4b2301f
…ng mail

The DPA signing link is single-use and cannot be found again anywhere else,
so a mail client that breaks the button left the signatory with nothing to
click. `avv-unterschrift` now spells the link out under the button, with a
lead-in per tone ("Falls der Button nicht funktioniert, ..."). The text part
already prints the URL on its own line and stays unchanged.

The subject now names the Träger ("Vertragsunterlagen für {{tenantName}}",
en: "Contract documents for {{tenantName}}"), the line the mail used before
it moved onto the design system.

The fallback is opt-in per action (`EmailAction.fallbackHint`), so no other
mail changes. UserService ships the plain-dialect files byte-identically.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst @claude
fix(emails): say "Vertragsunterlagen" and name the platform in the co…
76c5e15
…ntract mail footer

Decisions by Frank (2026-09-23) for the Träger legal-flow mail
`avv-unterschrift`:

- Mail copy never says "AVV" or "Auftragsverarbeitungsvertrag", always
  "Vertragsunterlagen" (en: "contract documents"): preheader, headline,
  body and the blocked-counselling line ("Ohne unterzeichnete
  Vertragsunterlagen bleibt die Beratung für diesen Träger gesperrt.").
  The catalogue label follows.
- The offered-by line describes the platform, never the Träger. UserService
  brands the header of this mail with the Träger by overlaying
  `platformName`, so the legal footer now takes `{{offeringName}}`, a value
  no sender overlays. Other footers are unchanged, so Keycloak, MailService
  and the other plain templates are byte-identical.
- The fine print "zwischen {{orgName}} und …" takes the dative, so it uses
  `{{tenantNameDative}}`: a sender without a Träger name writes "Ihrer
  Organisation" there while the subject keeps "für Ihre Organisation".

Regenerated dist (plain, thymeleaf, freemarker for avv-unterschrift,
catalogue.json, README). Keycloak and MailService output unchanged.

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

coderabbitai Bot commented Sep 23, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Warning

Review limit reached

Next included review available in 2 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-Frontend/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: d9d9db67-3b63-45f3-a271-524374c7b380

📥 Commits

Reviewing files that changed from the base of the PR and between 76c5e15 and f14c416.

⛔ Files ignored due to path filters (20)
  • src/emails/dist/README.md is excluded by !**/dist/** and included by src/**, **/*.md
  • src/emails/dist/catalogue.json is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-du/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-du/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-sie/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-sie/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/en/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/en/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-du/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-du/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-sie/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-sie/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/en/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/en/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-du/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-du/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-sie/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-sie/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/en/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/en/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
📒 Files selected for processing (5)
  • src/emails/avvUnterschrift.test.ts
  • src/emails/content/de-du.ts
  • src/emails/content/de-sie.ts
  • src/emails/content/en.ts
  • src/emails/index.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Team

Run ID: ce902ef2-17d2-4da1-9be0-c930cf9e6e54

📥 Commits

Reviewing files that changed from the base of the PR and between 1803fd9 and 76c5e15.

⛔ Files ignored due to path filters (20)
  • src/emails/dist/README.md is excluded by !**/dist/** and included by src/**, **/*.md
  • src/emails/dist/catalogue.json is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-du/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-du/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-sie/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/de-sie/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/en/avv-unterschrift.html.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/freemarker/en/avv-unterschrift.txt.ftl is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-du/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-du/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-sie/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/de-sie/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/en/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/plain/en/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-du/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-du/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-sie/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/de-sie/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/en/avv-unterschrift.html is excluded by !**/dist/** and included by src/**
  • src/emails/dist/thymeleaf/en/avv-unterschrift.txt is excluded by !**/dist/** and included by src/**
📒 Files selected for processing (10)
  • src/emails/avvUnterschrift.test.ts
  • src/emails/content/de-du.ts
  • src/emails/content/de-sie.ts
  • src/emails/content/emailCatalogue.ts
  • src/emails/content/en.ts
  • src/emails/index.ts
  • src/emails/kit/emailAtoms.ts
  • src/emails/kit/emailMolecules.ts
  • src/emails/kit/emailTemplate.ts
  • src/emails/kit/emailTokens.ts

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: Storybook component tests (interactions + a11y)
  • GitHub Check: lint, type-check, test, build and Docker validation
  • GitHub Check: Enquiry team panel browser regression
  • GitHub Check: Storybook Docker validation
🧰 Additional context used
📓 Path-based instructions (1)
Check behavior against the surrounding ORISO flow, not only types.

⚙️ CodeRabbit configuration file

Files:

  • src/emails/kit/emailTokens.ts
  • src/emails/content/de-du.ts
  • src/emails/kit/emailMolecules.ts
  • src/emails/index.ts
  • src/emails/kit/emailTemplate.ts
  • src/emails/avvUnterschrift.test.ts
  • src/emails/content/de-sie.ts
  • src/emails/content/en.ts
  • src/emails/kit/emailAtoms.ts
  • src/emails/content/emailCatalogue.ts
🔇 Additional comments (1)
src/emails/index.ts (1)

143-145: 🗄️ Data Integrity & Integration

The UserService token contract is unavailable.

The frontend establishes that avv-unterschrift uses offeringName and, in German, tenantNameDative. It also states that UserService sends this mail. However, the UserService producer map is not present, so the repository cannot establish whether either value is omitted or whether recipients would see unresolved placeholders.


📝 Walkthrough

Walkthrough

The email system now supports copied signing URLs below CTA buttons. Contract-document templates replace AVV-specific wording, use separate offering and tenant-name placeholders, and include expanded localized tests.

Changes

Contract email messaging

Layer / File(s) Summary
CTA fallback-link rendering
src/emails/kit/emailTemplate.ts, src/emails/kit/emailTokens.ts, src/emails/kit/emailAtoms.ts, src/emails/kit/emailMolecules.ts
EmailAction accepts an optional fallbackHint. CTA rendering adds an escaped, styled URL fallback when the hint is present.
Localized contract-document content
src/emails/content/de-*.ts, src/emails/content/en.ts, src/emails/content/emailCatalogue.ts, src/emails/index.ts
Localized emails use contract-document wording, fallback-link instructions, offeringName, and tenantNameDative. The catalogue label and sample values were updated.
Contract-email behavior validation
src/emails/avvUnterschrift.test.ts
Tests cover localized copy, signing links, subjects, terminology, counselling status, platform attribution, and dative tenant naming.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant EmailTemplate
  participant emailCallToAction
  participant emailCopyLinkFallback
  EmailTemplate->>emailCallToAction: pass CTA href, label, and fallbackHint
  emailCallToAction->>emailCopyLinkFallback: render fallback URL
  emailCopyLinkFallback-->>EmailTemplate: return escaped link block
Loading

Merge Risk: ⚪ Minimal · up to 76c5e

The contract-document email updates are consistently represented across locales and generated formats. The downstream services remain responsible for supplying their documented template values.

🚥 Pre-merge checks | ✅ 7
✅ Passed checks (7 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses a concise conventional format, names the emails area, and summarizes the main wording and copy-link changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Validation Evidence ✅ Passed The PR changes product email behavior and includes relevant automated tests in src/emails/avvUnterschrift.test.ts. The tests cover the copy-link fallback, tenant-specific subject, wording, footer at…
Shared Ui Architecture ✅ Passed The PR uses the shared email kit. It adds the copy-link token in emailType, shared atoms in emailAtoms.ts, and shared CTA fallback rendering in emailMolecules.ts. EmailAction.fallbackHint prov…
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 23, 2026
View reviewed changes
@Storypapst @claude
fix(emails): name the platform operator, not the sender, in the contr…
f14c416
…act mail's offered-by line

Frank, 2026-09-23: in "X ist ein Angebot von Y", Y is always the platform
operator, never the Träger. UserService lets a Träger overlay the sender
block ({{orgName}}), so the legal footer now takes its own
{{operatorName}}, which no sender overlays. Only avv-unterschrift uses the
legal footer; every other template, the Keycloak theme and the
MailService build are unchanged. Plain output is byte-identical to
UserService feat/mail-footer-org-from-tenant @ 8ca0d787.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst
Storypapst dismissed coderabbitai[bot]’s stale review via f14c416 September 23, 2026 02:12
@Storypapst Storypapst mentioned this pull request Sep 23, 2026
fix(emails): omit the Keycloak logo cell when no first-party logo is … #1518
Merged
@Storypapst

Storypapst commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up by my coding agent (Claude). CodeRabbit approved 76c5e156 with no findings. One change since then, from Frank's decision of 2026-09-23:

  • "X ist ein Angebot von Y" always names the platform operator as Y, never the Träger (f14c416f). UserService lets a Träger overlay the sender block ({{orgName}}). So the legal footer, which only avv-unterschrift uses, now says {{offeringName}} ist ein Angebot von {{operatorName}}. (en: … is a service provided by {{operatorName}}.). UserService fills {{operatorName}} from the Admin master data ("Betreiber") and no sender overlays it. The "zwischen {{orgName}} und {{tenantNameDative}}" fine print stays as it is. Red first: the updated offered-by test failed in all three tones before the content change.

What was verified:

  • dist/plain/*/avv-unterschrift.* is byte-identical to UserService feat/mail-footer-org-from-tenant @ 8ca0d787 (fix(i18n): drop German and English handover and Erstantwort fallbacks #1239, which contains fix(i18n): drop English and German composer and message fallbacks #1238).
  • Only the avv-unterschrift files, catalogue.json and dist/README.md changed. The Keycloak theme and the MailService build are unchanged.
  • npx vitest run --project unit src/emails: 1217 passed. eslint --max-warnings=0 src/emails and tsc --noEmit: clean. Storybook EmailAvvUnterschrift.stories.tsx: 9 of 9 passed.

Merge note: this PR conflicts with #1517 in emailCatalogue.ts, index.ts and dist/README.md, and with #1518 in six generated avv-unterschrift.html* files. The second PR of each pair needs dev merged in. Keep both sides of the source conflicts and regenerate dist with emails:build, emails:keycloak, emails:mailservice and prettier. That was checked locally, see #1517.

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

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

@Storypapst Storypapst mentioned this pull request Sep 23, 2026
feat(emails): add einladung-freitext, the ORISO frame around an opera… #1517
Merged
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '=== PR metadata ==='
gh pr view 1544 --repo OpenResilienceInitiative/ORISO-Frontend --json number,title,headRefName,baseRefName,commits,files --jq '{number,title,headRefName,baseRefName, commits: [.commits[] | {oid,messageHeadline}], files: [.files[] | {path,additions,deletions}]}'

echo '=== Changed file summary ==='
git diff --stat origin/dev...HEAD

echo '=== Source diff excluding generated distribution files ==='
git diff --find-renames --unified=60 origin/dev...HEAD -- \
  'src/emails/content/de-du.ts' \
  'src/emails/content/de-sie.ts' \
  'src/emails/content/en.ts' \
  'src/emails/index.ts' \
  'src/emails/avvUnterschrift.test.ts' \
  'src/emails/kit/emailAtoms.ts' \
  'src/emails/kit/emailMolecules.ts' \
  'src/emails/kit/emailTemplate.ts' \
  'src/emails/kit/emailTokens.ts' \
  'src/emails/content/emailCatalogue.ts'

echo '=== Email module outline ==='
ast-grep outline src/emails/kit/emailAtoms.ts --items all
ast-grep outline src/emails/kit/emailMolecules.ts --items all
ast-grep outline src/emails/kit/emailTemplate.ts --items all
ast-grep outline src/emails/avvUnterschrift.test.ts --items all

echo '=== operatorName, offeringName, and footer token contexts ==='
rg -n -C 5 --glob '*.{ts,tsx,json,md,html,ftl}' \
  '(operatorName|offeringName|tenantNameDative|legalFooter|legalAssurance)' \
  src/emails dist | head -n 500

echo '=== avv-unterschrift generated output file list ==='
fd -a 'avv-unterschrift' dist | sort

Length of output: 5184


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '=== Current revision ==='
git rev-parse HEAD
git status --short

echo '=== Final follow-up commit ==='
git show --find-renames --format=fuller --stat f14c416f
git show --find-renames --unified=50 --format= f14c416f -- \
  src/emails/content/de-du.ts \
  src/emails/content/de-sie.ts \
  src/emails/content/en.ts \
  src/emails/index.ts \
  src/emails/avvUnterschrift.test.ts

echo '=== Complete PR diff from GitHub ==='
gh pr diff 1544 --repo OpenResilienceInitiative/ORISO-Frontend --color=never -- \
  src/emails/avvUnterschrift.test.ts \
  src/emails/content/de-du.ts \
  src/emails/content/de-sie.ts \
  src/emails/content/en.ts \
  src/emails/index.ts \
  src/emails/kit/emailAtoms.ts \
  src/emails/kit/emailMolecules.ts \
  src/emails/kit/emailTemplate.ts \
  src/emails/kit/emailTokens.ts \
  src/emails/content/emailCatalogue.ts

echo '=== Relevant implementation and tests ==='
rg -n -A100 -B15 \
  'function emailCopyLinkStyle|function emailCopyLink\b|function emailCallToAction|function emailCopyLinkFallback|interface EmailAction|avvUnterschrift|legalFooter|legalAssurance' \
  src/emails/kit/emailAtoms.ts \
  src/emails/kit/emailMolecules.ts \
  src/emails/kit/emailTemplate.ts \
  src/emails/content/de-du.ts \
  src/emails/content/de-sie.ts \
  src/emails/content/en.ts \
  src/emails/index.ts \
  src/emails/avvUnterschrift.test.ts

echo '=== Placeholder availability and render call sites ==='
rg -n -C 4 --glob '*.{ts,tsx}' \
  '(operatorName|offeringName|tenantNameDative|emailCallToAction\s*\(|emailCopyLink\s*\(|escapeHtml)' \
  src/emails

echo '=== Generated avv output footer and fallback contexts ==='
rg -n -C 2 --glob 'avv-unterschrift.*' \
  '(operatorName|offeringName|tenantNameDative|copy|kopier|provided by|Angebot von|Vertragsunterlagen|contract documents)' \
  src/emails/dist | head -n 500

Length of output: 25282


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '=== Initial PR parent and complete local PR diff stats ==='
git rev-parse 4b2301f2^
git diff --stat 4b2301f2^..HEAD
git diff --check 4b2301f2^..HEAD
git diff --find-renames --unified=30 4b2301f2^..HEAD -- \
  src/emails/kit/emailAtoms.ts \
  src/emails/kit/emailMolecules.ts \
  src/emails/kit/emailTemplate.ts \
  src/emails/kit/emailTokens.ts \
  src/emails/avvUnterschrift.test.ts \
  src/emails/content/de-du.ts \
  src/emails/content/de-sie.ts \
  src/emails/content/en.ts \
  src/emails/index.ts \
  src/emails/content/emailCatalogue.ts

echo '=== emailAtoms ==='
nl -ba src/emails/kit/emailAtoms.ts | sed -n '1,260p'

echo '=== emailMolecules ==='
nl -ba src/emails/kit/emailMolecules.ts | sed -n '1,300p'

echo '=== emailTemplate types and rendering ==='
nl -ba src/emails/kit/emailTemplate.ts | sed -n '1,360p'

echo '=== avv-unterschrift declarations, tests, and sample validation ==='
rg -n -A55 -B12 \
  "['\"]avv-unterschrift['\"]|describe\(['\"]avv-unterschrift|EMAIL_SAMPLE_VALUES|listEmailPlaceholders|fillEmailPlaceholders" \
  src/emails/content/de-du.ts \
  src/emails/content/de-sie.ts \
  src/emails/content/en.ts \
  src/emails/avvUnterschrift.test.ts \
  src/emails/index.ts \
  src/emails/*.test.ts || true

echo '=== Updated placeholders in each generated avv-unterschrift format ==='
for f in $(fd -a 'avv-unterschrift.*' src/emails/dist | sort); do
  echo "--- $f"
  grep -oE '\{\{(offeringName|operatorName|orgName|tenantNameDative)\}\}' "$f" | sort -u | tr '\n' ' '
  echo
done

echo '=== Generated fallback-link href contexts ==='
rg -n -C 2 --glob 'avv-unterschrift.*' \
  '(dpaUrl|copy the link|Link kopieren|Link zu kopieren|Wenn der Button nicht funktioniert)' \
  src/emails/dist || true

Length of output: 114973


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '=== Generated avv-unterschrift files ==='
find src/emails/dist -type f -name 'avv-unterschrift.*' -print | sort

echo '=== Generated operator attribution and copy-link values ==='
find src/emails/dist -type f -name 'avv-unterschrift.*' -print0 |
  while IFS= read -r -d '' f; do
    echo "--- $f"
    grep -nE -m 3 '(operatorName|offeringName|dpaUrl|dpa_url|dpa-url|Angebot von|service provided by|button.*work|Button.*funktioniert)' "$f" || true
  done

echo '=== Check placeholder syntax by distribution ==='
for dialect in plain freemarker thymeleaf; do
  echo "--- $dialect"
  find "src/emails/dist/$dialect" -type f -name 'avv-unterschrift.*' -print0 |
    xargs -0 grep -hE -o '(\{\{(offeringName|operatorName)\}\}|\$\{(offeringName|operatorName)\}|__\$(offeringName|operatorName)__|<span[^>]*(offeringName|operatorName))' |
    sort -u || true
done

echo '=== Distribution manifest entries ==='
grep -n -C 3 'avv-unterschrift' src/emails/dist/catalogue.json

Length of output: 67948


@Storypapst Review complete. I found no issues.

The legal footer now consistently identifies the platform with {{offeringName}} and the operator with {{operatorName}}. The Träger-controlled {{orgName}} remains limited to the sender block and contract fine print.

I also verified the copy-link fallback. It escapes the URL and hint text. All plain, Freemarker, and Thymeleaf avv-unterschrift outputs contain the updated placeholders and fallback link.


✏️ Learnings added
Learnt from: Storypapst
URL: https://github.com/OpenResilienceInitiative/ORISO-Frontend/pull/1544

Timestamp: 2026-09-23T02:21:10.521Z
Learning: For the `avv-unterschrift` email, the legal footer statement “X ist ein Angebot von Y” must use `{{offeringName}}` for X and `{{operatorName}}` for Y. `{{operatorName}}` comes from Admin master data (“Betreiber”) and must not be replaced by a Träger sender overlay. The Träger-controlled `{{orgName}}` remains valid in the sender block and in the contractual fine print with `{{tenantNameDative}}`.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

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

shazia-k
shazia-k approved these changes Sep 23, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 3c72186 into dev Sep 23, 2026
9 checks passed

Uh oh!

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

@shazia-k
shazia-k deleted the feat/email-kit-avv-copy-link-and-subject branch September 23, 2026 05:30
This was referenced Sep 23, 2026
EPIC: transactional e-mails — one design system across every sending path #828
Open
DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system OpenResilienceInitiative/ORISO-UserService#946
Closed
@Hassan9215 Hassan9215 mentioned this pull request Sep 23, 2026
Release Frontend v2.0.8 #1557
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@coderabbitai coderabbitai[bot] coderabbitai[bot] 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.

2 participants

@Storypapst @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.