Skip to content

Commit 1401fc1

Browse files
authored
Merge pull request #5503 from nhsuk/next
Version 6.6.0
2 parents 51efe83 + bd1f64d commit 1401fc1

File tree

164 files changed

+2577
-1213
lines changed

Some content is hidden

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

164 files changed

+2577
-1213
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
7979
bin/rails parallel:load_schema
8080
- name: Run tests
8181
run: bin/rails parallel:spec
82+
- name: Run tests tagged for local_users
83+
run: bundle exec rspec -t local_users
84+
env:
85+
MAVIS__CIS2__ENABLED: false
8286

8387
seeds:
8488
name: Seeds

Gemfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ GEM
115115
ast (2.4.3)
116116
attr_required (1.0.2)
117117
aws-eventstream (1.4.0)
118-
aws-partitions (1.1190.0)
118+
aws-partitions (1.1191.0)
119119
aws-sdk-accessanalyzer (1.82.0)
120120
aws-sdk-core (~> 3, >= 3.239.1)
121121
aws-sigv4 (~> 1.5)
@@ -127,19 +127,19 @@ GEM
127127
bigdecimal
128128
jmespath (~> 1, >= 1.6.1)
129129
logger
130-
aws-sdk-ec2 (1.583.0)
130+
aws-sdk-ec2 (1.584.0)
131131
aws-sdk-core (~> 3, >= 3.239.1)
132132
aws-sigv4 (~> 1.5)
133133
aws-sdk-ecr (1.115.0)
134134
aws-sdk-core (~> 3, >= 3.239.1)
135135
aws-sigv4 (~> 1.5)
136-
aws-sdk-iam (1.136.0)
136+
aws-sdk-iam (1.137.0)
137137
aws-sdk-core (~> 3, >= 3.239.1)
138138
aws-sigv4 (~> 1.5)
139139
aws-sdk-kms (1.118.0)
140140
aws-sdk-core (~> 3, >= 3.239.1)
141141
aws-sigv4 (~> 1.5)
142-
aws-sdk-rds (1.301.0)
142+
aws-sdk-rds (1.302.0)
143143
aws-sdk-core (~> 3, >= 3.239.1)
144144
aws-sigv4 (~> 1.5)
145145
aws-sdk-s3 (1.206.0)
@@ -319,7 +319,7 @@ GEM
319319
jmespath (1.6.2)
320320
jsbundling-rails (1.3.1)
321321
railties (>= 6.0.0)
322-
json (2.16.0)
322+
json (2.17.1)
323323
json-jwt (1.17.0)
324324
activesupport (>= 4.2)
325325
aes_key_wrap
@@ -410,7 +410,7 @@ GEM
410410
logger
411411
rack (>= 2.2.3)
412412
rack-protection
413-
omniauth-rails_csrf_protection (2.0.0)
413+
omniauth-rails_csrf_protection (2.0.1)
414414
actionpack (>= 4.2)
415415
omniauth (~> 2.0)
416416
omniauth_openid_connect (0.8.0)
@@ -487,7 +487,7 @@ GEM
487487
rack_session_access (0.2.0)
488488
builder (>= 2.0.0)
489489
rack (>= 1.0.0)
490-
rackup (2.2.1)
490+
rackup (2.3.1)
491491
rack (>= 3)
492492
rails (8.1.1)
493493
actioncable (= 8.1.1)
@@ -510,7 +510,7 @@ GEM
510510
rails-html-sanitizer (1.6.2)
511511
loofah (~> 2.21)
512512
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
513-
rails_semantic_logger (4.18.0)
513+
rails_semantic_logger (4.19.0)
514514
rack
515515
railties (>= 5.1)
516516
semantic_logger (~> 4.16)
@@ -530,7 +530,7 @@ GEM
530530
ffi (~> 1.0)
531531
rbs (3.9.5)
532532
logger
533-
rdoc (6.16.0)
533+
rdoc (6.17.0)
534534
erb
535535
psych (>= 4.0.0)
536536
tsort
@@ -692,7 +692,7 @@ GEM
692692
solargraph (>= 0.48.0, <= 0.57)
693693
splunk-sdk-ruby (1.0.5)
694694
stackprof (0.2.27)
695-
stringio (3.1.8)
695+
stringio (3.1.9)
696696
swd (2.0.3)
697697
activesupport (>= 3)
698698
attr_required (>= 0.0.5)

app/assets/stylesheets/components/_header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@use "../vendor/nhsuk-frontend" as *;
22

