From cd918040946b8ee889b79252885c1aa2d571dd06 Mon Sep 17 00:00:00 2001 From: orbitalsqwib <21305518+orbitalsqwib@users.noreply.github.com> Date: Mon, 5 Apr 2021 16:33:56 +0800 Subject: [PATCH 01/75] refactor(corppass-ui): make ui changes for corppass (#1533) * refactor(corppass-ui): make ui changes for corppass - updated copy for ui - updated minimum necessary user-facing mentions of singpass and corppass to use new casing - made necessary frontend changes for corporate singpass button - added tooltip beside corppass option in settings > enable authentication - updated e2e tests for new changes * fix(start-page): increase corp login hor. padding --- .../settings-form.client.view.html | 8 +++++++ .../settings-form.client.directive.js | 6 +++--- .../views/activate-form.client.modal.html | 6 +++--- .../views/edit-myinfo-field.client.modal.html | 2 +- .../forms/base/componentViews/end-page.html | 2 +- .../forms/base/componentViews/start-page.html | 21 ++++++++++++------- .../modules/forms/base/css/start-end-page.css | 11 ++++++++++ src/public/translations/en-SG/landing.json | 10 ++++----- tests/end-to-end/helpers/selectors.js | 2 +- tests/end-to-end/helpers/util.js | 6 +++--- 10 files changed, 50 insertions(+), 24 deletions(-) diff --git a/src/public/modules/forms/admin/directiveViews/settings-form.client.view.html b/src/public/modules/forms/admin/directiveViews/settings-form.client.view.html index f28dc0e3bf..484f484497 100644 --- a/src/public/modules/forms/admin/directiveViews/settings-form.client.view.html +++ b/src/public/modules/forms/admin/directiveViews/settings-form.client.view.html @@ -258,6 +258,14 @@ class="radiomark" ng-class="tempForm.authType === type.val ? 'blue-border' : ''" > +
{{ (['SP', 'MyInfo'].includes(vm.esrvcIdError.authType) ? - 'SingPass' : 'CorpPass') + ' returns the error code ' }} + 'Singpass' : 'Corppass') + ' returns the error code ' }} {{vm.esrvcIdError.errorCode}} {{' for the e-service ID ' }} {{vm.esrvcIdError.esrvcId}} {{ 'Could not connect to ' + (vm.esrvcIdError.authType === 'CP' ? - 'CorpPass' : 'SingPass') + ' to check the e-service id '}} + 'Corppass' : 'Singpass') + ' to check the e-service id '}} {{vm.esrvcIdError.esrvcId}}
@@ -48,7 +48,7 @@
-
This form uses CorpPass.
+
This form uses Corppass.
Please make sure {{vm.esrvcIdSuccess.esrvcId}} is the correct e-service ID diff --git a/src/public/modules/forms/admin/views/edit-myinfo-field.client.modal.html b/src/public/modules/forms/admin/views/edit-myinfo-field.client.modal.html index 9103031dc9..81ad773f58 100644 --- a/src/public/modules/forms/admin/views/edit-myinfo-field.client.modal.html +++ b/src/public/modules/forms/admin/views/edit-myinfo-field.client.modal.html @@ -56,7 +56,7 @@
diff --git a/src/public/modules/forms/base/componentViews/end-page.html b/src/public/modules/forms/base/componentViews/end-page.html index bc07a2d3a1..858e4b7669 100644 --- a/src/public/modules/forms/base/componentViews/end-page.html +++ b/src/public/modules/forms/base/componentViews/end-page.html @@ -12,7 +12,7 @@

{{ vm.title }}

-

You will be automatically logged out of SingPass.

+

You will be automatically logged out of Singpass.

- Login with CorpPass to access this form. Your Entity ID and - CorpPass ID will be included with your form submission. + Corporate entity login is required for this form. Your Singpass ID + and corporate Entity ID will be included with your form + submission.
+
+
Logged in as corporate user
+