Skip to content
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

Merged
merged 7 commits into from
Feb 13, 2025

Conversation

shivanshuit914
Copy link
Contributor

@shivanshuit914 shivanshuit914 commented Jan 22, 2025

Proposed changes

  • Updated content for the f2f handoff Page

What changed

  • Content changes and uses dynamic date to visit Post Office

Issue tracking

@shivanshuit914 shivanshuit914 force-pushed the PYIC-7933 branch 3 times, most recently from 9ae8eb0 to 369477e Compare January 23, 2025 16:29
@shivanshuit914 shivanshuit914 marked this pull request as ready for review January 23, 2025 16:40
@shivanshuit914 shivanshuit914 requested review from a team as code owners January 23, 2025 16:40
@shivanshuit914 shivanshuit914 force-pushed the PYIC-7933 branch 5 times, most recently from 9985348 to 9f49073 Compare January 23, 2025 17:36
Copy link
Contributor

@MikeCollingwood MikeCollingwood left a 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

@@ -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,
Copy link
Contributor

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?

Comment on lines 116 to 128
let today = new Date();
if (process.env.NODE_ENV === "local") {
today = new Date("2025-01-01");
}
renderOptions.postOfficeVisitByDate = new Date().setDate(
today.getDate() + 15,
);
Copy link
Contributor

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

Copy link
Contributor

@blakeyp blakeyp left a 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

@shivanshuit914 shivanshuit914 force-pushed the PYIC-7933 branch 2 times, most recently from 667c6a6 to 0d4bb1b Compare February 6, 2025 14:12
@shivanshuit914 shivanshuit914 merged commit 98d30ad into main Feb 13, 2025
6 checks passed
@shivanshuit914 shivanshuit914 deleted the PYIC-7933 branch February 13, 2025 13:33
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