Skip to content

Commit aa3cb06

Browse files
authored
Merge pull request #1357 from Crown-Commercial-Service/feature/NPMP-11-use-new-gca-branding
Updated content that references CCS to now reference GCA
2 parents 47c86c0 + 6818912 commit aa3cb06

File tree

9 files changed

+53
-21
lines changed

9 files changed

+53
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed
1515

1616
- Update GOV.UK Frontend and CCS Frontend ([PR 1335](https://github.com/Crown-Commercial-Service/pmp-idam/pull/1335))
17+
- Updated content that references CCS to now reference GCA ([PR 1357](https://github.com/Crown-Commercial-Service/pmp-idam/pull/1357))
1718

1819
## [3.2.1] - 2026-01-05
1920

app/controllers/home_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def delete_unwanted_cookie(cookie_prefixes)
4949
return unless cookie_prefixes.any?
5050

5151
cookies.each do |cookie_name, _|
52-
cookies.delete(cookie_name, path: '/', domain: '.crowncommercial.gov.uk') if cookie_prefixes.any? { |cookie_prefix| cookie_name.start_with? cookie_prefix }
52+
if cookie_prefixes.any? { |cookie_prefix| cookie_name.start_with? cookie_prefix }
53+
cookies.delete(cookie_name, path: '/', domain: '.crowncommercial.gov.uk')
54+
cookies.delete(cookie_name, path: '/', domain: '.gca.gov.uk')
55+
end
5356
end
5457
end
5558

app/helpers/application_helper.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,26 @@ def password_strength(password_id)
4848
classes: 'govuk-!-margin-left-2'
4949
)
5050
end
51+
52+
# Methods used for the CCS transition to GCA
53+
54+
def t(key, **options)
55+
options[:org_name] ||= current_organisation_name
56+
options[:org_name_abbr] ||= current_organisation_name_abbr
57+
options[:org_domain] ||= current_organisation_domain
58+
59+
super
60+
end
61+
62+
def current_organisation_name
63+
PmpIdam.use_gca_branding? ? 'Government Commercial Agency' : 'Crown Commercial Service'
64+
end
65+
66+
def current_organisation_name_abbr
67+
PmpIdam.use_gca_branding? ? 'GCA' : 'CCS'
68+
end
69+
70+
def current_organisation_domain
71+
PmpIdam.use_gca_branding? ? 'gca' : 'crowncommercial'
72+
end
5173
end

app/javascript/src/modules/cookieBanner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const removeUnwantedCookies = (): void => {
4747
}
4848

4949
cookiesToRemove.forEach((cookieName) => { Cookies.remove(cookieName, { path: '/', domain: '.crowncommercial.gov.uk' }) })
50+
cookiesToRemove.forEach((cookieName) => { Cookies.remove(cookieName, { path: '/', domain: '.gca.gov.uk' }) })
5051
}
5152

5253
const removeGACookies = (cookieBannerFormData: CookieBannerFormData, successFunction: () => void, failureFunction: () => void): void => {

app/views/layouts/application.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
<%= csrf_meta_tags %>
99
<%= csp_meta_tag %>
1010

11+
<% asset_prefix = PmpIdam.use_gca_branding? ? 'gca' : 'ccs' %>
12+
1113
<%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %>
12-
<%= tag :meta, property: 'og:image', content: asset_path('images/ccs-opengraph-image.png') %>
14+
<%= tag :meta, property: 'og:image', content: asset_path("images/#{asset_prefix}-opengraph-image.png") %>
1315
<%= tag :meta, name: 'theme-color', content: '#0b0c0c' %>
1416

1517
<%= favicon_link_tag asset_path('images/favicon.ico') %>
1618
<%= favicon_link_tag asset_path('images/favicon.svg'), type: "image/svg+xml" %>
17-
<%= favicon_link_tag asset_path('images/ccs-icon-mask.svg'), rel: 'mask-icon', type: 'image/svg', color: "#0b0c0c" %>
19+
<%= favicon_link_tag asset_path("images/#{asset_prefix}-icon-mask.svg"), rel: 'mask-icon', type: 'image/svg', color: "#0b0c0c" %>
1820
<% %w[ 180 192 512 ].each do |size| %>
19-
<%= favicon_link_tag asset_path("images/ccs-icon-#{size}.png"), rel: 'apple-touch-icon', type: 'image/png', size:"#{size}x#{size}" %>
21+
<%= favicon_link_tag asset_path("images/#{asset_prefix}-icon-#{size}.png"), rel: 'apple-touch-icon', type: 'image/png', size:"#{size}x#{size}" %>
2022
<% end %>
2123

2224
<%= stylesheet_link_tag 'application', media: 'all' %>

app/views/layouts/error.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
<%= csrf_meta_tags %>
99
<%= csp_meta_tag %>
1010

11+
<% asset_prefix = PmpIdam.use_gca_branding? ? 'gca' : 'ccs' %>
12+
1113
<%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %>
12-
<%= tag :meta, property: 'og:image', content: asset_path('images/ccs-opengraph-image.png') %>
14+
<%= tag :meta, property: 'og:image', content: asset_path("images/#{asset_prefix}-opengraph-image.png") %>
1315
<%= tag :meta, name: 'theme-color', content: '#0b0c0c' %>
1416

1517
<%= favicon_link_tag asset_path('images/favicon.ico') %>
1618
<%= favicon_link_tag asset_path('images/favicon.svg'), type: "image/svg+xml" %>
17-
<%= favicon_link_tag asset_path('images/ccs-icon-mask.svg'), rel: 'mask-icon', type: 'image/svg', color: "#0b0c0c" %>
19+
<%= favicon_link_tag asset_path("images/#{asset_prefix}-icon-mask.svg"), rel: 'mask-icon', type: 'image/svg', color: "#0b0c0c" %>
1820
<% %w[ 180 192 512 ].each do |size| %>
19-
<%= favicon_link_tag asset_path("images/ccs-icon-#{size}.png"), rel: 'apple-touch-icon', type: 'image/png', size:"#{size}x#{size}" %>
21+
<%= favicon_link_tag asset_path("images/#{asset_prefix}-icon-#{size}.png"), rel: 'apple-touch-icon', type: 'image/png', size:"#{size}x#{size}" %>
2022
<% end %>
2123

2224
<%= stylesheet_link_tag 'application', media: 'all' %>

config/initializers/canonical_rails.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# This is the main host, not just the TLD, omit slashes and protocol. If you have more than one, pick the one you want to rank in search results.
99

10+
# TODO: This will need to updated after the URL change
1011
config.host = 'printmarketplace.crowncommercial.gov.uk'
1112
config.port = '443'
1213

config/locales/en.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ en:
144144
lead1: If the email address you’ve entered belongs to a registered organisation, we’ll send instructions to reset the password.
145145
new_password: New password
146146
password: Your password must have
147-
text_html: If you don’t receive this, email <a href="mailto:support@crowncommercial.gov.uk" class="govuk-link--no-visited-state">support@crowncommercial.gov.uk</a>
147+
text_html: If you don’t receive this, email <a href="mailto:support@%{org_domain}.gov.uk" class="govuk-link--no-visited-state">support@%{org_domain}.gov.uk</a>
148148
verify_code: Verification code
149149
new:
150150
email: Email address
@@ -155,9 +155,9 @@ en:
155155
domain_not_on_allow_list:
156156
back_to_create: Back to create a account
157157
heading: You must use a public sector email address
158-
lead_html: You must be employed by, or represent, a public sector organisation to create a <abbr title="Crown Commercial Service">CCS</abbr> account.
158+
lead_html: You must be employed by, or represent, a public sector organisation to create a <abbr title="%{org_name}">%{org_name_abbr}</abbr> account.
159159
line_01: The email you used doesn't belong to a recognised public sector domain.
160-
line_02_html: Create an account using a different email address or email <a href="mailto:info@crowncommercial.gov.uk" class="govuk-link">info@crowncommercial.gov.uk</a> if
160+
line_02_html: Create an account using a different email address or email <a href="mailto:info@%{org_domain}.gov.uk" class="govuk-link">info@%{org_domain}.gov.uk</a> if
161161
list_01: you think your domain should be recognised
162162
list_02: you still can't create an account
163163
new:
@@ -173,7 +173,7 @@ en:
173173
lead: You must be employed by, or represent, a public sector organisation.
174174
organisation: Organisation name
175175
organisation_address_guidance: You can choose alternative delivery and invoice addresses later on.
176-
organisation_hint: Enter your organisation's full name. We will verify your organisation name to confirm you can use this service. If your organisation is not listed please contact CCS.
176+
organisation_hint: Enter your organisation's full name. We will verify your organisation name to confirm you can use this service. If your organisation is not listed please contact %{org_name_abbr}.
177177
password: Password
178178
password_must_have: 'Your password must have:'
179179
sessions:
@@ -222,7 +222,7 @@ en:
222222
explanation: Maybe you tried to change something you didn’t have access to.
223223
home:
224224
accessibility_statement:
225-
CCS_is_committed: Crown Commercial Service is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.
225+
CCS_is_committed: "%{org_name} is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018."
226226
ability_net: AbilityNet
227227
ability_net_link: https://mcmw.abilitynet.org.uk/
228228
ability_net_text_html: "%{ability_link} has advice on making your device easier to use if you have a disability."
@@ -233,7 +233,7 @@ en:
233233
call: call 0345 410 2222
234234
core_pmp: Core Print Marketplace product
235235
email: email
236-
email_link: info@crowncommercial.gov.uk
236+
email_link: info@%{org_domain}.gov.uk
237237
equality: The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). If you’re not happy with how we respond to your complaint,
238238
equality_link: https://www.equalityadvisoryservice.com/
239239
equality_link_text: contact the Equality Advisory and Support Service (EASS)
@@ -253,15 +253,15 @@ en:
253253
list_1_navigate_keyboard: navigate most of the website using just a keyboard
254254
list_1_navigate_listen: listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)
255255
list_1_navigate_speach: navigate most of the website using speech recognition software
256-
list_2_decorative: non-decorative content is used in the CCS sign-in pages, which may make it in accessible to users navigating the site with screen readers.
256+
list_2_decorative: non-decorative content is used in the %{org_name_abbr} sign-in pages, which may make it in accessible to users navigating the site with screen readers.
257257
list_2_email: the email field on the homepage lacks an autocomplete attribute, so its purpose cannot be determined programmatically
258-
market_place_link: https://printmarketplace.crowncommercial.gov.uk/
258+
market_place_link: https://printmarketplace.%{org_domain}.gov.uk/
259259
several_aspects: Several aspects of the print marketplace user journey do not meet the WCAG 2.1 AA success criteria. The accessibility statement on the core Print Marketplace product details these.
260260
the_complete_journey: The complete Print Marketplace journey was tested, this included every page a buyer would progress through in-order to complete the sign up activity.
261261
the_content: The content listed below is non-accessible for the following reasons.
262262
this_statement: 'This accessibility statement applies to the sign in pages of the Print Marketplace digital service which can be found at the following URL:'
263263
this_statement_date: This statement was prepared on 25th November 2020. It will be reviewed and updated as required.
264-
this_website: 'This website is run by Crown Commercial Service (CCS). We want as many people as possible to be able to use this website. For example, that means you should be able to:'
264+
this_website: 'This website is run by %{org_name} (%{org_name_abbr}). We want as many people as possible to be able to use this website. For example, that means you should be able to:'
265265
this_website_partially_1: This website is partially compliant with the
266266
this_website_partially_2: due to the non-compliances listed below.
267267
we_are_always_looking_html: 'We’re always looking to improve the accessibility of this website. If you find any problems not listed on this page or think we’re not meeting accessibility requirements, contact: %{email}.'
@@ -360,7 +360,7 @@ en:
360360
we_use_glassbox: We use Glassbox software to collect information about how you use Print Marketplace. We do this to help make sure the site is meeting the needs of its users and to help us make improvements.
361361
index:
362362
authorised_customer_list: authorised customer list
363-
authorised_customer_list_link: https://assets.crowncommercial.gov.uk/wp-content/uploads/RM3788-Contract-Notice-Authorised-Customer-List.docx
363+
authorised_customer_list_link: https://assets.%{org_domain}.gov.uk/wp-content/uploads/RM3788-Contract-Notice-Authorised-Customer-List.docx
364364
authorised_customer_list_title: authrized customers list in .docx format
365365
before_you_start: Before you start
366366
heading: Print Marketplace
@@ -371,7 +371,7 @@ en:
371371
to_use_this_service_html: To use this service you need to be a recognised public sector body listed in the %{authorised_customer_list}.
372372
layouts:
373373
application:
374-
title: Crown Commercial Services
374+
title: "%{org_name}"
375375
cookie-banner:
376376
accept_cookies: Accept analytics cookies
377377
change_cookie_settings_html: You can %{cookie_settings_link} at any time.
@@ -389,7 +389,7 @@ en:
389389
accessibility_statement_link_aria_label: View our accessibility statement
390390
contact_us:
391391
contact_us: 'Contact us (opens in a new tab) '
392-
contact_us_link: https://www.crowncommercial.gov.uk/contact
392+
contact_us_link: https://www.%{org_domain}.gov.uk/contact
393393
having_problems: 'Having problems with this service? '
394394
support: " for support."
395395
cookie_policy_link: Cookie policy

spec/helpers/application_helper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
describe '.page_title' do
1515
context 'when there is no additional title' do
1616
it 'returns just CCS' do
17-
expect(page_title).to eq 'Crown Commercial Services'
17+
expect(page_title).to eq 'Crown Commercial Service'
1818
end
1919
end
2020

2121
context 'when there is an additional title' do
2222
before { content_for(:page_title, 'My Magical Title') }
2323

2424
it 'returns CCS plus the additional title' do
25-
expect(page_title).to eq 'My Magical Title: Crown Commercial Services'
25+
expect(page_title).to eq 'My Magical Title: Crown Commercial Service'
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)