Skip to content

Commit c6c2579

Browse files
authored
Merge pull request #5018 from nhsuk/next
Version 5.3.0
2 parents b576a6f + 3049e13 commit c6c2579

File tree

213 files changed

+3693
-3190
lines changed

Some content is hidden

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

213 files changed

+3693
-3190
lines changed

.github/workflows/deploy-monitoring.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727
|| 'arn:aws:iam::393416225559:role/GithubDeployMonitoring' }}
2828
aws_account_id: ${{ inputs.environment == 'production'
2929
&& '820242920762' || '393416225559' }}
30+
environment: ${{ inputs.environment }}
3031
git_ref_to_deploy: ${{ inputs.git_ref_to_deploy || github.ref_name }}
3132

3233
jobs:
@@ -147,5 +148,6 @@ jobs:
147148
sudo apt-get install -y jq uuid-runtime
148149
- name: Deploy Grafana using tf_grafana.sh
149150
run: |
151+
export TF_VAR_slack_webhook_url=${{ inputs.environment == 'production' && secrets.GRAFANA_ALERTS_SLACK_WEBHOOK || secrets.GRAFANA_TEST_ALERTS_SLACK_WEBHOOK }}
150152
./tf_grafana.sh "$environment" plan --plan-file ${{ runner.temp }}/out
151153
./tf_grafana.sh "$environment" apply --plan-file ${{ runner.temp }}/out

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Layout/EmptyLineAfterMagicComment:
1919
Enabled: true
2020

2121
Layout/LineLength:
22-
AllowedPatterns: [idx_on]
22+
AllowedPatterns: [idx_on,index_]
2323
Exclude:
2424
- db/schema.rb
2525

Gemfile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gem "activerecord-import"
2424
gem "activerecord-session_store"
2525
gem "amazing_print"
2626
gem "array_enum"
27-
gem "audited", git: "https://github.com/tvararu/audited", branch: "encryption"
27+
gem "audited", github: "tvararu/audited", branch: "encryption"
2828
gem "caxlsx"
2929
gem "charlock_holmes"
3030
gem "config"
@@ -74,24 +74,21 @@ gem "with_advisory_lock"
7474
group :development, :test do
7575
gem "brakeman", require: false
7676
gem "debug", platforms: %i[mri mingw x64_mingw]
77-
7877
gem "factory_bot_instruments"
7978
gem "pry-rails"
8079
gem "rspec-rails"
8180
end
8281

8382
group :development do
84-
gem "web-console"
85-
8683
gem "annotaterb", require: false
8784
gem "asciidoctor"
8885
gem "asciidoctor-diagram"
89-
gem "aws-sdk-accessanalyzer", "~> 1"
90-
gem "aws-sdk-ec2", "~> 1"
91-
gem "aws-sdk-ecr", "~> 1"
92-
gem "aws-sdk-iam", "~> 1"
93-
gem "aws-sdk-rds", "~> 1"
94-
gem "aws-sdk-s3", "~> 1"
86+
gem "aws-sdk-accessanalyzer"
87+
gem "aws-sdk-ec2"
88+
gem "aws-sdk-ecr"
89+
gem "aws-sdk-iam"
90+
gem "aws-sdk-rds"
91+
gem "aws-sdk-s3"
9592
gem "hotwire-livereload"
9693
gem "prettier_print", require: false
9794
gem "rladr"
@@ -103,24 +100,23 @@ group :development do
103100
gem "syntax_tree", require: false
104101
gem "syntax_tree-haml", require: false
105102
gem "syntax_tree-rbs", require: false
103+
gem "web-console"
106104
end
107105

108106
group :test do
109107
gem "capybara"
110-
111108
gem "capybara_accessible_selectors",
112-
git: "https://github.com/citizensadvice/capybara_accessible_selectors",
113-
branch: "main"
109+
github: "citizensadvice/capybara_accessible_selectors"
114110
gem "capybara-screenshot"
115111
gem "climate_control"
116112
gem "cuprite"
117113
gem "its"
114+
gem "rack_session_access"
118115
gem "rspec"
119116
gem "rspec-html-matchers"
120117
gem "rspec-sidekiq"
121118
gem "rubyXL"
122119
gem "shoulda-matchers"
123120
gem "simplecov", require: false
124121
gem "webmock"
125-
gem "rack_session_access"
126122
end

Gemfile.lock

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
GIT
2-
remote: https://github.com/citizensadvice/capybara_accessible_selectors
3-
revision: 2c13c0ee6614c65434d504ed8d9cb80f5c20ece7
4-
branch: main
2+
remote: https://github.com/citizensadvice/capybara_accessible_selectors.git
3+
revision: 3b65e97d49a46a210be4397e3e162d6b177f4125
54
specs:
65
capybara_accessible_selectors (0.14.0)
76
capybara (~> 3.36)
87