3+
.nhsuk-header__navigation-item {
4+
padding-right: nhsuk-spacing(2);
5+
}
6+
37
.app-header__navigation-item--with-count {
48
.app-count {
59
min-width: nhsuk-spacing(4);

app/assets/stylesheets/components/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
@forward "panel";
1313
@forward "search-input";
1414
@forward "secondary-navigation";
15-
@forward "sticky-navigation";
15+
@forward "session-banner";
1616
@forward "status";
17+
@forward "sticky-navigation";
1718
@forward "summary-list";
1819
@forward "tables";
1920
@forward "tag";

app/assets/stylesheets/components/_secondary-navigation.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,31 @@
8787
.app-secondary-navigation__list-item {
8888
margin-bottom: 0;
8989
}
90+
91+
.app-secondary-navigation--reverse {
92+
color: $nhsuk-reverse-text-colour;
93+
94+
.app-secondary-navigation__link {
95+
@include nhsuk-link-style-white;
96+
97+
&[aria-current] {
98+
box-shadow: inset $nhsuk-border-width 0 $nhsuk-reverse-text-colour;
99+
100+
// stylelint-disable-next-line max-nesting-depth
101+
@include nhsuk-media-query($from: tablet) {
102+
box-shadow: inset 0 ($nhsuk-border-width * -1)
103+
$nhsuk-reverse-text-colour;
104+
}
105+
}
106+
107+
&:link,
108+
&:visited,
109+
&:hover,
110+
&:visited:hover,
111+
&:active {
112+
.nhsuk-icon--alert {
113+
fill: nhsuk-colour("yellow");
114+
}
115+
}
116+
}
117+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@use "../vendor/nhsuk-frontend" as *;
2+
3+
.app-session-banner {
4+
box-sizing: border-box;
5+
color: $nhsuk-reverse-text-colour;
6+
background-color: nhsuk-shade($nhsuk-brand-colour, 20%);
7+
8+
@include nhsuk-print-colour;
9+
10+
.nhsuk-caption-l {
11+
color: nhsuk-colour("grey-5");
12+
}
13+
14+
.nhsuk-notification-banner {
15+
border-color: nhsuk-colour("white");
16+
}
17+
18+
.nhsuk-notification-banner__header {
19+
background-color: nhsuk-colour("white");
20+
}
21+
22+
.nhsuk-notification-banner__title {
23+
color: $nhsuk-brand-colour;
24+
}
25+
26+
.nhsuk-notification-banner__link {
27+
@include nhsuk-link-style-white;
28+
}
29+
30+
.nhsuk-notification-banner__heading {
31+
color: $nhsuk-reverse-text-colour;
32+
}
33+
34+
.app-secondary-navigation__list {
35+
box-shadow: 0 -1px 0 0 $nhsuk-secondary-border-colour;
36+
}
37+
}

app/components/app_import_format_details_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def programme
230230
end
231231

232232
def vaccine_and_batch
233-
vaccines = team.vaccines.pluck(:nivs_name).map { tag.i(it) }
233+
vaccines = team.vaccines.pluck(:upload_name).map { tag.i(it) }
234234

235235
vaccines_sentence =
236236
vaccines.to_sentence(

app/components/app_location_card_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def urn_row
5757
text: "URN"
5858
},
5959
value: {
60-
text: tag.span(location.urn_and_site, class: "app-u-monospace")
60+
text: tag.span(location.urn_and_site, class: "app-u-code")
6161
}
6262
}
6363
end

app/components/app_patient_search_form_component.html.erb

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,17 @@
2121
<% end %>
2222
<% end %>
2323

24-
<% if !Flipper.enabled?(:programme_status, current_team) && (show_still_to_vaccinate || show_eligible_children) %>
24+
<% if show_eligible_children %>
2525
<%= f.govuk_check_boxes_fieldset :show_only,
2626
multiple: true,
2727
legend: { text: "Show only", size: "s" },
2828
small: true do %>
29-
<% if show_still_to_vaccinate %>
30-
<%= f.govuk_check_box :still_to_vaccinate,
31-
1, 0,
32-
checked: form.still_to_vaccinate,
33-
multiple: false,
34-
link_errors: true,
35-
label: { text: "Still to vaccinate" },
36-
hint: { text: "With consent, not refused vaccine, not vaccinated yet" } %>
37-
<% end %>
38-
<% if show_eligible_children %>
39-
<%= f.govuk_check_box :eligible_children,
40-
1, 0,
41-
checked: form.eligible_children,
42-
multiple: false,
43-
link_errors: true,
44-
label: { text: "Eligible this academic year and not vaccinated elsewhere" } %>
45-
<% end %>
29+
<%= f.govuk_check_box :eligible_children,
30+
1, 0,
31+
checked: form.eligible_children,
32+
multiple: false,
33+
link_errors: true,
34+
label: { text: "Eligible this academic year and not vaccinated elsewhere" } %>
4635
<% end %>
4736
<% end %>
4837

app/components/app_patient_search_form_component.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def initialize(
1616
heading_level: 3,
1717
show_aged_out_of_programmes: false,
1818
show_eligible_children: false,
19-
show_still_to_vaccinate: false,
2019
show_vaccine_criteria: false
2120
)
2221
@form = form
@@ -34,7 +33,6 @@ def initialize(
3433
@heading_level = heading_level
3534
@show_aged_out_of_programmes = show_aged_out_of_programmes
3635
@show_eligible_children = show_eligible_children
37-
@show_still_to_vaccinate = show_still_to_vaccinate
3836
@show_vaccine_criteria = show_vaccine_criteria
3937
end
4038

@@ -54,7 +52,6 @@ def initialize(
5452
:year_groups,
5553
:heading_level,
5654
:show_aged_out_of_programmes,
57-
:show_still_to_vaccinate,
5855
:show_eligible_children,
5956
:show_vaccine_criteria
6057

0 commit comments

Comments
 (0)