-
Notifications
You must be signed in to change notification settings - Fork 1
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
PYIC-7933: Update content on F2F handoff (booking confirmation) page #1806
Conversation
9ae8eb0
to
369477e
Compare
9985348
to
9f49073
Compare
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.
LGTM though would be good to add some testing for ipv/middleware
src/app/ipv/middleware.ts
Outdated
@@ -357,6 +357,10 @@ export const handleJourneyPageRequest = async ( | |||
} else if (pageId === PAGES.PYI_TRIAGE_MOBILE_DOWNLOAD_APP) { | |||
validatePhoneType(context); | |||
renderOptions.appDownloadUrl = getAppStoreRedirectUrl(context); | |||
} else if (pageId === PAGES.PAGE_FACE_TO_FACE_HANDOFF) { | |||
renderOptions.postOfficeVisitByDate = new Date().setDate( | |||
new Date().getDate() + 15, |
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.
We probably want to pull 15
out into config - it doesn't need to be an env var but we could define it in config.ts
perhaps?
src/app/development/middleware.ts
Outdated
let today = new Date(); | ||
if (process.env.NODE_ENV === "local") { | ||
today = new Date("2025-01-01"); | ||
} | ||
renderOptions.postOfficeVisitByDate = new Date().setDate( | ||
today.getDate() + 15, | ||
); |
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.
could we have this just always hardcode the date (rather than relying on NODE_ENV being set to local) ?
should be fine for just a preview of the page
faefa34
to
7b520bb
Compare
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.
Looks good, HOLD until we get the green light
667c6a6
to
0d4bb1b
Compare
0d4bb1b
to
57d04ed
Compare
57d04ed
to
daff62d
Compare
|
Proposed changes
What changed
Issue tracking