From d480dfe201bd5aace968c69c062ae7b51ff3446f 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 1/2] 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 @@
ng-if="['SP', 'MyInfo'].includes(vm.authType) && !vm.userName && !vm.isTemplate"
ng-disabled="vm.isAdminPreview"
>
- Log in with SingPass
+ Login with Singpass
@@ -100,14 +100,21 @@
{{ vm.formTitle }}
ng-if="['SP', 'MyInfo'].includes(vm.authType)"
class="form-locked-msg padded-view"
>
- Login with SingPass to access this form. Your SingPass ID will be
+ Login with Singpass to access this form. Your Singpass ID will be
included with your form submission.
- 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.