98
GIT
10-
remote: https://github.com/tvararu/audited
9+
remote: https://github.com/tvararu/audited.git
1110
revision: e089773f10f8ef5e5e92a2052a2fea55f83091d2
1211
branch: encryption
1312
specs:
@@ -106,18 +105,18 @@ GEM
106105
activesupport (>= 6.0.0)
107106
array_enum (1.6.0)
108107
activemodel
109-
asciidoctor (2.0.25)
108+
asciidoctor (2.0.26)
110109
asciidoctor-diagram (3.0.1)
111110
asciidoctor (>= 1.5.7, < 3.x)
112111
rexml
113112
ast (2.4.3)
114113
attr_required (1.0.2)
115114
aws-eventstream (1.4.0)
116-
aws-partitions (1.1174.0)
117-
aws-sdk-accessanalyzer (1.78.0)
118-
aws-sdk-core (~> 3, >= 3.231.0)
115+
aws-partitions (1.1177.0)
116+
aws-sdk-accessanalyzer (1.80.0)
117+
aws-sdk-core (~> 3, >= 3.234.0)
119118
aws-sigv4 (~> 1.5)
120-
aws-sdk-core (3.233.0)
119+
aws-sdk-core (3.235.0)
121120
aws-eventstream (~> 1, >= 1.3.0)
122121
aws-partitions (~> 1, >= 1.992.0)
123122
aws-sigv4 (~> 1.9)
@@ -131,17 +130,17 @@ GEM
131130
aws-sdk-ecr (1.110.0)
132131
aws-sdk-core (~> 3, >= 3.231.0)
133132
aws-sigv4 (~> 1.5)
134-
aws-sdk-iam (1.129.0)
135-
aws-sdk-core (~> 3, >= 3.231.0)
133+
aws-sdk-iam (1.132.0)
134+
aws-sdk-core (~> 3, >= 3.234.0)
136135
aws-sigv4 (~> 1.5)
137-
aws-sdk-kms (1.113.0)
138-
aws-sdk-core (~> 3, >= 3.231.0)
136+
aws-sdk-kms (1.115.0)
137+
aws-sdk-core (~> 3, >= 3.234.0)
139138
aws-sigv4 (~> 1.5)
140-
aws-sdk-rds (1.296.0)
141-
aws-sdk-core (~> 3, >= 3.231.0)
139+
aws-sdk-rds (1.297.0)
140+
aws-sdk-core (~> 3, >= 3.234.0)
142141
aws-sigv4 (~> 1.5)
143-
aws-sdk-s3 (1.200.0)
144-
aws-sdk-core (~> 3, >= 3.231.0)
142+
aws-sdk-s3 (1.201.0)
143+
aws-sdk-core (~> 3, >= 3.234.0)
145144
aws-sdk-kms (~> 1)
146145
aws-sigv4 (~> 1.5)
147146
aws-sigv4 (1.12.1)
@@ -534,19 +533,19 @@ GEM
534533
nokogiri
535534
rexml (3.4.4)
536535
rladr (1.2.0)
537-
rspec (3.13.1)
536+
rspec (3.13.2)
538537
rspec-core (~> 3.13.0)
539538
rspec-expectations (~> 3.13.0)
540539
rspec-mocks (~> 3.13.0)
541-
rspec-core (3.13.5)
540+
rspec-core (3.13.6)
542541
rspec-support (~> 3.13.0)
543542
rspec-expectations (3.13.5)
544543
diff-lcs (>= 1.2.0, < 2.0)
545544
rspec-support (~> 3.13.0)
546545
rspec-html-matchers (0.10.0)
547546
nokogiri (~> 1)
548547
rspec (>= 3.0.0.a)
549-
rspec-mocks (3.13.5)
548+
rspec-mocks (3.13.6)
550549
diff-lcs (>= 1.2.0, < 2.0)
551550
rspec-support (~> 3.13.0)
552551
rspec-rails (8.0.2)
@@ -562,7 +561,7 @@ GEM
562561
rspec-expectations (~> 3.0)
563562
rspec-mocks (~> 3.0)
564563
sidekiq (>= 5, < 9)
565-
rspec-support (3.13.4)
564+
rspec-support (3.13.6)
566565
rubocop (1.79.2)
567566
json (~> 2.3)
568567
language_server-protocol (~> 3.17.0.2)
@@ -607,7 +606,7 @@ GEM
607606
rubyzip (>= 1.3.0)
608607
rubyntlm (0.6.5)
609608
base64
610-
rubyzip (3.2.0)
609+
rubyzip (3.2.1)
611610
rufo (0.18.1)
612611
rufus-scheduler (3.9.2)
613612
fugit (~> 1.1, >= 1.11.1)
@@ -623,11 +622,11 @@ GEM
623622
sentry-rails (5.28.0)
624623
railties (>= 5.0)
625624
sentry-ruby (~> 5.28.0)
626-
sentry-ruby (5.28.0)
625+
sentry-ruby (5.28.1)
627626
bigdecimal
628627
concurrent-ruby (~> 1.0, >= 1.0.2)
629-
sentry-sidekiq (5.28.0)
630-
sentry-ruby (~> 5.28.0)
628+
sentry-sidekiq (5.28.1)
629+
sentry-ruby (~> 5.28.1)
631630
sidekiq (>= 3.0)
632631
shoulda-matchers (6.5.0)
633632
activesupport (>= 5.2.0)
@@ -773,12 +772,12 @@ DEPENDENCIES
773772
asciidoctor
774773
asciidoctor-diagram
775774
audited!
776-
aws-sdk-accessanalyzer (~> 1)
777-
aws-sdk-ec2 (~> 1)
778-
aws-sdk-ecr (~> 1)
779-
aws-sdk-iam (~> 1)
780-
aws-sdk-rds (~> 1)
781-
aws-sdk-s3 (~> 1)
775+
aws-sdk-accessanalyzer
776+
aws-sdk-ec2
777+
aws-sdk-ecr
778+
aws-sdk-iam
779+
aws-sdk-rds
780+
aws-sdk-s3
782781
bootsnap
783782
brakeman
784783
capybara

