Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit f741640

Browse files
Merge pull request #69 from silinternational/develop
UX feedback and new Help link for Hub users
2 parents 3d4e09f + 4712bbf commit f741640

File tree

7 files changed

+44
-14
lines changed

7 files changed

+44
-14
lines changed

dictionaries/review.definition.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
"ko": "프로필 검토"
88
},
99
"header": {
10-
"en": "Profile review – Are these still accurate?",
11-
"es": "Revisión del perfil - ¿Siguen siendo exactos?",
12-
"fr": "Examen du profil - Sont-ils toujours exacts?",
13-
"ko": "프로필 검토 - 여전히 정확한가?"
10+
"en": "Profile review",
11+
"es": "Revisión del perfil",
12+
"fr": "Examen du profil",
13+
"ko": "프로필 검토"
14+
},
15+
"info": {
16+
"en": "Are these still correct?",
17+
"es": "¿Siguen siendo correctos?",
18+
"fr": "Sont-ils toujours corrects?",
19+
"ko": "여전히 맞습니까?"
1420
},
1521
"mfa_header": {
1622
"en": "2-Step Verification",
@@ -61,9 +67,9 @@
6167
"ko": "이들 중 일부는 업데이트해야합니다."
6268
},
6369
"button_continue": {
64-
"en": "These are still accurate",
65-
"es": "Estos siguen siendo precisos.",
66-
"fr": "Ce sont toujours précis",
70+
"en": "These are still correct",
71+
"es": "Estos siguen siendo correctos",
72+
"fr": "Ceux-ci sont toujours corrects",
6773
"ko": "이들은 여전히 정확하다."
6874
}
6975
}

dictionaries/selectidp.definition.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,11 @@
2828
"es": "{IdpName} próximamente",
2929
"fr": "{IdpName} à venir",
3030
"ko": "{idpName} 곧 제공됨"
31+
},
32+
"help": {
33+
"en": "Help",
34+
"es": "Ayuda",
35+
"fr": "Aidez-moi",
36+
"ko": "도움"
3137
}
3238
}

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ services:
8787
PASSWORD_FORGOT_URL: "http://example.org"
8888

8989
idp4: # used for mfa testing
90-
image: silintl/ssp-base:develop-5.0
90+
image: silintl/ssp-base:develop
9191
volumes:
9292
- ./development/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
9393
- ./development/idp4/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
@@ -139,7 +139,7 @@ services:
139139
MYSQL_PASSWORD: "pass"
140140

141141
broker:
142-
image: silintl/idp-id-broker:develop-4.0
142+
image: silintl/idp-id-broker:develop
143143
volumes:
144144
- ./development/idp4/m991231_235959_insert_mfa_test_users.php:/data/console/migrations/m991231_235959_insert_mfa_test_users.php
145145
ports:

themes/material/common-head-elements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$colors = htmlentities($this->configuration->getValue('theme.color-scheme') ?: 'indigo-purple');
3333
?>
3434
<link rel="stylesheet" href="material.<?= $colors ?>.1.2.1.min.css">
35-
<link rel="stylesheet" href="styles.2.3.3.css">
35+
<link rel="stylesheet" href="styles.2.3.4.css">
3636

3737
<script async src="material.1.2.1.min.js"></script>
3838

themes/material/default/selectidp-links.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ function clickedAnyway(idpName) {
3838
}
3939
?>
4040
</span>
41+
42+
<div class="mdl-layout-spacer"></div>
43+
44+
<nav class="mdl-navigation">
45+
<a class="mdl-navigation__link" href="https://idphelp.sil.org" target="_blank"><?= $this->t('{material:selectidp:help}') ?></a>
46+
</nav>
4147
</div>
4248
</header>
4349

themes/material/profilereview/review.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,22 @@ function prettifyDates() {
3636

3737
<main class="mdl-layout__content" layout-children="column">
3838
<form layout-children="column" method="post">
39+
<p>
40+
<h2 class="mdl-typography--headline">
41+
<?= $this->t('{material:review:info}') ?>
42+
</h2>
43+
</p>
44+
3945
<section layout-children="row-top" >
4046
<?php if (count($this->data['mfaOptions']) > 0): ?>
41-
<div class="mdl-card mdl-shadow--8dp">
47+
<div class="mdl-card fixed-width mdl-shadow--8dp">
4248
<div class="mdl-card__title center">
4349
<h1 class="mdl-card__title-text">
4450
<?= $this->t('{material:review:mfa_header}') ?>
4551
</h1>
4652
</div>
4753

48-
<div class="mdl-card__title center" >
54+
<div class="mdl-card__title" >
4955
<ul class="mdl-card__subtitle-text mdl-list">
5056
<?php foreach ($this->data['mfaOptions'] as $mfa): ?>
5157
<li class="mdl-list__item mdl-list__item--three-line">
@@ -74,14 +80,15 @@ function prettifyDates() {
7480
<?php endif; ?>
7581

7682
<?php if (count($this->data['methodOptions']) > 0): ?>
77-
<div class="mdl-card mdl-shadow--8dp">
83+
<!-- if there are two cards, remove the right margin so the buttons align with the edge of the card. -->
84+
<div class="mdl-card fixed-width mdl-shadow--8dp" style="<?= count($this->data['methodOptions']) == 2 ? 'margin-right: 0px' : '' ?>">
7885
<div class="mdl-card__title center">
7986
<h1 class="mdl-card__title-text">
8087
<?= $this->t('{material:review:methods_header}') ?>
8188
</h1>
8289
</div>
8390

84-
<div class="mdl-card__title center" >
91+
<div class="mdl-card__title" >
8592
<ul class="mdl-card__subtitle-text mdl-list">
8693
<?php foreach ($this->data['methodOptions'] as $method): ?>
8794
<li class="mdl-list__item mdl-list__item--two-line">
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ i.material-icons.mdl-typography--display-4 {
137137
margin: 1em;
138138
}
139139

140+
/* cards on profile review needed to have consistent width */
141+
.mdl-card.fixed-width {
142+
width: 365px; /* takes into acocunt "... (10 remaining)" for appropriate width */
143+
}
144+
140145
/* don't want images to be too small on cards */
141146
.mdl-card__media > img {
142147
min-width: 20%;

0 commit comments

Comments
 (0)