From 627d77632291e096dc75b105387da7a433767488 Mon Sep 17 00:00:00 2001
From: Marte Fossum <myf@uio.no>
Date: Fri, 22 Jul 2022 14:33:41 +0200
Subject: [PATCH] Add info about the front page for guest

---
 frontend/public/locales/en/common.json               | 5 ++++-
 frontend/public/locales/nb/common.json               | 5 ++++-
 frontend/public/locales/nn/common.json               | 5 ++++-
 frontend/src/routes/guest/register/steps/success.tsx | 2 +-
 frontend/src/routes/landing/index.tsx                | 8 ++++++++
 5 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/frontend/public/locales/en/common.json b/frontend/public/locales/en/common.json
index 574fd477..aadefb18 100644
--- a/frontend/public/locales/en/common.json
+++ b/frontend/public/locales/en/common.json
@@ -50,6 +50,8 @@
     "consentInfoHead": "Consent information",
     "choiceDate": "Choice date",
     "consentName": "Consent type",
+    "registeredInfo": "Registererd information on you",
+    "registeredInfoExplanation": "Here is the contact information, roles and consent information that is registered on you.",
     "roleInfoHead": "Roles and periods",
     "roleInfoTableText": "Guest roles",
     "roleInfoBody": "You can only change roles connected to units that you have given.",
@@ -146,7 +148,8 @@
     "cancelInvitation": "Cancel",
     "resendInvitation": "Resend invitation",
     "ok": "OK",
-    "finishRegistration": "Finish registration"
+    "finishRegistration": "Finish registration",
+    "seeRegisteredInfo": "See registered info"
   },
   "registerWizardText": {
     "registerPage": "Enter the contact information for the guest below. These fields are mandatory.",
diff --git a/frontend/public/locales/nb/common.json b/frontend/public/locales/nb/common.json
index 9f7bcc26..dba5a06f 100644
--- a/frontend/public/locales/nb/common.json
+++ b/frontend/public/locales/nb/common.json
@@ -50,6 +50,8 @@
     "consentInfoHead": "Samtykkeinformasjon",
     "choiceDate": "Valgdato",
     "consentName": "Samtykketype",
+    "registeredInfo": "Registrert informasjon om deg",
+    "registeredInfoExplanation": "Her er en oversikt over kontaktinformasjon, roller og samtykker som er registrert om deg.",
     "roleInfoHead": "Roller og perioder",
     "roleInfoBody": "Du kan endre på tidsperioden, men kun på gjesteroller tilknyttet enheter du er vert for.",
     "roleInfoTableText": "Gjesteroller",
@@ -146,7 +148,8 @@
     "resendInvitation": "Send ny invitasjon",
     "cancelInvitation": "Kanseller",
     "ok": "OK",
-    "finishRegistration": "Fullfør registrering"
+    "finishRegistration": "Fullfør registrering",
+    "seeRegisteredInfo": "Se registrert informasjon"
   },
   "registerWizardText": {
     "registerPage": "Fyll inn kontaktinformasjonen til gjesten under. Disse feltene er obligatoriske.",
diff --git a/frontend/public/locales/nn/common.json b/frontend/public/locales/nn/common.json
index 00136cf5..694a29a2 100644
--- a/frontend/public/locales/nn/common.json
+++ b/frontend/public/locales/nn/common.json
@@ -50,6 +50,8 @@
     "consentInfoHead": "Samtykkeinformasjon",
     "choiceDate": "Valdato",
     "consentName": "Samtykketype",
+    "registeredInfo": "Registrert informasjon om deg",
+    "registeredInfoExplanation": "Her er ei oversikt over kontaktinformasjon, roller og samtykke som er registrert om deg.",
     "roleInfoTableText": "Gjesteroller",
     "roleInfoHead": "Roller og periodar",
     "roleInfoBody": "Du kan endre på tidsperioden, men berre på gjesteroller knytta til eininger du er vert for.",
@@ -146,7 +148,8 @@
     "resendInvitation": "Send ny invitasjon",
     "cancelInvitation": "Kanseller",
     "ok": "OK",
-    "finishRegistration": "Fullfør registrering"
+    "finishRegistration": "Fullfør registrering",
+    "seeRegisteredInfo": "Se registrert informasjon"
   },
   "registerWizardText": {
     "registerPage": "Fyll inn kontaktinformasjonen til gjesten under. Desse felta er påkrevde.",
diff --git a/frontend/src/routes/guest/register/steps/success.tsx b/frontend/src/routes/guest/register/steps/success.tsx
index 4ee71e6a..42aa03f3 100644
--- a/frontend/src/routes/guest/register/steps/success.tsx
+++ b/frontend/src/routes/guest/register/steps/success.tsx
@@ -39,7 +39,7 @@ const GuestSuccessStep = () => {
           navigate('/')
         }}
       >
-        {t('button.backToFrontPage')}
+        {t('button.seeRegisteredInfo')}
       </Button>
     </>
   )
diff --git a/frontend/src/routes/landing/index.tsx b/frontend/src/routes/landing/index.tsx
index 8c1a0f76..9832532a 100644
--- a/frontend/src/routes/landing/index.tsx
+++ b/frontend/src/routes/landing/index.tsx
@@ -28,6 +28,14 @@ const GuestPage = () => {
   }, [])
   return (
     <Page>
+      <Typography variant="h2">{t('guestInfo.registeredInfo')}</Typography>
+      <Typography
+        variant="body1"
+        sx={{ paddingBottom: '1rem', paddingTop: '1rem' }}
+      >
+        {t('guestInfo.registeredInfoExplanation')}
+      </Typography>
+
       <Typography variant="h2">{t('guestInfo.contactInfo')}</Typography>
       <TableContainer>
         <Table sx={{ minWidth: 650 }} aria-label="simple table">
-- 
GitLab