app/assets/stylesheets/components/_filters.scss

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
.nhsuk-details__text {
3434
border-left: 0;
3535

36+
// Remove once https://github.com/nhsuk/nhsuk-frontend/pull/1633 released
37+
box-sizing: border-box;
38+
3639
@include nhsuk-responsive-padding(5, "left");
3740
@include nhsuk-responsive-padding(5, "right");
3841
}
@@ -45,37 +48,4 @@
4548
& .nhsuk-date-input__item:last-child {
4649
margin-right: 0;
4750
}
48-
49-
// Adjust sizing of checkbox and radio items
50-
.nhsuk-fieldset__legend--s {
51-
margin-bottom: nhsuk-spacing(2);
52-
}
53-
54-
& .nhsuk-checkboxes__item,
55-
& .nhsuk-radios__item {
56-
margin-bottom: 0;
57-
}
58-
59-
& .nhsuk-checkboxes__label,
60-
& .nhsuk-radios__label {
61-
padding-left: 0;
62-
63-
&::before {
64-
border-width: 3px;
65-
padding: 0;
66-
transform: scale(0.6667);
67-
transform-origin: center left;
68-
}
69-
70-
&::after {
71-
box-sizing: border-box;
72-
left: 3px;
73-
transform: rotate(-45deg) scale(0.6667);
74-
}
75-
}
76-
77-
& .nhsuk-hint {
78-
margin: 0;
79-
padding: 0;
80-
}
8151
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
@forward "file-upload";
2-
@forward "pagination";

app/assets/stylesheets/vendor/govuk-frontend/components/pagination/_index.scss

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

app/assets/stylesheets/vendor/nhsuk-frontend/components/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/inset-text";
1717
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/label";
1818
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/notification-banner";
19+
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/pagination";
1920
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/panel";
2021
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/radios";
2122
@forward "pkg:nhsuk-frontend/dist/nhsuk/components/select";
@@ -32,6 +33,5 @@
3233
// - do-dont-list
3334
// - hero
3435
// - images
35-
// - pagination
3636
// - tabs
3737
// - task-list

app/components/app_consent_card_component.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ def rows
6767
text: consent.vaccine_method_injection? ? "Yes" : "No"
6868
}
6969
}
70+
end,
71+
unless consent.without_gelatine.nil?
72+
{
73+
key: {
74+
text: "Consent given for gelatine-free vaccine only?"
75+
},
76+
value: {
77+
text: consent.without_gelatine? ? "Yes" : "No"
78+
}
79+
}
7080
end
7181
].compact
7282
end

app/components/app_consent_summary_component.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ def call
5252
end
5353
end
5454

55+
unless consent.without_gelatine.nil?
56+
summary_list.with_row do |row|
57+
row.with_key { "Consent given for gelatine-free vaccine only?" }
58+
row.with_value { consent.without_gelatine ? "Yes" : "No" }
59+
end
60+
end
61+
5562
unless consent.notify_parents_on_vaccination.nil?
5663
summary_list.with_row do |row|
5764
row.with_key { "Confirmation of vaccination sent to parent?" }

0 commit comments

Comments
 (0)