Skip to content

Conversation

@alexnuttall
Copy link
Contributor

@alexnuttall alexnuttall commented Jan 30, 2026

Description

Adds a letter details table for AUTHORING letters. This is visible on the preview-letter-template page also on preview-submitted-template and the message-plans preview-template pages in different variations

Screenshot 2026-02-03 at 15 08 49

preview: status is NOT_YET_SUBMITTED
Screenshot 2026-02-03 at 15 09 23

preview-submitted:
Screenshot 2026-02-03 at 15 09 10

preview under 'message-plans':
Screenshot 2026-02-03 at 15 10 30

The type row being changed to Template type across all channels is intentional and agreed with content designers

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.

- Add missing .missingValue CSS class for highlighting empty campaign
- Rename showEditCampaignLink to hideEditCampaignLink for clarity
- Extract reusable ActionLink component to reduce duplication
- Move hardcoded external URLs to content.ts
- Add external link support (target=_blank, rel=noopener noreferrer)
- Add E2E tests for campaign auto-selection behavior
- Update snapshots to reflect external link attributes
@alexnuttall alexnuttall force-pushed the feature/CCM-13493-page-letter-details branch from 0f7943d to 93e86b9 Compare February 3, 2026 10:09
@alexnuttall alexnuttall marked this pull request as ready for review February 3, 2026 12:11
"@types/js-cookie": "^3.0.6",
"@types/jsonwebtoken": "^9.0.9",
"@types/markdown-it": "^13.0.9",
"@types/node": "^22.13.12",
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I meant to move it into the root package JSON (have just updated). Just thinking it should be everywhere or only in the root package, rather than just in frontend

Copy link
Contributor

Choose a reason for hiding this comment

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

er.... maybe just in the root? 🤷 . I don't see any harm in it being in the other places either.

await expect(previewLargePrintLetterTemplatePage.summaryList).toBeVisible();

if (!templates.AUTHORING_LARGE_PRINT_LETTER.campaignId) {
throw new Error('Test data misconfiguration');
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace with an expect?

).toBeVisible();

if (!templates.AUTHORING_FRENCH_LETTER.campaignId) {
throw new Error('Test data misconfiguration');
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here?

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.

2 participants