-
Notifications
You must be signed in to change notification settings - Fork 1
CCM-13493: letter details #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…page-letter-details
- 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
0f7943d to
93e86b9
Compare
...nd/src/components/molecules/PreviewTemplateDetails/PreviewTemplateDetailsAuthoringLetter.tsx
Show resolved
Hide resolved
| "@types/js-cookie": "^3.0.6", | ||
| "@types/jsonwebtoken": "^9.0.9", | ||
| "@types/markdown-it": "^13.0.9", | ||
| "@types/node": "^22.13.12", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
frontend/src/__tests__/components/molecules/__snapshots__/ChannelTemplates.test.tsx.snap
Show resolved
Hide resolved
frontend/src/components/organisms/PreviewLetterTemplate/PreviewLetterTemplate.tsx
Outdated
Show resolved
Hide resolved
...te-mgmt-component-tests/letter/template-mgmt-preview-submitted-letter-page.component.spec.ts
Outdated
Show resolved
Hide resolved
| await expect(previewLargePrintLetterTemplatePage.summaryList).toBeVisible(); | ||
|
|
||
| if (!templates.AUTHORING_LARGE_PRINT_LETTER.campaignId) { | ||
| throw new Error('Test data misconfiguration'); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here?
Description
Adds a letter details table for AUTHORING letters. This is visible on the
preview-letter-templatepage also onpreview-submitted-templateand the message-planspreview-templatepages in different variationspreview: status is

NOT_YET_SUBMITTEDpreview-submitted:

preview under 'message-plans':

The
typerow being changed toTemplate typeacross all channels is intentional and agreed with content designersContext
Type of changes
Checklist
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.