Skip to content

Commit 98842a1

Browse files
Results uat changes (#260)
* implement UAT changes to results page
1 parent 8a42251 commit 98842a1

File tree

5 files changed

+133
-143
lines changed

5 files changed

+133
-143
lines changed

frontend/app/.server/locales/estimator-en.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@
181181
"intro": "The monthly benefit amount you could receive depends on whether your partner is receiving the Canada Disability Benefit.",
182182
"non-cdb-partner-result": "If your partner is not receiving the Canada Disability Benefit, you could receive a monthly amount of <strong>{{result}}</strong>."
183183
},
184-
"note": "<strong>Please note that you may be able to receive retroactive payments for past months that you were elligible, but not for months before June 2025.</strong>",
184+
"note": "<strong>Please note that you may be able to receive back payments for past months that you were eligible, but not for any time before the launch of the benefit (July 2025).</strong>",
185185
"single": {
186186
"intro": "You could be eligible to receive:",
187187
"result": "A monthly amount of <strong>{{result}}</strong> from the Canada Disability Benefit."
188188
}
189189
}
190190
},
191-
"disclaimer-alert": "This estimate is based on the information you provided and assumes that you meet the eligibility criteria for the Canada Disability Benefit.",
191+
"disclaimer-alert": "This is only an estimate based on the information you provided.",
192192
"form-data-summary": {
193193
"edit-aria-labels": {
194194
"marital-status": "Edit your marital status",

frontend/app/.server/locales/estimator-fr.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@
184184
"intro": "Le montant de la prestation mensuelle que vous pourriez recevoir dépend du fait que votre partenaire reçoive ou non la Prestation canadienne pour les personnes handicapées.",
185185
"non-cdb-partner-result": "Si votre partenaire ne reçoit pas la Prestation canadienne pour les personnes handicapées, vous pourriez recevoir un montant mensuel de <strong>{{result}}</strong>."
186186
},
187-
"note": "<strong>Veuillez noter que vous pourriez recevoir des paiements rétroactifs pour les mois précédents auxquels vous étiez admissible, mais pas pour les mois antérieurs à juin 2025.</strong>",
187+
"note": "<strong>Veuillez noter que vous pourriez recevoir des paiements rétroactifs pour les mois passés durant lesquels vous étiez admissible, mais pas pour la période antérieure au lancement de la prestation (juillet 2025).</strong>",
188188
"single": {
189189
"intro": "Vous pourriez être admissible à recevoir\u00a0:",
190190
"result": "Un montant mensuel de <strong>{{result}}</strong> provenant de la Prestation canadienne pour les personnes handicapées."
191191
}
192192
}
193193
},
194-
"disclaimer-alert": " Cette estimation est basée sur l'information que vous avez fournie et suppose que vous répondez aux critères d'admissibilité à la Prestation canadienne pour les personnes handicapées.",
194+
"disclaimer-alert": "Cette estimation est basée sur l'information que vous avez fournie.",
195195
"form-data-summary": {
196196
"edit-aria-labels": {
197197
"marital-status": "Modifier votre état matrimonial",

frontend/app/routes/estimator/results.tsx

+27-29
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default function Results({ actionData, loaderData, matches, params }: Rou
150150
<div className="flex flex-col space-y-12">
151151
<div className="md:grid md:grid-cols-3 md:gap-12">
152152
<section className="col-span-2 row-span-1 space-y-6">
153-
<h2 className="font-lato mb-4 text-lg font-bold">{t('estimator:results.content.your-estimate.header')}</h2>
153+
<h2 className="font-lato mb-4 text-2xl font-bold">{t('estimator:results.content.your-estimate.header')}</h2>
154154

155155
{(loaderData.results.maritalStatus === 'single-divorced-separated-or-widowed' || estimationEqualsSplitBenefits) && (
156156
<>
@@ -210,34 +210,32 @@ export default function Results({ actionData, loaderData, matches, params }: Rou
210210
)}
211211
</p>
212212

213-
<h2 className="font-lato mb-4 text-lg font-bold">{t('estimator:results.content.next-steps.header')}</h2>
214-
215-
<div className="my-6 space-y-6 rounded border border-[#6F6F6F] px-8 py-6">
216-
<div>
217-
<ButtonLink
218-
target="_blank"
219-
data-gc-analytics-customclick={adobeAnalytics.getCustomClick('Results:Apply button')}
220-
to={i18n.language === 'fr' ? ESTIMATOR_CDB_APPLY_URL_FR : ESTIMATOR_CDB_APPLY_URL_EN}
221-
variant="primary"
222-
startIcon={faExternalLink}
223-
size="xl"
224-
>
225-
{t('estimator:results.content.next-steps.apply-cdb')}
226-
</ButtonLink>
227-
</div>
228-
229-
<div>
230-
<ButtonLink
231-
target="_blank"
232-
data-gc-analytics-customclick={adobeAnalytics.getCustomClick('Results:Learn more button')}
233-
to={i18n.language === 'fr' ? ESTIMATOR_CDB_URL_FR : ESTIMATOR_CDB_URL_EN}
234-
variant="alternative"
235-
startIcon={faExternalLink}
236-
size="xl"
237-
>
238-
{t('estimator:results.content.next-steps.learn-more')}
239-
</ButtonLink>
240-
</div>
213+
<h2 className="font-lato mt-15 mb-5 text-2xl font-bold">{t('estimator:results.content.next-steps.header')}</h2>
214+
215+
<div>
216+
<ButtonLink
217+
target="_blank"
218+
data-gc-analytics-customclick={adobeAnalytics.getCustomClick('Results:Apply button')}
219+
to={i18n.language === 'fr' ? ESTIMATOR_CDB_APPLY_URL_FR : ESTIMATOR_CDB_APPLY_URL_EN}
220+
variant="primary"
221+
startIcon={faExternalLink}
222+
size="xl"
223+
>
224+
{t('estimator:results.content.next-steps.apply-cdb')}
225+
</ButtonLink>
226+
</div>
227+
228+
<div>
229+
<ButtonLink
230+
target="_blank"
231+
data-gc-analytics-customclick={adobeAnalytics.getCustomClick('Results:Learn more button')}
232+
to={i18n.language === 'fr' ? ESTIMATOR_CDB_URL_FR : ESTIMATOR_CDB_URL_EN}
233+
variant="alternative"
234+
startIcon={faExternalLink}
235+
size="xl"
236+
>
237+
{t('estimator:results.content.next-steps.learn-more')}
238+
</ButtonLink>
241239
</div>
242240
</section>
243241
<section className="col-span-1 row-span-2 space-y-4">{DataSummary(loaderData.formattedResults)}</section>

frontend/e2e/__snapshots__/estimator/results.spec.ts/Navigating-to-en-results-renders-the-english-results-page-1.txt

+49-54
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@
2929
</svg>
3030
</div>
3131
<div class="overflow-auto border-l-4 pt-4 pb-2.5 pl-6 border-l-cyan-700">
32-
<p>
33-
This estimate is based on the information you provided and assumes that
34-
you meet the eligibility criteria for the Canada Disability Benefit.
35-
</p>
32+
<p>This is only an estimate based on the information you provided.</p>
3633
</div>
3734
</div>
3835
<div class="flex flex-col space-y-12">
3936
<div class="md:grid md:grid-cols-3 md:gap-12">
4037
<section class="col-span-2 row-span-1 space-y-6">
41-
<h2 class="font-lato mb-4 text-lg font-bold">Your estimate</h2>
38+
<h2 class="font-lato mb-4 text-2xl font-bold">Your estimate</h2>
4239
<p class="mb-4">You could be eligible to receive:</p>
4340
<ul class="list-disc space-y-1 pl-7">
4441
<li>
@@ -48,59 +45,57 @@
4845
</ul>
4946
<p>
5047
<strong
51-
>Please note that you may be able to receive retroactive payments
52-
for past months that you were elligible, but not for months before
53-
June 2025.</strong
48+
>Please note that you may be able to receive back payments for past
49+
months that you were eligible, but not for any time before the
50+
launch of the benefit (July 2025).</strong
5451
>
5552
</p>
56-
<h2 class="font-lato mb-4 text-lg font-bold">Next steps</h2>
57-
<div class="my-6 space-y-6 rounded border border-[#6F6F6F] px-8 py-6">
58-
<div>
59-
<a
60-
class="font-lato inline-flex items-center justify-center rounded-sm border align-middle no-underline outline-offset-4 px-6 py-3.5 text-base border-slate-700 bg-slate-700 text-white hover:bg-sky-800 focus:bg-sky-800"
61-
data-gc-analytics-customclick="ESDC-EDSC_CDB-PCH:Results:Apply button"
62-
href="https://www.canada.ca/en/services/benefits/disability/canada-disability-benefit.html"
63-
target="_blank"
64-
><svg
65-
aria-hidden="true"
66-
focusable="false"
67-
data-prefix="fas"
68-
data-icon="arrow-up-right-from-square"
69-
class="svg-inline--fa fa-arrow-up-right-from-square fa-fw me-1"
70-
role="img"
71-
xmlns="http://www.w3.org/2000/svg"
72-
viewBox="0 0 512 512"
73-
>
74-
<path
75-
fill="currentColor"
76-
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"
77-
></path></svg
78-
>Apply for the Canada Disability Benefit</a
53+
<h2 class="font-lato mt-15 mb-5 text-2xl font-bold">Next steps</h2>
54+
<div>
55+
<a
56+
class="font-lato inline-flex items-center justify-center rounded-sm border align-middle no-underline outline-offset-4 px-6 py-3.5 text-base border-slate-700 bg-slate-700 text-white hover:bg-sky-800 focus:bg-sky-800"
57+
data-gc-analytics-customclick="ESDC-EDSC_CDB-PCH:Results:Apply button"
58+
href="https://www.canada.ca/en/services/benefits/disability/canada-disability-benefit.html"
59+
target="_blank"
60+
><svg
61+
aria-hidden="true"
62+
focusable="false"
63+
data-prefix="fas"
64+
data-icon="arrow-up-right-from-square"
65+
class="svg-inline--fa fa-arrow-up-right-from-square fa-fw me-1"
66+
role="img"
67+
xmlns="http://www.w3.org/2000/svg"
68+
viewBox="0 0 512 512"
7969
>
80-
</div>
81-
<div>
82-
<a
83-
class="font-lato inline-flex items-center justify-center rounded-sm border align-middle no-underline outline-offset-4 px-6 py-3.5 text-base border-gray-200 bg-white text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:bg-gray-100 focus:text-blue-700"
84-
data-gc-analytics-customclick="ESDC-EDSC_CDB-PCH:Results:Learn more button"
85-
href="https://www.canada.ca/en/services/benefits/disability/canada-disability-benefit.html"
86-
target="_blank"
87-
><svg
88-
aria-hidden="true"
89-
focusable="false"
90-
data-prefix="fas"
91-
data-icon="arrow-up-right-from-square"
92-
class="svg-inline--fa fa-arrow-up-right-from-square fa-fw me-1"
93-
role="img"
94-
xmlns="http://www.w3.org/2000/svg"
95-
viewBox="0 0 512 512"
96-
>
97-
<path
98-
fill="currentColor"
99-
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"
100-
></path></svg
101-
>Learn more about the Canada Disability Benefit</a
70+
<path
71+
fill="currentColor"
72+
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"
73+
></path></svg
74+
>Apply for the Canada Disability Benefit</a
75+
>
76+
</div>
77+
<div>
78+
<a
79+
class="font-lato inline-flex items-center justify-center rounded-sm border align-middle no-underline outline-offset-4 px-6 py-3.5 text-base border-gray-200 bg-white text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:bg-gray-100 focus:text-blue-700"
80+
data-gc-analytics-customclick="ESDC-EDSC_CDB-PCH:Results:Learn more button"
81+
href="https://www.canada.ca/en/services/benefits/disability/canada-disability-benefit.html"
82+
target="_blank"
83+
><svg
84+
aria-hidden="true"
85+
focusable="false"
86+
data-prefix="fas"
87+
data-icon="arrow-up-right-from-square"
88+
class="svg-inline--fa fa-arrow-up-right-from-square fa-fw me-1"
89+
role="img"
90+
xmlns="http://www.w3.org/2000/svg"
91+
viewBox="0 0 512 512"
10292
>
103-
</div>
93+
<path
94+
fill="currentColor"
95+
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"
96+
></path></svg
97+
>Learn more about the Canada Disability Benefit</a
98+
>
10499
</div>
105100
</section>
106101
<section class="col-span-1 row-span-2 space-y-4">

0 commit comments

Comments
 (0)