@defra-fish/gafl-webapp-service 1.59.0-rc.2 → 1.59.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra-fish/gafl-webapp-service",
|
|
3
|
-
"version": "1.59.0-rc.
|
|
3
|
+
"version": "1.59.0-rc.4",
|
|
4
4
|
"description": "The websales frontend for the GAFL service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"prepare": "gulp --gulpfile build/gulpfile.cjs"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@defra-fish/business-rules-lib": "1.59.0-rc.
|
|
40
|
-
"@defra-fish/connectors-lib": "1.59.0-rc.
|
|
39
|
+
"@defra-fish/business-rules-lib": "1.59.0-rc.4",
|
|
40
|
+
"@defra-fish/connectors-lib": "1.59.0-rc.4",
|
|
41
41
|
"@defra/hapi-gapi": "^2.0.0",
|
|
42
42
|
"@hapi/boom": "^9.1.2",
|
|
43
43
|
"@hapi/catbox-redis": "^6.0.2",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"./gafl-jest-matchers.js"
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "5e8bd6ced8acd15794692b128dbac03afacd2d98"
|
|
84
84
|
}
|
package/src/locales/cy.json
CHANGED
|
@@ -478,8 +478,8 @@
|
|
|
478
478
|
"licence_type_12m": "12 mis",
|
|
479
479
|
"licence_type_1d": "1 diwrnod",
|
|
480
480
|
"licence_type_8d": "8 niwrnod",
|
|
481
|
-
"licence_type_attended_rods_note": "Dim ond
|
|
482
|
-
"licence_type_byelaws": "is-ddeddfau pysgota
|
|
481
|
+
"licence_type_attended_rods_note": "Dim ond deiliad y drwydded all ddefnyddio’r wialen ac mae’n rhaid cadw golwg ar y wialen drwy’r amser. Mae’n rhaid i ddeiliaid y drwydded ddilyn yr ",
|
|
482
|
+
"licence_type_byelaws": "is-ddeddfau pysgota â gwialen (yn agor mewn tab newydd)",
|
|
483
483
|
"licence_type_error_choose": "Dewiswch un o’r mathau o drwyddedau pysgota",
|
|
484
484
|
"licence_type_na": "Nid oes cyfnodau byrrach ar gael ar gyfer y math hwn o drwydded.",
|
|
485
485
|
"licence_type_payment_edge_case": "Mae’n rhaid i chi gwblhau eich taliad cyn 11:30pm ar 31 Mawrth 2025 i dalu’r pris a ddangosir",
|
|
@@ -491,15 +491,17 @@
|
|
|
491
491
|
"licence_type_radio_trout_two_rod": "Brithyllod a physgod bras (hyd at 2 wialen)",
|
|
492
492
|
"licence_type_radio_trout_two_rod_payment_summary": "Brithyllod a physgod bras (hyd at 2 wialen)",
|
|
493
493
|
"licence_type_rules": "rheolau pysgota â gwialen (yn agor ar dudalen newydd)",
|
|
494
|
-
"licence_type_salmon_acr_note_1": "
|
|
495
|
-
"licence_type_salmon_acr_note_2": "
|
|
496
|
-
"licence_type_salmon_acr_note_3": "
|
|
497
|
-
"
|
|
494
|
+
"licence_type_salmon_acr_note_1": "Mae’n cwmpasu pysgota ar gyfer eogiaid a brithyllod y môr gan ddefnyddio hyd at 2 wialen, yn ogystal â brithyllod anfudol a physgod dŵr croyw gan ddefnyddio hyd at 3 gwialen.",
|
|
495
|
+
"licence_type_salmon_acr_note_2": "Mae’n rhaid i chi ",
|
|
496
|
+
"licence_type_salmon_acr_note_3": " pan fyddwch wedi gorffen pysgota am y flwyddyn, hyd yn oed os nad ydych wedi dal unrhyw eogiaid na brithyllod y môr.",
|
|
497
|
+
"licence_type_salmon_acr_note_2_BOBO": "Mae’n rhaid iddynt ",
|
|
498
|
+
"licence_type_salmon_acr_note_3_BOBO": " pan fyddant wedi gorffen pysgota am y flwyddyn, hyd yn oed os nad ydynt wedi dal unrhyw eogiaid na brithyllod y môr.",
|
|
499
|
+
"licence_type_salmon_acr_note_link": "gyflwyno ffurflen ddalfa flynyddol (yn agor mewn tab newydd)",
|
|
498
500
|
"licence_type_salmon_junior": "You’ll only need this licence if you are specifically fishing for salmon or sea trout.",
|
|
499
|
-
"licence_type_title_other": "Pa fath o drwydded
|
|
500
|
-
"licence_type_title_you": "Pa drwydded
|
|
501
|
-
"
|
|
502
|
-
"
|
|
501
|
+
"licence_type_title_other": "Pa fath o drwydded sydd ei hangen arnynt?",
|
|
502
|
+
"licence_type_title_you": "Pa fath o drwydded sydd ei hangen arnoch?",
|
|
503
|
+
"licence_type_trout_three_rod": "Mae’n cwmpasu brithyllod anfudol a phob pysgodyn dŵr croyw, ond nid eogiaid na brithyllod y môr. Mae’r holl ddulliau pysgota gan ddefnyddio hyd at 3 gwialen wedi’u cwmpasu. Er enghraifft pysgota arbenigol ar gyfer carp gan ddefnyddio 3 gwialen ar yr un pryd.",
|
|
504
|
+
"licence_type_trout_two_rod": "Mae’n cwmpasu brithyllod anfudol a phob pysgodyn dŵr croyw, ond nid eogiaid na brithyllod y môr. Mae’r holl ddulliau pysgota gan ddefnyddio hyd at 2 wialen wedi’u cwmpasu.",
|
|
503
505
|
"name_abbr_hint": "Peidiwch â defnyddio byrfoddau na llysenwau",
|
|
504
506
|
"name_first_empty_error_msg": "Rhowch yr enw cyntaf",
|
|
505
507
|
"name_first_empty_error": "Rhowch enw cyntaf deiliad y drwydded",
|
package/src/locales/en.json
CHANGED
|
@@ -478,8 +478,8 @@
|
|
|
478
478
|
"licence_type_12m": "12 months",
|
|
479
479
|
"licence_type_1d": "1 day",
|
|
480
480
|
"licence_type_8d": "8 days",
|
|
481
|
-
"licence_type_attended_rods_note": "Rods
|
|
482
|
-
"licence_type_byelaws": "
|
|
481
|
+
"licence_type_attended_rods_note": "Rods must only be used by the licence holder and must be attended at all times. You must follow the ",
|
|
482
|
+
"licence_type_byelaws": "rod fishing byelaws (opens in new tab)",
|
|
483
483
|
"licence_type_error_choose": "Choose one of the fishing licence types",
|
|
484
484
|
"licence_type_na": "Shorter lengths are not available for this licence type",
|
|
485
485
|
"licence_type_payment_edge_case": "You must complete payment before 11:30pm on 31 March 2025 to get the price shown",
|
|
@@ -491,15 +491,17 @@
|
|
|
491
491
|
"licence_type_radio_trout_two_rod": "Trout and coarse (up to 2 rods)",
|
|
492
492
|
"licence_type_radio_trout_two_rod_payment_summary": "Trout and coarse (up to 2 rods)",
|
|
493
493
|
"licence_type_rules": "rod fishing rules (opens in new tab)",
|
|
494
|
-
"licence_type_salmon_acr_note_1": "
|
|
495
|
-
"licence_type_salmon_acr_note_2": "
|
|
496
|
-
"licence_type_salmon_acr_note_3": "
|
|
497
|
-
"
|
|
494
|
+
"licence_type_salmon_acr_note_1": "Covers salmon and sea trout using up to 2 rods and also non-migratory trout and all freshwater fish using up to 3 rods.",
|
|
495
|
+
"licence_type_salmon_acr_note_2": "You must ",
|
|
496
|
+
"licence_type_salmon_acr_note_3": " when you have finished fishing for the year, even if you did not catch any salmon or sea trout or did not go fishing.",
|
|
497
|
+
"licence_type_salmon_acr_note_2_BOBO": "The licence holder must ",
|
|
498
|
+
"licence_type_salmon_acr_note_3_BOBO": " when they have finished fishing for the year, even if they did not catch any salmon or sea trout or did not go fishing.",
|
|
499
|
+
"licence_type_salmon_acr_note_link": "report an annual catch return (opens in new tab)",
|
|
498
500
|
"licence_type_salmon_junior": "You’ll only need this licence if you are specifically fishing for salmon or sea trout.",
|
|
499
|
-
"licence_type_title_other": "Which type of licence do they
|
|
500
|
-
"licence_type_title_you": "Which type of licence do you
|
|
501
|
-
"
|
|
502
|
-
"
|
|
501
|
+
"licence_type_title_other": "Which type of licence do they need?",
|
|
502
|
+
"licence_type_title_you": "Which type of licence do you need?",
|
|
503
|
+
"licence_type_trout_three_rod": "Covers non-migratory trout and all freshwater fish, but not salmon or sea trout. All rod fishing methods using up to 3 rods are covered. For example, specialist carp fishing using 3 rods at the same time.",
|
|
504
|
+
"licence_type_trout_two_rod": "Covers non-migratory trout and all freshwater fish, but not salmon or sea trout. All rod fishing methods using up to 2 rods are covered.",
|
|
503
505
|
"name_abbr_hint": "Do not use abbreviations or nicknames",
|
|
504
506
|
"name_first_empty_error_msg": "Enter the first name",
|
|
505
507
|
"name_first_empty_error": "Enter the licence holder’s first name",
|
|
@@ -15,29 +15,26 @@
|
|
|
15
15
|
%}
|
|
16
16
|
|
|
17
17
|
{% set troutAndCoarse2Rod %}
|
|
18
|
-
<p class="govuk-body-m">
|
|
19
|
-
{{ mssgs.licence_type_troute_two_rod }}
|
|
20
|
-
<a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.freshWaterFishingRules }}">{{ mssgs.licence_type_rules }}</a>{{ mssgs.and }}<a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.localByelaws }}">{{ mssgs.licence_type_byelaws }}</a>{{ mssgs.full_stop }}
|
|
21
|
-
</p>
|
|
18
|
+
<p class="govuk-body-m"> {{ mssgs.licence_type_trout_two_rod }}</p>
|
|
22
19
|
{% endset -%}
|
|
23
20
|
|
|
24
21
|
{% set troutAndCoarse3Rod %}
|
|
25
|
-
<p class="govuk-body-m">
|
|
26
|
-
{{ mssgs.licence_type_troute_three_rod }}
|
|
27
|
-
<a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.freshWaterFishingRules }}">{{ mssgs.licence_type_rules }}</a>{{ mssgs.and }}<a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.localByelaws }}">{{ mssgs.licence_type_byelaws }}</a>{{ mssgs.full_stop }}
|
|
28
|
-
</p>
|
|
22
|
+
<p class="govuk-body-m"> {{ mssgs.licence_type_trout_three_rod }}</p>
|
|
29
23
|
{% endset -%}
|
|
30
24
|
|
|
31
25
|
{% set salmonAndSeaTrout %}
|
|
32
26
|
{% if data.hasJunior %}<p class="govuk-body-m">{{ mssgs.licence_type_salmon_junior }}</p>{% endif %}
|
|
33
|
-
{{ govukWarningText({
|
|
34
|
-
text: mssgs.licence_type_salmon_acr_warning,
|
|
35
|
-
iconFallbackText: "Warning",
|
|
36
|
-
classes: "govuk-!-margin-top-6"
|
|
37
|
-
}) }}
|
|
38
27
|
<p class="govuk-body-m">
|
|
39
|
-
{{ mssgs.licence_type_salmon_acr_note_1 }}
|
|
40
|
-
|
|
28
|
+
{{ mssgs.licence_type_salmon_acr_note_1 }}</p>
|
|
29
|
+
<p class="govuk-body-m">
|
|
30
|
+
{% if data.isLicenceForYou %}
|
|
31
|
+
{{ mssgs.licence_type_salmon_acr_note_2 }} <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.catchReturn }}">{{ mssgs.licence_type_salmon_acr_note_link }}</a>
|
|
32
|
+
{{ mssgs.licence_type_salmon_acr_note_3 }}
|
|
33
|
+
{% else %}
|
|
34
|
+
{{ mssgs.licence_type_salmon_acr_note_2_BOBO }} <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.catchReturn }}">{{ mssgs.licence_type_salmon_acr_note_link }}</a>
|
|
35
|
+
{{ mssgs.licence_type_salmon_acr_note_3_BOBO }}
|
|
36
|
+
{% endif %}
|
|
37
|
+
</p>
|
|
41
38
|
{% endset -%}
|
|
42
39
|
|
|
43
40
|
{% set items = [
|
|
@@ -59,7 +56,6 @@
|
|
|
59
56
|
id: 'selector-' + data.licenseTypes.salmonAndSeaTrout,
|
|
60
57
|
text: mssgs.licence_type_radio_salmon,
|
|
61
58
|
value: "salmon-and-sea-trout",
|
|
62
|
-
hint: { text: mssgs.licence_type_radio_salmon_hint },
|
|
63
59
|
checked: payload['licence-type'] === data.licenseTypes.salmonAndSeaTrout,
|
|
64
60
|
conditional: { html: salmonAndSeaTrout }
|
|
65
61
|
}
|
|
@@ -67,7 +63,8 @@
|
|
|
67
63
|
%}
|
|
68
64
|
|
|
69
65
|
{% block pageContent %}
|
|
70
|
-
<p class="govuk-body-m">{{ mssgs.licence_type_attended_rods_note }}</
|
|
66
|
+
<p class="govuk-body-m">{{ mssgs.licence_type_attended_rods_note }}<a class="govuk-link" rel="noreferrer noopener" target="_blank" href="{{ data.uri.freshWaterFishingRules }}">{{ mssgs.licence_type_byelaws }}</a>{{ mssgs.full_stop }}
|
|
67
|
+
</p>
|
|
71
68
|
{{ govukRadios({
|
|
72
69
|
idPrefix: "licence-type",
|
|
73
70
|
name: "licence-type",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LICENCE_TYPE, FRESHWATER_FISING_RULES, LOCAL_BYELAWS } from '../../../uri.js'
|
|
1
|
+
import { LICENCE_TYPE, FRESHWATER_FISING_RULES, LOCAL_BYELAWS, CATCH_RETURN } from '../../../uri.js'
|
|
2
2
|
import pageRoute from '../../../routes/page-route.js'
|
|
3
3
|
import { pricingDetail } from '../../../processors/pricing-summary.js'
|
|
4
4
|
import Joi from 'joi'
|
|
@@ -29,7 +29,8 @@ export const getData = async request => {
|
|
|
29
29
|
hasJunior: concessionHelper.hasJunior(permission),
|
|
30
30
|
uri: {
|
|
31
31
|
freshWaterFishingRules: FRESHWATER_FISING_RULES.uri,
|
|
32
|
-
localByelaws: LOCAL_BYELAWS.uri
|
|
32
|
+
localByelaws: LOCAL_BYELAWS.uri,
|
|
33
|
+
catchReturn: CATCH_RETURN.uri
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
package/src/uri.js
CHANGED
|
@@ -86,3 +86,4 @@ export const GET_PRICING_LENGTHS = { uri: '/buy/get-pricing/lengths' }
|
|
|
86
86
|
|
|
87
87
|
export const FRESHWATER_FISING_RULES = { uri: 'https://www.gov.uk/freshwater-rod-fishing-rules' }
|
|
88
88
|
export const LOCAL_BYELAWS = { uri: 'https://www.gov.uk/government/collections/local-fishing-byelaws' }
|
|
89
|
+
export const CATCH_RETURN = { uri: 'https://www.gov.uk/catch-return' }
|