Skip to content

CCM-15018: How to request a digital proof#879

Open
bhansell1 wants to merge 22 commits intomainfrom
feature/CCM-15018-request-proof-link
Open

CCM-15018: How to request a digital proof#879
bhansell1 wants to merge 22 commits intomainfrom
feature/CCM-15018-request-proof-link

Conversation

@bhansell1
Copy link
Copy Markdown
Contributor

@bhansell1 bhansell1 commented Mar 16, 2026

Description

  • adds a banner to direct users on how to request a proof for a digital template
  • adds a new page explaining how to request a proof
  • shows request proof banner when digitalProofing is off
  • shows send a test message banner when digitalProofing is on
  • shows banner (digiproofing or request a proof) on; preview-submitted-template, preview-template, /message-plans/preview-template

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • If I have used the 'skip-trivy-package' label I have done so responsibly and in the knowledge that this is being fixed as part of a separate ticket/PR.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@bhansell1 bhansell1 marked this pull request as ready for review March 17, 2026 14:00
@bhansell1 bhansell1 requested a review from a team as a code owner March 17, 2026 14:00
alexnuttall
alexnuttall previously approved these changes Mar 18, 2026
alexnuttall
alexnuttall previously approved these changes Mar 18, 2026
@@ -1218,6 +1290,13 @@ const previewDigitalTemplate = {
EMAIL:
'This is only a basic preview. [Send a test email](/templates/send-test-email/{{templateId}}) to preview this message properly.',
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.

if you go with what I suggest in the pw tests about having separate locators for each banner, you could override the testid like we've done elsewhere in here and set it differently for each banner type in content, rather than it being hard-coded in PreviewDigitalTemplate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good shout - thank you. I've updated the content to reflect this. I think the content object is a bit more complex but the component is much simplier.

</div>
</dl>
</div>
<div
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.

pls can you add another of these for when digital proofing is turned on for email, so we can have a snapshot with the other banner?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added.

</div>
</dl>
</div>
<div
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.

same here, could you add for app digi proofing on too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added.

</div>
</dl>
</div>
<div
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.

same for sms

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

import type { ContentBlock } from '@molecules/ContentRenderer/ContentRenderer';
import { getBasePath } from '@utils/get-base-path';
import { markdownList } from '@utils/markdown-list';
import { MarkdownToJSX } from 'markdown-to-jsx';
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.

maybe re-export this from the util file, rather importing directly?

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