Skip to content

[LIMS-1670] Display Diamond logo properly in emails#5

Merged
gfrn merged 2 commits intomasterfrom
fix/lims-1670/diamond-logo
May 9, 2025
Merged

[LIMS-1670] Display Diamond logo properly in emails#5
gfrn merged 2 commits intomasterfrom
fix/lims-1670/diamond-logo

Conversation

@gfrn
Copy link
Collaborator

@gfrn gfrn commented Apr 25, 2025

JIRA ticket: LIMS-1670

Summary:

Previously, the Diamond logo was included in headers as a SVG. This was not displayed in all email clients, so in order to improve compatibility, a PNG is attached instead.

Changes:

  • Display Diamond in logos as PNG

To test:

  • Send a POST request to /dataGroups/988855/alerts, with {"email": "test@diamond.ac.uk"} as the body. Ensure an email is sent to that address, and that the email looks like this:
    image

@gfrn gfrn added the bug Something isn't working label Apr 25, 2025
@gfrn gfrn requested review from MattPrit and RichB-DLS April 25, 2025 10:41
@gfrn gfrn self-assigned this Apr 25, 2025
@codecov
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

Attention: Patch coverage is 98.27586% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (master@0eb4192). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/pato/utils/pika.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master       #5   +/-   ##
=========================================
  Coverage          ?   94.40%           
=========================================
  Files             ?       43           
  Lines             ?     1787           
  Branches          ?        0           
=========================================
  Hits              ?     1687           
  Misses            ?      100           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Matthew Pritchard <46708056+MattPrit@users.noreply.github.com>
Copy link
Collaborator

@MattPrit MattPrit left a comment

Choose a reason for hiding this comment

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

LGTM

@gfrn gfrn merged commit 77c6740 into master May 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants