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 — Every mail in the Träger's design: implement ADR-026 decisions 1, 2 and 5 · Issue #1252 · OpenResilienceInitiative/ORISO-UserService

Every mail in the Träger's design: implement ADR-026 decisions 1, 2 and 5 #1252

New issue
Copy link
New issue
Copy link
Closed
0 / 10 of 1 issue completed
Closed
Every mail in the Träger's design: implement ADR-026 decisions 1, 2 and 5#1252
0 / 10 of 1 issue completed
Copy link

Description

@Storypapst
Storypapst
opened on Sep 24, 2026
Issue body actions

What happens

Mails look different depending on which part of the platform sends them:

  • Invites and the contract mails carry the Träger's logo, name and colour.
  • The sign-in link, password reset, welcome mail and the supervisor mails carry the generic name "Online-Beratung", no logo, and a colour from a different setting (for supervisor mails even a hard-coded blue).
  • A Träger that changes its logo or colour sees the change in invites only up to 24 hours later.

ADR-026 (accepted) already decided how this should work. This issue implements its decisions 1, 2 and 5.

Acceptance criteria

  • Every mail sent on behalf of a user of a Träger uses that Träger's name, logo and design colour; platform-level mails use the platform's own name and logo. One platform-name setting, not two.
  • The hard-coded fallback blue #0f3b8f is gone; there is one colour source (theming.primaryColor).
  • A changed logo/colour shows up in the next mail within a minute, not 24 hours.
  • Preview screenshots of sign-in link, password reset, welcome and supervisor mail for two tenants in the PR.

Current delivery status — 30 September 2026

Development: Tenant General and onboarding already provide organisation name, contact email and phone; tenant image settings already provide Logo and, outside single-domain mode, Verbandslogo. TenantService persists them and serves tenant-pinned public logo bytes. The shared notification composer is merged through #1304, including #1320.

Still open: Branding #1306 is now normally integrated and published with the fresh-tenant and special-address corrections; local gates, independent source review and current-head CI passed; human re-review remains. The shared corrections are integrated in the contact branch; complete human review and rollout. The shared notification path now reads fresh tenant data consistently; two regressions proved the stale-brand/subdomain correction. The Admin preview currently checks a weaker logo URL rule than the sender; align its displayed outcome under existing preview #914. Do not add a duplicate contact editor.

Acceptance: On the actual Dev version, configure two tenants through the existing fields and reload. Confirm permitted roles, accurate previews, anonymously reachable tenant-pinned images, and received HTML/text with the correct logo/name/contact footer. A platform mail uses configured platform identity; no fresh-install ORISO or URL fallback. Contact is presently footer-only; the optional Reply-To question affects only new reply routing.

For developers — researched source boundaries:

Research pins: Admin8782d3b7, TenantServiceeea5db18, UserServicef7e19c9d; branding replacement35 is published,433 local tests passed and current-head CI green; human changes-requested remains.
Admin TraegerSenderFields: legalName/contactEmail/contactPhone in /admin/tenants/{id}/general and onboarding. Existing access checks retained.
Tenant LogoAndFavicon: theming.logo/associationLogo. Header selects tenant logo first, association logo second; one image.
GET /service/tenant/public/branding/{tenantId}/{asset}: verify actual bytes/MIME/404/isolation on deployedDev.
Platform logo: existing fresh platformTenant0 theming→first-party ID0 asset; validated explicit EMAIL_BRANDING_LOGO_URL is last optional image candidate. No separate mail-only upload needed. Transport From is SMTP-owned; public contact is footer-owned.
Preview BrandedEmailPreview/emailBrandingHint must show actual resolver outcome, not merely accept an HTTP(S) prefix.
No running Dev editor, received logo/contact mail, final rollout or human approval was inferred from source research.

Contact1301 now explicitly includes the shared branding correction and is normally published after local gates and independent source review. New CI, human re-review and the special-address URL correction remain before final acceptance.
For developers — latest combined branding proof:

US1306 published607 (35+b9),168tests/5freshreports+quality/341/sourcePASS. Exact607 CI13SUCCESS; humanreview separate. Contact1301 now normally includes607 at publishede728, noextra policy orresourcepin change.

For developers — last contact-source publication:

