= {
companions: {
id: 'companions',
pane: CompanionsPane,
- title: 'Travel Companions' // TODO i18n
+ title:
},
finish: {
id: 'finish',
diff --git a/lib/components/user/types.ts b/lib/components/user/types.ts
index 57ed108c3..01ffaa6eb 100644
--- a/lib/components/user/types.ts
+++ b/lib/components/user/types.ts
@@ -41,7 +41,6 @@ export interface User {
accessibilityRoutingByDefault?: boolean
// email always exists per Auth0.
email: string
- guardians?: CompanionInfo[]
hasConsentedToTerms?: boolean
id?: string
isPhoneNumberVerified?: boolean
@@ -50,6 +49,7 @@ export interface User {
phoneNumber?: string
preferredLocale?: string
pushDevices?: number
+ relatedUsers?: CompanionInfo[]
savedLocations?: UserSavedLocation[]
storeTripHistory?: boolean
}
From 6b2da61dc2e0a5bf43958e2974cd0216f181db6f Mon Sep 17 00:00:00 2001
From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com>
Date: Wed, 30 Oct 2024 10:12:21 -0400
Subject: [PATCH 17/28] refactor(CompanionsPane): Don't pass userId when
requesting new companion
---
lib/components/user/mobility-profile/companions-pane.tsx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/components/user/mobility-profile/companions-pane.tsx b/lib/components/user/mobility-profile/companions-pane.tsx
index e95c2323d..d189b36eb 100644
--- a/lib/components/user/mobility-profile/companions-pane.tsx
+++ b/lib/components/user/mobility-profile/companions-pane.tsx
@@ -132,8 +132,7 @@ const CompanionsPane = ({
...companions,
{
email: newEmail,
- status: 'PENDING',
- userId: ''
+ status: 'PENDING'
}
])
resetForm()
From 0f5713016b038df0ab492af003589ffb42161afb Mon Sep 17 00:00:00 2001
From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com>
Date: Wed, 30 Oct 2024 12:55:44 -0400
Subject: [PATCH 18/28] feat: Add confirmation and error landing pages.
---
public/confirmation.html | 5 +++++
public/error.html | 19 +++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 public/confirmation.html
create mode 100644 public/error.html
diff --git a/public/confirmation.html b/public/confirmation.html
new file mode 100644
index 000000000..3d34e48ff
--- /dev/null
+++ b/public/confirmation.html
@@ -0,0 +1,5 @@
+
+
+ Your request is confirmed.
+
+
diff --git a/public/error.html b/public/error.html
new file mode 100644
index 000000000..4707860d3
--- /dev/null
+++ b/public/error.html
@@ -0,0 +1,19 @@
+
+
+ An error occurred:
+
+ An error message is embedded in the URL for this page, but could not be parsed.
+
+
+
+
+
From ba97b8e98d76782e228e0b9dca2e06a73139b712 Mon Sep 17 00:00:00 2001
From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com>
Date: Thu, 31 Oct 2024 09:13:20 -0400
Subject: [PATCH 19/28] refactor(confirmation.html): Merge error and
confirmation pages
---
public/confirmation.html | 18 +++++++++++++++++-
public/error.html | 19 -------------------
2 files changed, 17 insertions(+), 20 deletions(-)
delete mode 100644 public/error.html
diff --git a/public/confirmation.html b/public/confirmation.html
index 3d34e48ff..5d9508e3f 100644
--- a/public/confirmation.html
+++ b/public/confirmation.html
@@ -1,5 +1,21 @@
+
+ Request Result
+
- Your request is confirmed.
+
+ Your request is confirmed.
+ If an error occurred, a message is embedded in the URL for this page, but could not be parsed.
+
+
diff --git a/public/error.html b/public/error.html
deleted file mode 100644
index 4707860d3..000000000
--- a/public/error.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
- An error occurred:
-
- An error message is embedded in the URL for this page, but could not be parsed.
-
-
-
-
-
From 6599af58c5ad54408b6cc02e60794ca6c7d553f7 Mon Sep 17 00:00:00 2001
From: josh-willis-arcadis
<168561922+josh-willis-arcadis@users.noreply.github.com>
Date: Mon, 4 Nov 2024 14:30:03 -0600
Subject: [PATCH 20/28] address pr feedback
---
lib/components/util/status-badge.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/components/util/status-badge.tsx b/lib/components/util/status-badge.tsx
index 6d7f13776..71de7930d 100644
--- a/lib/components/util/status-badge.tsx
+++ b/lib/components/util/status-badge.tsx
@@ -21,7 +21,7 @@ function getStatusLabel(status?: string) {
)
- case 'verified':
+ case 'confirmed':
return (
From 373236315f2e236a039dcacdc681507aa967ebaa Mon Sep 17 00:00:00 2001
From: josh-willis-arcadis
<168561922+josh-willis-arcadis@users.noreply.github.com>
Date: Mon, 4 Nov 2024 14:32:15 -0600
Subject: [PATCH 21/28] refactor(user/types): add status values
---
lib/components/user/types.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/components/user/types.ts b/lib/components/user/types.ts
index 404c4fb49..13c78c2df 100644
--- a/lib/components/user/types.ts
+++ b/lib/components/user/types.ts
@@ -31,7 +31,7 @@ export interface MobilityProfile {
export interface CompanionInfo {
email: string
- status?: string
+ status?: 'PENDING' | 'CONFIRMED' | 'INVALID'
}
/**
From a032296530e7907b8e4485f0a77a196548f0597f Mon Sep 17 00:00:00 2001
From: Josh Willis <168561922+josh-willis-arcadis@users.noreply.github.com>
Date: Mon, 4 Nov 2024 14:40:10 -0600
Subject: [PATCH 22/28] Fix code scanning alert no. 7: Client-side cross-site
scripting
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
---
public/confirmation.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/public/confirmation.html b/public/confirmation.html
index 5d9508e3f..70ad909bf 100644
--- a/public/confirmation.html
+++ b/public/confirmation.html
@@ -8,13 +8,15 @@
If an error occurred, a message is embedded in the URL for this page, but could not be parsed.