Skip to content

CCM-18178: enter OTP#983

Open
alexnuttall wants to merge 42 commits into
mainfrom
feature/CCM-18178-enter-otp
Open

CCM-18178: enter OTP#983
alexnuttall wants to merge 42 commits into
mainfrom
feature/CCM-18178-enter-otp

Conversation

@alexnuttall
Copy link
Copy Markdown
Contributor

@alexnuttall alexnuttall commented Jun 1, 2026

Description

enter-security-code page, which works for both email and SMS:

Screenshot 2026-06-01 at 16 48 17

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.

@alexnuttall alexnuttall requested review from a team as code owners June 1, 2026 10:58
@alexnuttall alexnuttall marked this pull request as draft June 1, 2026 10:58
@alexnuttall alexnuttall marked this pull request as ready for review June 1, 2026 15:49
Comment thread scripts/tests/test.mk
Comment thread tests/test-team/helpers/scripts/hash-otp.ts
Comment thread scripts/export_sandbox_auth.sh Outdated
Comment thread frontend/src/app/enter-security-code/[contactDetailId]/page.tsx Outdated
Comment thread lambdas/backend-api/README.md Outdated
Comment thread lambdas/backend-api/README.md
Comment on lines +154 to +155
expect(JSON.parse(lastCall.data)).toEqual(input);
expect(lastCall.headers).toEqual(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These seem like nice checks to add to the other tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

value: 'unverified@nhs.net',
});

const contactDetailSmsError = makeUnverifiedEmailContactDetail({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const contactDetailSmsError = makeUnverifiedEmailContactDetail({
const contactDetailSmsError = makeUnverifiedSmsContactDetail({

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@ClareJonesBJSS ClareJonesBJSS self-requested a review June 5, 2026 12:28
ClareJonesBJSS
ClareJonesBJSS previously approved these changes Jun 5, 2026

if (!contactDetail) {
// TODO CCM-18512: use a more appropriate URL
return redirect('/invalid-template', RedirectType.replace);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the proofing request pages, we ended up redirecting to /message-templates instead. Should probably be consistent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

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.

5 participants