Skip to content

[HOTE-716] feat: add before you start page#354

Open
ConnorF-NHS wants to merge 1 commit intomainfrom
feature/hote-716/before-you-start-screen
Open

[HOTE-716] feat: add before you start page#354
ConnorF-NHS wants to merge 1 commit intomainfrom
feature/hote-716/before-you-start-screen

Conversation

@ConnorF-NHS
Copy link
Copy Markdown
Contributor

@ConnorF-NHS ConnorF-NHS commented Apr 14, 2026

Description

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.

Copilot AI review requested due to automatic review settings April 14, 2026 15:16
@github-actions
Copy link
Copy Markdown

Lambdas Coverage Report

Lines Statements Branches Functions
Coverage: 98%
98.58% (1466/1487) 93.2% (384/412) 96.69% (234/242)

@github-actions
Copy link
Copy Markdown

UI Coverage Report

Lines Statements Branches Functions
Coverage: 96%
96.19% (5761/5989) 88.22% (689/781) 88.21% (217/246)

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “Before you start” entry page to the HIV self-test kit journey and updates app/journey navigation so users land there first (including post-auth and various “reset/back-to-start” flows).

Changes:

  • Introduces /before-you-start route + BeforeYouStartPage UI and content schema/content.json entries.
  • Updates journey navigation logic and several pages to route “back to start” / reset to RoutePath.BeforeYouStartPage instead of GetSelfTestKitPage.
  • Adds usePageTitle hook and a unit test suite for BeforeYouStartPage.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ui/src/state/NavigationContext.tsx Extends Step/path mapping to support navigating to the new Before You Start route.
ui/src/routes/get-self-test-kit-for-HIV-journey/OrderSubmittedPage.tsx Redirect/reset now sends users to Before You Start when order state is missing.
ui/src/routes/get-self-test-kit-for-HIV-journey/EnterDeliveryAddressPage.tsx “Back” fallback now routes to Before You Start.
ui/src/routes/get-self-test-kit-for-HIV-journey/CheckYourAnswersPage.tsx Post-submit reset flow now routes to Before You Start.
ui/src/routes/get-self-test-kit-for-HIV-journey/CannotUseServiceUnder18Page.tsx “Back” fallback now routes to Before You Start.
ui/src/routes/get-self-test-kit-for-HIV-journey/BloodSampleGuidePage.tsx “Back” fallback now routes to Before You Start.
ui/src/routes/get-self-test-kit-for-HIV-journey/BeforeYouStartPage.tsx New route page component for “Before you start” content and navigation into the journey.
ui/src/routes/CallbackPage.tsx Default post-login navigation now lands on Before You Start.
ui/src/lib/models/route-paths.ts Adds RoutePath.BeforeYouStartPage.
ui/src/app.tsx Adds the new route and changes / redirect to Before You Start.
ui/src/tests/routes/get-self-test-kit-for-HIV-journey/CheckYourAnswersPage.test.tsx Updates expectations for new reset target route.
ui/src/tests/routes/get-self-test-kit-for-HIV-journey/CannotUseServiceUnder18Page.test.tsx Updates expectations for new back fallback route.
ui/src/tests/routes/get-self-test-kit-for-HIV-journey/BeforeYouStartPage.test.tsx New unit tests for Before You Start page rendering and navigation.
ui/hooks/usePageTitle.ts New hook to set document title from route content.
ui/hooks/useContent.ts Extends content hook types/returns to include before-you-start page content.
ui/hooks/index.ts Re-exports usePageTitle.
ui/content/schema.ts Adds BeforeYouStartContent and wires it into PagesContent.
ui/content/content.json Adds “before-you-start” copy and minor formatting normalization in supplier content sections.
ui/content/ContentValidator.ts Requires the new before-you-start page key.

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