Skip to content

feat: new mail notifications based on design system - #3789

Merged
micbar merged 3 commits into
mainfrom
feat-mail-notifications
Oct 26, 2026
Merged

micbar merged 3 commits into
mainfrom
feat-mail-notifications

Conversation

@micbar

@micbar micbar commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description

New html notification emails based on the OpenCloud design system.

Design Screenshots

Daily digest, dark Mention Share created, dark Share created

MS Outlook Screenshots

1792681387883 1792681372539

Details

  • html split into layout.html.tmpl (logo, heading, card, footer, dark mode) + message.html.tmpl / digest.html.tmpl
  • button with plain-link fallback, PIN box, muted hints, notes below the button
  • dark mode via prefers-color-scheme, light logo swapped in
  • logos embedded as inline images
  • grouped emails: timeline with the time of each event (UTC), resource name links to the resource, subject names the daily / weekly interval, text version lists each event with its call to action
  • existing strings and plain-text emails unchanged, translations keep working
  • custom template folders with the old email.html.tmpl keep working
  • fix: ScienceMesh invite subject showed the literal {InitiatorName}

New strings: button labels, "Or open this link:", digest subjects.

Todo (Transifex)

Broken placeholders in translations:

  • de: {Shared Folder} → {ShareFolder}
  • fr: {ShareShare} → {ShareSharer}, {SharedFolder} → {ShareFolder}
  • ja: {Grantee} → {ShareGrantee} / {SpaceGrantee} / {RecipientName}
  • ko: {ExpireDat} → {ExpiredAt}

How Has This Been Tested?

  • unit tests: paragraph roles, escaping, inline logos, legacy template fallback, digest timeline and links
  • rendered html checked in headless Chrome, light / dark, en / de
  • not yet checked in real mail clients (Outlook, Gmail, Apple Mail)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation added

@codacy-production

codacy-production Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 99 complexity

Metric Results
Complexity 99

View in Codacy

🟢 Coverage 76.70% diff coverage · +0.26% coverage variation

Metric Results
Coverage variation ✅ +0.26% coverage variation (-1.00%)
Diff coverage ✅ 76.70% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (8acaef2) 92534 23924 25.85%
Head commit (19385c2) 92701 (+167) 24209 (+285) 26.12% (+0.26%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3789) 206 158 76.70%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@aduffeck aduffeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 lgtm except for the empty translations bug claude found.

The emails look so so much better!

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! LGTM, other than what @aduffeck found.

@micbar
micbar requested a review from aduffeck October 24, 2026 16:47
@suse-coder

Copy link
Copy Markdown

That looks awesome

@micbar
micbar force-pushed the feat-mail-notifications branch from 48923a5 to 0750f4e Compare October 25, 2026 20:40
@micbar
micbar force-pushed the feat-mail-notifications branch from 0750f4e to 19385c2 Compare October 25, 2026 20:45
@micbar
micbar merged commit cd6afff into main Oct 26, 2026
61 checks passed
@micbar
micbar deleted the feat-mail-notifications branch October 26, 2026 10:37
@openclouders openclouders mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: German translation metadata (PO header) appended to share revocation email body

4 participants