@ministryofjustice/hmpps-mpop-frontend-components-lib 0.0.16 → 0.0.18
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/README.md +3 -0
- package/dist/components/supervision-package/partials/_in-flight.test.d.ts +1 -0
- package/dist/mpop/components/person-header/template.njk +4 -14
- package/dist/mpop/components/supervision-package/partials/_in-flight.njk +3 -0
- package/dist/mpop/components/supervision-package/partials/_warnings.njk +9 -1
- package/dist/mpop/components/supervision-package/template.njk +15 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,9 @@ You can view the npm page for this package here https://www.npmjs.com/package/@m
|
|
|
90
90
|
|
|
91
91
|
5. Publish the GitHub release (i.e. mark it as not a draft) to trigger the publish workflow and publish the package to npm.
|
|
92
92
|
|
|
93
|
+
This can be done by navigating to the [releases page](https://github.com/ministryofjustice/hmpps-mpop-frontend-components-lib/releases),
|
|
94
|
+
selecting the pencil icon in the top right corner of the release, and confirming the release by clicking "Publish release".
|
|
95
|
+
|
|
93
96
|
### Notes
|
|
94
97
|
|
|
95
98
|
- The GitHub release tag should be `v<version>`, where `<version>` matches the version in `package.json`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,19 +19,9 @@
|
|
|
19
19
|
</ul>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
<div class='person-header__risk-
|
|
24
|
-
{
|
|
25
|
-
<h2 class='govuk-heading-s govuk-!-margin-0' data-qa='ogrsLabel'>OGRS</h2>
|
|
26
|
-
{% endif %}
|
|
27
|
-
|
|
28
|
-
{% if params.rosh %}
|
|
29
|
-
<h2 class='govuk-heading-s govuk-!-margin-0' data-qa='roshLabel'>ROSH</h2>
|
|
30
|
-
{% endif %}
|
|
22
|
+
{% if params.riskBadges and (params.riskBadges | trim) %}
|
|
23
|
+
<div class='person-header__risk-panel'>
|
|
24
|
+
<div class='person-header__risk-tags' data-qa='riskBadges'>{{ params.riskBadges | safe }}</div>
|
|
31
25
|
</div>
|
|
32
|
-
|
|
33
|
-
{% if params.riskFlags and params.riskFlags.length %}
|
|
34
|
-
<h2 class='govuk-heading-s govuk-!-margin-0' data-qa='riskAlertBadges'>Risk alert badges</h2>
|
|
35
|
-
{% endif %}
|
|
36
|
-
</div>
|
|
26
|
+
{% endif %}
|
|
37
27
|
</div>
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
{% if
|
|
1
|
+
{% if phaseCode == 'SPNS' %}
|
|
2
|
+
<div class='govuk-warning-text'>
|
|
3
|
+
<span class='govuk-warning-text__icon' aria-hidden='true'>!</span>
|
|
4
|
+
<strong class='govuk-warning-text__text'>
|
|
5
|
+
<span class='govuk-visually-hidden'>Warning</span>
|
|
6
|
+
The supervision package shown may change. It is based on data that needs review.
|
|
7
|
+
</strong>
|
|
8
|
+
</div>
|
|
9
|
+
{% elseif params.context.sentences | hasBreachedSentence %}
|
|
2
10
|
<div class='govuk-warning-text'>
|
|
3
11
|
<span class='govuk-warning-text__icon' aria-hidden='true'>!</span>
|
|
4
12
|
<strong class='govuk-warning-text__text'>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{% set hasSpecialStatus = params.context.offenderPersonalDisorderPathway or params.context.sentences | hasBreachedSentence or params.context.sentences | isInCustody or params.context.sentences | isAtLarge or params.context.integratedOffenderManagementRedRated %}
|
|
4
4
|
{% set sentenceTypeValue = params.context | sentenceType %}
|
|
5
5
|
{% set phaseCode = params.currentPhase.phase.code | upper %}
|
|
6
|
-
{% set showPhaseColumn = phaseCode == 'INIT' or phaseCode == 'STD' or phaseCode == 'FTHRD' or phaseCode == 'IOM' or phaseCode == 'OPD' %}
|
|
6
|
+
{% set showPhaseColumn = phaseCode == 'INIT' or phaseCode == 'STD' or phaseCode == 'FTHRD' or phaseCode == 'IOM' or phaseCode == 'OPD' or phaseCode == 'SPNS' %}
|
|
7
7
|
{% set lifeCategoryCode = params.context.liferCategory.code | upper %}
|
|
8
8
|
{% set sentence = params.context.sentences | getPrimarySentence %}
|
|
9
9
|
{% set forename = params.context.name.forename %}
|
|
@@ -40,13 +40,19 @@
|
|
|
40
40
|
{% endif %}
|
|
41
41
|
<div class='{{ columnClass }}'>
|
|
42
42
|
{% include './partials/_warnings.njk' %}
|
|
43
|
-
{% include './partials/_tier.njk' %}
|
|
44
|
-
{% include './partials/_package-creation-date.njk' %}
|
|
45
43
|
|
|
46
44
|
{% if not params.currentPhase and params.oasysReviewHref %}
|
|
47
|
-
<p class='govuk-body'><a href='{{ params.oasysReviewHref }}' class='govuk-link govuk-link--no-visited-state'>Start an OASys review (opens in new tab)</a> to confirm {{ forename}}
|
|
45
|
+
<p class='govuk-body'><a href='{{ params.oasysReviewHref }}' class='govuk-link govuk-link--no-visited-state' target='_blank' rel='noopener noreferrer'>Start an OASys review (opens in new tab)</a> to confirm {{ forename}}’s supervision package. Until then, follow national standards for appointments.</p>
|
|
46
|
+
{% elseif phaseCode == 'SPNS' and params.oasysReviewHref %}
|
|
47
|
+
<p class='govuk-body'><a href='{{ params.oasysReviewHref }}' class='govuk-link govuk-link--no-visited-state' target='_blank' rel='noopener noreferrer'>Complete an OASys review (opens in new tab)</a> to confirm {{ forename}}’s supervision package. Until then, follow national standards for appointments. </p>
|
|
48
|
+
<p class='govuk-body'>
|
|
49
|
+
Appointments do not count towards the package until it is confirmed.
|
|
50
|
+
</p>
|
|
48
51
|
{% endif %}
|
|
49
52
|
|
|
53
|
+
{% include './partials/_tier.njk' %}
|
|
54
|
+
{% include './partials/_package-creation-date.njk' %}
|
|
55
|
+
|
|
50
56
|
{% if params.historyHref %}
|
|
51
57
|
<p class='govuk-body'>
|
|
52
58
|
<a href='{{ params.historyHref }}' class='govuk-link govuk-link--no-visited-state'>
|
|
@@ -55,7 +61,7 @@
|
|
|
55
61
|
</p>
|
|
56
62
|
{% endif %}
|
|
57
63
|
|
|
58
|
-
{% if params.currentPhase %}
|
|
64
|
+
{% if params.currentPhase and phaseCode != 'SPNS' %}
|
|
59
65
|
{% include './partials/_next-appointment.njk' %}
|
|
60
66
|
{% endif %}
|
|
61
67
|
</div>
|
|
@@ -80,6 +86,9 @@
|
|
|
80
86
|
{% elseif phaseCode == 'FTHRD' %}
|
|
81
87
|
<h4 class='govuk-heading-s'>{{ params.currentPhase.phase.description | toTitleCase }} stage</h4>
|
|
82
88
|
{% include './partials/_final-third.njk' %}
|
|
89
|
+
{% elseif phaseCode == 'SPNS' %}
|
|
90
|
+
<h4 class='govuk-heading-s'>Appointments</h4>
|
|
91
|
+
{% include './partials/_in-flight.njk' %}
|
|
83
92
|
{% endif %}
|
|
84
93
|
|
|
85
94
|
{% include './partials/_view-appointments.njk' %}
|
|
@@ -87,7 +96,7 @@
|
|
|
87
96
|
{% endif %}
|
|
88
97
|
</div>
|
|
89
98
|
|
|
90
|
-
{% if
|
|
99
|
+
{% if phaseCode and phaseCode != 'SPNS' %}
|
|
91
100
|
{% include './partials/_action-buttons.njk' %}
|
|
92
101
|
{% endif %}
|
|
93
102
|
</div>
|