Contact1301e728 = fa7+607, includes reviewedURLb9;148units+3actualH2auth/quality/341/sourcehashPASS at identicalfinal/testedtree. No originalcontact/SMTP/resources changed; oldfa7CI is historical. Exacte728 CI13SUCCESS; humanreview/Agency320+Tenant280+Admin1076 rollout and explicitexistingtenantmode/realreceivedmail remain.
Earlier delivery snapshot — superseded by the current section above

Current state — 2026-09-28

The implementation is proposed in PR #1306 against dev. Sign-in links, password reset, welcome, supervisor/team-change, invitations, DPA and the platform test mail now use the same tenant-aware branding resolver. It reads fresh tenant data through a ten-second maximum cache, takes the colour from theming.primaryColor, keeps logos on the configured application origin and reports missing required URLs instead of silently replacing them.

Eight screenshots in the PR show the four requested occasions for two synthetic Träger with different names, logos and colours. The Java 21 package completed with 5,120 tests and no failures at be1e80fa8 after merging #1294 at 8aa926023, including mixed-logo, TTL, loopback, trailing-dot and numeric URL alias cases. The Python CI contracts passed with 101 tests at the earlier source head; Spotless and diff checks passed locally. All 11 checks passed at the prior head 9c0874bca; all 11 named workflow checks were green at 6e6edbc08; all 11 named checks were green at prior head be1e80fa8. Branding PR #1306 now includes #1294 through 2596fe56d and merged the 2026-09-28 dev SMTP provider #1273 at prior head 4c0222aca. The two conflicts were in tests: the merged provider contract replaces old ConsultingTypeService SMTP-settings tests, while pending-tenant branding and required legal footer URLs remain asserted. At prior head 261427425, the MagicLink token-order regression was red before the fix and green afterward. Current head 7d6c4047a integrates #1294 dcac4527c without conflict: deployed profiles reject RFC1918 private IPv4 and IPv4 link-local mail origins. The link-local regression was red before the fix and green afterward. Java 21: 22 URL-validator and 40 MagicLink tests plus a 5,115-test full package passed without failure/error/skip; Spotless and diff check passed. All 11 named checks passed at prior head 7d6c4047a. At current head 13496f81c, the MagicLink branding-failure test additionally verifies the tenant URL and ID; 40 MagicLink tests, Spotless and diff check passed locally with Java 21. All 11 named GitHub workflow checks passed at current head 13496f81c, including required PreDev CI; human re-review remains pending. This is source-branch evidence; no Dev mail receipt is proven. The PR includes the still-open strict-URL PR #1294; merge #1294 first, refresh #1306 against dev, then obtain human approval and Dev receipts.

Fresh-install brand gate — 2026-09-29

The common UserService layout still had a literal ORISO fallback when a tenant name was unavailable. UserService #1316 removes it and fails with a named EMAIL_BRANDING_NAME setup error if no tenant or configured platform name exists; 20 focused local tests and twelve current-head CI checks pass, with human review and merge open. The chart also defaulted this value to ORISO. Companion Helm #391 requires an explicit value on a generic installation while preserving Dev and Pre-Dev via explicit ORISO overlay values. At head aaafb89e, local render/lint/package checks and current-head GitHub CI pass; human review and merge are open. Neither PR proves deployment or received branding.

For developers — implementation and branch details:

