Skip to content

Commit 20d24ea

Browse files
authored
Merge pull request #5248 from nhsuk/next
Version 5.9.0
2 parents 9fc6975 + 71ef40d commit 20d24ea

178 files changed

Lines changed: 4012 additions & 1058 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ GEM
109109
array_enum (1.6.0)
110110
activemodel
111111
asciidoctor (2.0.26)
112-
asciidoctor-diagram (3.0.1)
112+
asciidoctor-diagram (3.1.0)
113113
asciidoctor (>= 1.5.7, < 3.x)
114114
rexml
115115
ast (2.4.3)
116116
attr_required (1.0.2)
117117
aws-eventstream (1.4.0)
118-
aws-partitions (1.1182.0)
118+
aws-partitions (1.1183.0)
119119
aws-sdk-accessanalyzer (1.81.0)
120120
aws-sdk-core (~> 3, >= 3.234.0)
121121
aws-sigv4 (~> 1.5)
@@ -127,7 +127,7 @@ GEM
127127
bigdecimal
128128
jmespath (~> 1, >= 1.6.1)
129129
logger
130-
aws-sdk-ec2 (1.577.0)
130+
aws-sdk-ec2 (1.578.0)
131131
aws-sdk-core (~> 3, >= 3.234.0)
132132
aws-sigv4 (~> 1.5)
133133
aws-sdk-ecr (1.113.0)
@@ -157,7 +157,7 @@ GEM
157157
bigdecimal (3.3.1)
158158
bindata (2.5.1)
159159
bindex (0.8.1)
160-
bootsnap (1.18.6)
160+
bootsnap (1.19.0)
161161
msgpack (~> 1.2)
162162
brakeman (7.1.1)
163163
racc

app/assets/stylesheets/components/_card.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
&--offset {
6767
background-color: rgba(nhsuk-colour("grey-5"), 0.5);
6868
}
69+
70+
&--disabled {
71+
opacity: 0.5;
72+
pointer-events: none;
73+
}
6974
}
7075

7176
.app-card--compact {

app/components/app_activity_log_component.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def initialize(team:, patient:, session: nil)
4747
.gillick_assessments
4848
.includes(:performed_by)
4949
.order(:created_at)
50-
.then { |scope| session ? scope.where_session(session) : scope }
50+
.then { |scope| session ? scope.for_session(session) : scope }
5151

5252
@notes =
5353
@patient
@@ -83,7 +83,7 @@ def initialize(team:, patient:, session: nil)
8383
@patient
8484
.pre_screenings
8585
.includes(:performed_by)
86-
.then { |scope| session ? scope.where_session(session) : scope }
86+
.then { |scope| session ? scope.for_session(session) : scope }
8787

8888
@triages =
8989
@patient

app/components/app_card_component.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def initialize(
4545
secondary: false,
4646
compact: false,
4747
filters: false,
48-
section: false
48+
section: false,
49+
disabled: false
4950
)
5051
@link_to = link_to
5152
@colour = colour
@@ -54,6 +55,7 @@ def initialize(
5455
@compact = compact
5556
@filters = filters
5657
@section = section
58+
@disabled = disabled
5759
end
5860

5961
private
@@ -69,7 +71,8 @@ def card_classes
6971
"app-card",
7072
("app-card--compact" if @compact),
7173
("app-card--#{@colour}" if @colour.present?),
72-
("app-filters" if @filters)
74+
("app-filters" if @filters),
75+
("app-card--disabled" if @disabled)
7376
].compact.join(" ")
7477
end
7578

app/components/app_gillick_assessment_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def gillick_assessment
1818
patient
1919
.gillick_assessments
2020
.order(created_at: :desc)
21-
.where_session(session)
21+
.for_session(session)
2222
.find_by(programme:)
2323
end
2424

app/components/app_patient_search_form_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<% end %>
3131
<% end %>
3232

33-
<% if tallying_enabled? && (show_still_to_vaccinate || show_eligible_children) %>
33+
<% if show_still_to_vaccinate || show_eligible_children %>
3434
<%= f.govuk_check_boxes_fieldset :show_only,
3535
multiple: true,
3636
legend: { text: "Show only", size: "s" },

app/components/app_patient_search_form_component.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def initialize(
5454
delegate :format_year_group,
5555
:govuk_button_link_to,
5656
:govuk_details,
57-
:tallying_enabled?,
5857
to: :helpers
5958

6059
def open_details?

app/components/app_patient_session_record_component.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ def vaccination_record
4545

4646
def default_vaccinate_form
4747
pre_screening_confirmed = patient.pre_screenings.today.exists?(programme:)
48-
session_date = session.session_dates.today.first
4948

5049
VaccinateForm.new(
5150
current_user:,
5251
patient:,
53-
session_date:,
52+
session:,
5453
programme:,
5554
pre_screening_confirmed:
5655
)

app/components/app_session_details_summary_component.rb

Lines changed: 0 additions & 73 deletions
This file was deleted.

app/components/app_session_overview_tallies_component.html.erb renamed to app/components/app_session_overview_component.html.erb

File renamed without changes.

0 commit comments

Comments
 (0)