Skip to content

[DT-3880] Updates the style on the message. - #3018

Merged
otchet-broad merged 1 commit into
developfrom
otchet-dt-3880-new-data-emails
Aug 13, 2026
Merged

[DT-3880] Updates the style on the message.#3018
otchet-broad merged 1 commit into
developfrom
otchet-dt-3880-new-data-emails

Conversation

@otchet-broad

@otchet-broad otchet-broad commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DT-3880

Summary

Note to reviewers:
1 - Updated from original requirements and removed the redundant 'dataset/datasets' language in the cell with the counts.
2 - Test message sent and confirmed in Outlook and Gmail. PO confirmed Gmail looked good. I confirmed Outlook and Gmail as well. Screenshot below is from Gmail.

image

Have you read CONTRIBUTING.md lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@sonarqubecloud

Copy link
Copy Markdown

@otchet-broad
otchet-broad marked this pull request as ready for review August 13, 2026 18:02
@otchet-broad
otchet-broad requested a review from a team as a code owner August 13, 2026 18:02
@otchet-broad
otchet-broad requested review from kevinmarete and rushtong and a lite review from Copilot and removed request for a team August 13, 2026 18:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the “New Study Digest” email template styling and layout to improve readability in common email clients, while adjusting template tests to validate the new rendering behavior.

Changes:

  • Refactors new-study-digest.ftl to reuse inline CSS declarations, add a “new study count” summary line, render access types as badge-like spans, and right-align dataset counts.
  • Updates NewStudyDigestMessageTest to assert the new badge rendering, new summary line (including pluralization), and dataset count alignment; adds a singular/plural test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/test/java/org/broadinstitute/consent/http/mail/message/NewStudyDigestMessageTest.java Updates assertions to match the new template structure/styles and adds a singular/plural count test.
src/main/resources/freemarker/new-study-digest.ftl Restyles the digest email with shared inline CSS, badge rendering for access types, a count summary line, and right-aligned dataset counts.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rushtong rushtong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice 👍🏽

Comment on lines +3 to +8
<#-- Email clients require inline CSS, so the shared declarations are defined once and reused. -->
<#assign bodyTextStyle="font-family: 'Montserrat', sans-serif; font-size: 16px; color: #1F3B50; line-height: 25px;">
<#assign headerCellStyle="font-family: 'Montserrat', sans-serif; font-style: italic; font-size: 15px; color: #00609f; border-bottom: 1px solid #cccccc; padding: 5px;">
<#assign dataCellStyle="font-family: 'Montserrat', sans-serif; color: #1F3B50; border-bottom: 1px solid #cccccc; padding: 5px; vertical-align: top;">
<#assign linkStyle="text-decoration: none; font-family: 'Montserrat', sans-serif; color: #00609F; font-weight: 600;">
<#assign badgeStyle="display: inline-block; padding: 1px 10px; border: 1px solid #cde1f0; border-radius: 12px; background-color: #eaf2f9; font-family: 'Montserrat', sans-serif; font-size: 13px; line-height: 20px; color: #00609F; white-space: nowrap;">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not for this PR, but it would be really nice to have these as base/reusable styles in the header template.

@otchet-broad
otchet-broad merged commit 5de99a1 into develop Aug 13, 2026
12 checks passed
@otchet-broad
otchet-broad deleted the otchet-dt-3880-new-data-emails branch August 13, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants