Skip to content

[CCM-11438] Update template guidance#605

Merged
nicki-nhs merged 33 commits intomainfrom
feature/CCM-11438-update-markdown-guidance
Aug 8, 2025
Merged

[CCM-11438] Update template guidance#605
nicki-nhs merged 33 commits intomainfrom
feature/CCM-11438-update-markdown-guidance

Conversation

@nicki-nhs
Copy link
Contributor

@nicki-nhs nicki-nhs commented Aug 1, 2025

Description

  • Create new ContentRenderer component to render text, list or code sections and add unit tests
  • Changes CodeExample to use <pre> to support consistent multi line formatting and add global styling
  • Update MarkdownContent component to support simple string content as well as arrays of content and update tests and use cases
  • Implement support for ID and test IDs in MarkdownContent component
  • Add kebab case util and refactors usage of the previous one
  • Refactor MessageFormatting and Personalisation components to be dynamic and driven by the content
  • Remove redundant components for message formatting e.g. HorizontalRule
  • Rename MessageFormatting prop to templateType
  • Update the content to match the new designs
  • Add new IDs and aria label content
  • Update unit tests and playwright tests
  • Fix layout issue on all create template forms and update styling to match prototype
  • Refactor the footer on the SMS template form to use the new ContentRenderer component

Screenshot

(others in the ticket)

image

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

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.

@nicki-nhs nicki-nhs requested a review from a team as a code owner August 1, 2025 10:29
mark-r-bjss
mark-r-bjss previously approved these changes Aug 5, 2025
alexnuttall
alexnuttall previously approved these changes Aug 6, 2025
@nicki-nhs nicki-nhs merged commit 8ccc668 into main Aug 8, 2025
28 checks passed
@nicki-nhs nicki-nhs deleted the feature/CCM-11438-update-markdown-guidance branch August 8, 2025 08:43
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.

3 participants