Branch: feat/1252-unified-mail-branding
Head: 13496f81c (integrates #1294 dcac4527c; MagicLink assertion follow-up)
Base: dev; includes #1294 until it merges
Resolver: EmailBrandingResolver (fresh 10 s / max 10 s / 1000-entry cache)
Adapter: OrisoEmailBrand -> catalogue placeholders
Strict existing-tenant lookup; pending-tenant 404 platform context only for invite/DPA
Preview test: EmailBrandingPreviewExportTest, four occasions x two synthetic tenants
Local verification: 22 URL-validator tests, 40 MagicLink tests and 5,115 full-package Java 21 tests, Spotless and diff check at 7820e5607; 5,113 full-package tests at prior head 261427425; 57 focused and 5,112 full-suite tests at 4c0222aca; 31 focused password-reset/welcome tests, Spotless and diff check at 67d0c1a5c; 134 auth/branding/SMTP/URL tests at d1f2c1c4b; 5,125 Java 21 full-suite tests plus 80 focused branding/welcome/system-notification tests at ef174c24d; 77 URL/branding tests at prior merge head a0d43371f; 5,120 Java 21 package tests at prior head be1e80fa8; 101 Python CI contracts at an earlier source head
Still open: human approval, dependency merge, merge, deployment, real tenant/mail receipts. The legacy multi-domain mode may mix global login/settings and tenant footer origins; accepted ADR-011 and the current Helm default use one domain, so this is not a demonstrated Dev-routing defect

Part of OpenResilienceInitiative/ORISO-Frontend#828. Implements OpenResilienceInitiative/ORISO-Frontend#862 decisions 1, 2, 5.

Current preview completion — 1 October 2026

The preview now uses the branding selected by the actual mail renderer. Both the backend and the existing Admin panel are published; the panel no longer guesses from cached tenant settings.

Fixed in source: UserService #1332 returns the actual organisation, colours and image/text-wordmark outcome. Admin #1114 displays that result and handles older responses without inventing a logo warning.

Still open: current-head review corrections; backend-first rollout; actual public image loading, tenant isolation and received logo/contact mail acceptance. These PRs do not close the ticket before Dev acceptance.

Current product clarification: an automatic review asks to retain a valid light decorative accent and use a darker button. Accepted ADR-026 explicitly rejects light colours for the full mail, so the agent must not silently adopt the conflicting suggestion. Frank has a concrete choice pending; this does not block the published cache/contact correction. Both preview PRs remain published; Dev acceptance is still open.

How to test quickly: reload the existing mail preview after saving branding. The organisation must match the rendered mail. A server-selected image must not show a cached-settings wordmark warning; a server-selected text wordmark must show the matching hint. Older responses must still render without guessing.

For developers — published immutable source and local proof:

Backend1332 current7221929/tree88919 contains normalreviewedcommon5fcd;105freshcombinedtests/5suites/packageexplicitbothskip/Spotless/independentPASS. Prior26cff131tests are originalpreviewproof; newheadCIrunning at00:23UTC.
Admin1114:4782f8e6, treefe1e6e8e.10files/+198/-200. Genuine RED13/3 to focusedGREEN74/7files;12 actual isolated Chromium stories, including3connected IMAGE/TEXT/legacy plays. Node22.12.0 source lint/style/format/types/build/postbuild/diff PASS. Independent frozen source/gate/hash review PASS.
Narrow Admin validation exception is explicitly recorded; no new full Admin suite is claimed. Preview iframe sandbox and actual HTML preserved.
Deploy compatible backend1332 before Admin1114. The existing source score1252 remains9/10 while the colourpolicy clarification/review is recorded; official Readiness and issue state are unchanged. No Dev/image-byte/received-mail claim.

Current review corrections — 1 October 2026

A slow earlier branding lookup could replace a retained result from a later lookup. The cache also started its short retention before the server answered. The coding agent reproduced both problems, corrected this two-file scope and published the fix in this PR.

Fixed and locally verified: The older lookup no longer replaces the newer retained result. Retention begins after the lookup completes. The cache remains short and bounded; there is no scan of users or tenants. Existing mail resources and SMTP configuration are unchanged.

Current CI: All 13 current-head checks are green at the 1 October 00:23 UTC snapshot.

Still open: Human re-review, named merge authority, compatible deployment and received mail remain separate. A new review suggestion to preserve light decorative colours conflicts with accepted ADR-026; that behaviour awaits Frank's concrete choice and is not changed by this fix. Contact1301 and preview1332 now contain this same reviewed source and are normally published after their own combined gates. Their new-head CI is separate.

For developers — immutable source and reproduction:

Published1306: 5fcd03f86e017a6722dbf31f9e75ad7c7c04bb30
Tree835e0392733d584b880c5ddcc9e8e207fde8ecfb; parent607fe33a; normal push.
2 changed files: EmailBrandingResolver.java / EmailBrandingResolverTest.java.
Untouched-source genuine RED:46 tests,2 expected failures,0 errors/skips.
Final focused GREEN:210 tests in8 suites,0 failures/errors/skips; Java21.
Package and Spotless exit0; independent frozen Source/Gate review PASS.
342 mail-resource files byte-identical to parent. No colour/URL/SMTP/UI change.
./mvnw -q -Dtest=EmailBrandingResolverTest,OrisoEmailBrandTest,EmailColorsTest,InviteFrameMailRendererTest,BrandedEmailLayoutRendererTest,PasswordResetServiceTest,GlobalSmtpTestEmailServiceTest,SupervisorAddedEmailNotificationServiceTest test
./mvnw -q package -DskipTests
./mvnw -q spotless:check
The package POM owns skip.unit-tests, so -DskipTests alone did not skip its units.
No additional full-suite count is certified. Initial cwd/format-blocked attempts
remain archived separately and are not counted as successful gates.
Sequence orders retained lookup starts, not database revisions. Capacity eviction
removes per-key ordering evidence; there is no permanent watermark or global I/O lock.

How to test quickly

  • Run the focused tests: both concurrent-lookup and completion-time regressions pass.
  • Preview two tenants: each keeps its own organisation, logo and legal links.
  • Save changed branding and preview after the short cache: the saved identity appears.
  • Confirm no mail or password appears in the review logs.

Caller review disposition — 1 October 2026

The coding agent checked the three mail-caller review findings against the current published source. Each already has a regression that reaches the rendering boundary; no additional caller change is proposed. This does not resolve a review thread or grant human approval.

Already present: password reset checks the actual tenant-branded multipart mail; the platform SMTP diagnostic checks that no tenant is selected; adding and removing a supervisor checks the actual tenant-branded rendered mail.

Fixed separately: the shared cache correction is published after final local gates and independent review. The colour suggestion conflicts with accepted ADR-026 and awaits an explicit decision. Human approval, merge, deployment and received Dev mail remain separate gates.

For developers — exact caller evidence (source inspection, no fresh test execution):

Inspected published head: 607fe33abb685871eb284b87cd5242279d571e57
r4120793416: already represented by PasswordResetServiceTest
  requestPasswordReset_Should_RenderAndDispatchTheResolvedTenantBrand
  Actual request -> real sendViaSmtp -> multipart MIME; distinct tenant name and colour.
r4120793432: already represented by GlobalSmtpTestEmailServiceTest
  testMailUsesSavedAdminServerAndDesignSystem / legacyRequestThemeDoesNotChangePlatformMailBranding
  Explicit valuesForTenant(app URL, null) plus saved SMTP snapshot; no request theme override.
r4120793450: already represented by SupervisorAddedEmailNotificationServiceTest
  teamChangeNotificationPreservesTenantBrandThroughAddedAndRemovedCallers
  Actual added/removed entrypoints -> captured rendered HTML/text; tenant name/logo/colour/legal links.
No caller production/test edit, commit, rerun, Dev send or reviewer acceptance claimed.

Sub-issues

Collapse Sub-issuesSub-issues

0 of 10 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. Storypapst
    added a parent issue on Sep 24, 2026
    • EPIC: transactional e-mails — one design system across every sending path ORISO-Frontend#828
  2. github-project-automation
    added this to ORISO Roadmapon Sep 24, 2026
  3. github-project-automation
    moved this to Backlog in ORISO Roadmapon Sep 24, 2026
  4. Storypapst
    set
    Platform release
    to
    v2.0.10
    on Sep 30, 2026
  5. Storypapst commented on Oct 1, 2026

    @Storypapst
    Storypapst
    on Oct 1, 2026
    CollaboratorAuthor
    More actions

    Short thesis: Source for Every mail in the Träger's design: implement ADR-026 decisions 1, 2 and 5 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 1332, PR 1306, PR 1114.

  6. Storypapst
    added 2 commits that reference this issue on Oct 2, 2026

    feat(email): default mail colour #000000 instead of a configuration e…

    7824cd4

    ci: check the tenant-colour golden fixture against ORISO-Frontend (#1252

    979058f
  7. shazia-k
    added a commit that references this issue on Oct 6, 2026

    Merge pull request #1342 from OpenResilienceInitiative/feat/1252-mail…

    ff40fd6
  8. Storypapst
    added a sub-issue on Oct 21, 2026
    • Pass the platform admin's colour on to every Träger without its own, so mails stop falling back to black ORISO-TenantService#328
  9. Storypapst
    moved this from QA internal to QA external in ORISO Roadmapon Nov 4, 2026
  10. HelenaSKloeckner
    moved this from QA external to Done in ORISO Roadmapon Nov 18, 2026
  11. HelenaSKloeckner
    closed this as completedby moving to Done in ORISO Roadmapon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Platform release

    v2.0.10

    Projects

    • ORISO Roadmap
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.