Skip to content

[CCM-10893] Add account header for multi-user access#658

Merged
harrim91 merged 104 commits intomainfrom
feature/CCM-10893-add-account-header
Sep 8, 2025
Merged

[CCM-10893] Add account header for multi-user access#658
harrim91 merged 104 commits intomainfrom
feature/CCM-10893-add-account-header

Conversation

@nicki-nhs
Copy link
Contributor

Description

image
  • Updates version of nhs-frontend to pre-release 10 ^10.0.0-internal.3 to bring in the new header with account from the design system
  • Updates some global styling to use css variables to import nhs colours using the new mixin from the new version of nhs-frontend
  • Updates icon classes as used in the new version of nhs-frontend
  • Creates new NotifyBackLink component which replaces BackLink from nhsuk-react-components due to changes from nhs-frontend
  • Refactors AuthLink to remove redundant wrapping div
  • Adds new utils
    • truncate - truncates strings and replaces excess characters with ellipses
    • token-utils - for client side handling of jwt tokens, and add getIdTokenClaims function
  • Updates amplify-utils to
    • include idToken in getSessionServer
    • use the new token-utils where relevant
  • Creates new HeaderWithAccount component which
    • includes the logo/service name
    • displays the username and client name when logged in
    • includes the existing auth link
    • uses the new styling from nhs-frontend
    • displays navigation links for "Templates" (and "Message plans" when routing feature is true in features prop)
  • Refactor content to account for new header structure and add new content/links
  • Replace Header in ClientLayout with the new HeaderWithAccount
  • Adds new routing feature flag into ClientFeatures type (doesnt yet do anything)
  • Fixes test output error from MarkdownContent by removing the ID prop, replacing use of id in the tests with data-testid and adding conditional for empty items
  • Updates ContentRenderer to account for the above
  • Refactors Footer to remove redundant html containers and update to use latest classes etc from nhs-frontend

Context

Users need to see the name of the client displayed in the header so that they can see which client they are currently creating or updating resources for

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.

Copy link
Contributor

@mark-r-bjss mark-r-bjss left a comment

Choose a reason for hiding this comment

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

Need to fix the component tests.

@harrim91 harrim91 requested a review from mark-r-bjss September 2, 2025 14:10
alexnuttall
alexnuttall previously approved these changes Sep 2, 2025
bhansell1
bhansell1 previously approved these changes Sep 2, 2025
@harrim91 harrim91 merged commit 2b55223 into main Sep 8, 2025
28 checks passed
@harrim91 harrim91 deleted the feature/CCM-10893-add-account-header branch September 8, 2025 08:40
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.

7 participants