Skip to content

Commit

Permalink
Update service name to include "CAS3" everywhere
Browse files Browse the repository at this point in the history
In a previous commit we updated the service name to be "Transitional
Accommodation" from "Temporary Accommodation"[1] in the UI.

The name appears in the service in different forms:

* Transitional Accommodation (CAS3)
* Transitional Accommodation (TA)
* Transitional Accommodation
* Transitional Accommodation (formerly CAS3)

This commit updates all occurrences to be "Transitional Accommodation
(CAS3).

[1]
#637
  • Loading branch information
libuk committed Sep 21, 2023
1 parent efec2bb commit c39707b
Show file tree
Hide file tree
Showing 31 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion cypress_shared/fixtures/applicationData.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"accommodationTypes": ["cas1", "cas3"],
"cas1Detail": "Approved Premises detail",
"cas2Detail": "",
"cas3Detail": "Transitional Accommodation detail"
"cas3Detail": "Transitional Accommodation (CAS3) detail"
}
},
"placement-location": {
Expand Down
6 changes: 3 additions & 3 deletions cypress_shared/fixtures/applicationTranslatedDocument.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"id": "eligibility",
"content": [
{
"How is the person eligible for Transitional Accommodation (TA)?": "Moving on as homeless from an Approved Premises"
"How is the person eligible for Transitional Accommodation (CAS3)?": "Moving on as homeless from an Approved Premises"
},
{ "Release date": "2 September 2123" },
{ "Accommodation required from date": "16 September 2123" }
Expand All @@ -51,7 +51,7 @@
{
"title": "Consent",
"id": "consent",
"content": [{ "Has consent for Transitional Accommodation been given?": "Yes" }]
"content": [{ "Has consent for Transitional Accommodation (CAS3) been given?": "Yes" }]
}
]
},
Expand Down Expand Up @@ -170,7 +170,7 @@
{ "Has the person previously stayed in Community Accommodation Services (CAS)?": "Yes" },
{
"Approved Premises (AP or CAS1)": "Approved Premises detail",
"Transitional Accommodation (CAS3)": "Transitional Accommodation detail"
"Transitional Accommodation (CAS3)": "Transitional Accommodation (CAS3) detail"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ApplyPage from '../../applyPage'
export default class ConsentGivenPage extends ApplyPage {
constructor(application: TemporaryAccommodationApplication) {
super(
'Has consent for Transitional Accommodation been given?',
'Has consent for Transitional Accommodation (CAS3) been given?',
application,
'consent',
'consent-given',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { personName } from '../../../../../server/utils/personUtils'
export default class EligibilityReasonPage extends ApplyPage {
constructor(application: TemporaryAccommodationApplication) {
super(
`How is ${personName(application.person)} eligible for Transitional Accommodation (TA)?`,
`How is ${personName(application.person)} eligible for Transitional Accommodation (CAS3)?`,
application,
'eligibility',
'eligibility-reason',
Expand Down
2 changes: 1 addition & 1 deletion cypress_shared/pages/apply/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Page from '../page'

export default class ListPage extends Page {
constructor(private readonly inProgressApplications: Array<Application>) {
super('Transitional Accommodation (TA) referrals')
super('Transitional Accommodation (CAS3) referrals')
}

static visit(inProgressApplications: Array<Application>): ListPage {
Expand Down
2 changes: 1 addition & 1 deletion cypress_shared/pages/apply/startPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import paths from '../../../server/paths/apply'

export default class StartPage extends Page {
constructor() {
super('Make a referral for Transitional Accommodation')
super('Make a referral for Transitional Accommodation (CAS3)')
}

static visit(): StartPage {
Expand Down
2 changes: 1 addition & 1 deletion cypress_shared/pages/apply/taskListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import paths from '../../../server/paths/apply'

export default class TaskListPage extends Page {
constructor(private readonly inProgressApplication: Application) {
super('Make a referral for Transitional Accommodation')
super('Make a referral for Transitional Accommodation (CAS3)')
}

static visit(inProgressApplication: Application): TaskListPage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ context('Cookies', () => {
it('should navigate to the cookie policy page', () => {
cy.signIn()
cy.contains('Cookies').click()
cy.title().should('eq', 'Cookies - Transitional Accommodation')
cy.title().should('eq', 'Cookies - Transitional Accommodation (CAS3)')
cy.contains('Cookies are small files saved on your phone, tablet or computer when you visit a website.')
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('ConsentGiven', () => {
it('returns an error if the consent given field is not populated', () => {
const page = new ConsentGiven({ ...body, consentGiven: undefined }, application)
expect(page.errors()).toEqual({
consentGiven: 'You must specify if consent for Transitional Accommodation has been given',
consentGiven: 'You must specify if consent for Transitional Accommodation (CAS3) has been given',
})
})
})
Expand All @@ -36,7 +36,7 @@ describe('ConsentGiven', () => {
it('returns a translated version of the response', () => {
const page = new ConsentGiven(body, application)
expect(page.response()).toEqual({
'Has consent for Transitional Accommodation been given?': 'Yes',
'Has consent for Transitional Accommodation (CAS3) been given?': 'Yes',
})
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type ConsentGivenBody = {

@Page({ name: 'consent-given', bodyProperties: ['consentGiven'] })
export default class ConsentGiven implements TasklistPage {
title = 'Has consent for Transitional Accommodation been given?'
title = 'Has consent for Transitional Accommodation (CAS3) been given?'

htmlDocumentTitle = this.title

Expand All @@ -36,7 +36,7 @@ export default class ConsentGiven implements TasklistPage {
const errors: TaskListErrors<this> = {}

if (!this.body.consentGiven) {
errors.consentGiven = 'You must specify if consent for Transitional Accommodation has been given'
errors.consentGiven = 'You must specify if consent for Transitional Accommodation (CAS3) has been given'
}

return errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('EligibilityReason', () => {
const page = new EligibilityReason(body, application)

expect(page.response()).toEqual({
'How is the person eligible for Transitional Accommodation (TA)?':
'How is the person eligible for Transitional Accommodation (CAS3)?':
'Moving on as homeless from an Approved Premises',
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ type EligibilityReasonBody = { reason: EligibilityReasonsT }
export default class EligibilityReason implements TasklistPage {
title: string

htmlDocumentTitle = 'How is the person eligible for Transitional Accommodation (TA)?'
htmlDocumentTitle = 'How is the person eligible for Transitional Accommodation (CAS3)?'

constructor(
readonly body: Partial<EligibilityReasonBody>,
readonly application: Application,
) {
const name = personName(application.person)
this.title = `How is ${name} eligible for Transitional Accommodation (TA)?`
this.title = `How is ${name} eligible for Transitional Accommodation (CAS3)?`
}

response() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PreviousStaysDetails from './previousStaysDetails'
const body = {
accommodationTypes: ['cas1' as const, 'cas3' as const],
cas1Detail: 'Approved Premises detail',
cas3Detail: 'Transitional Accommodation detail',
cas3Detail: 'Transitional Accommodation (CAS3) detail',
}

describe('PreviousStaysDetails', () => {
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('PreviousStaysDetails', () => {
const page = new PreviousStaysDetails(body, application)
expect(page.response()).toEqual({
'Approved Premises (AP or CAS1)': 'Approved Premises detail',
'Transitional Accommodation (CAS3)': 'Transitional Accommodation detail',
'Transitional Accommodation (CAS3)': 'Transitional Accommodation (CAS3) detail',
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion server/utils/nunjucksSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function nunjucksSetup(app: express.Express, path: pathModule.Pla
app.set('view engine', 'njk')

app.locals.asset_path = '/assets/'
app.locals.applicationName = 'Transitional Accommodation'
app.locals.applicationName = 'Transitional Accommodation (CAS3)'

// Cachebusting version string
if (production) {
Expand Down
2 changes: 1 addition & 1 deletion server/views/applications/confirm.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}) }}
<h2 class="govuk-heading-m">What happens next?</h2>

<p>We've sent your referral to your regional Homeless Prevention Team (HPT) for Transitional Accommodation.</p>
<p>We've sent your referral to your regional Homeless Prevention Team (HPT) for Transitional Accommodation (CAS3).</p>
<p>The HPT will assess your referral within 3 to 5 working days. You’ll receive an email when a decision is made.</p>
<p>If you have any questions about your referral, contact your regional HPT.</a></p>
<p><a href="https://forms.office.com/Pages/ResponsePage.aspx?id=KEeHxuZx_kGp4S6MNndq2EXSevEnO7lHpH52Z5zJdrxUQjQ0OTZERFI4N0w4Q1Q5ODRYWVFIVFBGNy4u">What did you think of this service?</a> (takes 30 seconds)</p>
Expand Down
6 changes: 3 additions & 3 deletions server/views/applications/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
{% from "./_table.njk" import applicationsTable %}
{% extends "../partials/layout.njk" %}

{% set pageTitle = "Transitional Accommodation (TA) referrals - " + applicationName %}
{% set pageTitle = "Transitional Accommodation (CAS3) referrals - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% block content %}

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">

<h1 class="govuk-heading-l">Transitional Accommodation (TA) referrals</h1>
<h1 class="govuk-heading-l">Transitional Accommodation (CAS3) referrals</h1>

{{ govukTabs({
items: [
Expand All @@ -32,7 +32,7 @@

<div class="govuk-grid-column-two-thirds">
<h2 class="govuk-heading-m">Start a new referral</h2>
<p class="govuk-body">Start a new referral for Transitional Accommodation below.</p>
<p class="govuk-body">Start a new referral for Transitional Accommodation (CAS3) below.</p>

{{ govukButton({
text: "Start now",
Expand Down
2 changes: 1 addition & 1 deletion server/views/applications/new.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
isPageHeading: true
},
hint: {
text: "Enter the CRN for the person needing Transitional Accommodation"
text: "Enter the CRN for the person needing Transitional Accommodation (CAS3)"
},
classes: "govuk-input--width-10",
fieldName: "crn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% set conditionalHtml %}
{{ govukNotificationBanner({
text: "Consent must be given before an application to Transitional Accommodation (TA) is made"
text: "Consent must be given before an application to Transitional Accommodation (CAS3) is made"
}) }}
{% endset %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<p class="govuk-body">People placed into Transitional Accommodation are required to engage in weekly support sessions with the accommodation supplier support worker.</p>
<p class="govuk-body">People placed into Transitional Accommodation (CAS3) are required to engage in weekly support sessions with the accommodation supplier support worker.</p>

<p class="govuk-body">Provide information relating to:</p>
<ul class="govuk-list govuk-list--bullet">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<p class="govuk-body">
Provide an outline of the risk management plan.
Summarise how risks relating to accommodation will be managed whilst the person is in Transitional Accommodation.
Summarise how risks relating to accommodation will be managed whilst the person is in Transitional Accommodation (CAS3).
</p>

{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% set noHtml %}
{% set html %}
<h3 class="govuk-notification-banner__heading">CRS referral must be submitted before an application to Transitional Accommodation (TA) is made</h3>
<h3 class="govuk-notification-banner__heading">CRS referral must be submitted before an application to Transitional Accommodation (CAS3) is made</h3>
<p class="govuk-body">You can still submit your application</p>
{% endset %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% set noHtml %}
{% set html %}
<h3 class="govuk-notification-banner__heading">Duty to Refer (DTR) / National Offender Pathway (NOP) must be submitted before application to Transitional Accommodation (TA) is made</h3>
<h3 class="govuk-notification-banner__heading">Duty to Refer (DTR) / National Offender Pathway (NOP) must be submitted before application to Transitional Accommodation (CAS3) is made</h3>
<p class="govuk-body">The person must also agree to sign an Accommodation Compact</p>
<p class="govuk-body">You can still submit your application</p>
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ page.title }}
</h1>

<p>All accommodation services available through the person's local authority or HMPPS should be explored before an application to Transitional Accommodation (TA) is made.</p>
<p>All accommodation services available through the person's local authority or HMPPS should be explored before an application to Transitional Accommodation (CAS3) is made.</p>

{{ formPageRadios({
fieldName: "otherOptions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},fetchContext()) }}

{% set detailsHtml %}
<p class="govuk-body">Transitional Accommodation placements provide a welcome pack that includes food.</p>
<p class="govuk-body">Transitional Accommodation (CAS3) placements provide a welcome pack that includes food.</p>
<p class="govuk-body">The information provided will help make sure that any allergies or dietary requirements are catered for.</p>
{% endset %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}, fetchContext()) }}

{% set detailsHtml %}
<p>The move on plan should be discussed with the person before the Transitional Accommodation placement starts.</p>
<p>The move on plan should be discussed with the person before the Transitional Accommodation (CAS3) placement starts.</p>
<p>Examples of move on planning could include:</p>
<ul>
<li>any information about move on that is included as part of the person's sentence plan</li>
Expand Down
4 changes: 2 additions & 2 deletions server/views/applications/show.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{% extends "../partials/layout.njk" %}

{% set pageTitle = "Make a referral for Transitional Accommodation - " + applicationName %}
{% set pageTitle = "Make a referral for Transitional Accommodation (CAS3) - " + applicationName %}

{% block beforeContent %}
{{ govukBackLink({
Expand All @@ -21,7 +21,7 @@
<div class="govuk-grid-row">
<div class="govuk-width-container">
<h1 class="govuk-heading-xl">
Make a referral for Transitional Accommodation
Make a referral for Transitional Accommodation (CAS3)
</h1>

{{ showErrorSummary(errorSummary) }}
Expand Down
6 changes: 3 additions & 3 deletions server/views/applications/start.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% extends "../partials/layout.njk" %}

{% set pageTitle = "Make a referral for Transitional Accommodation - " + applicationName %}
{% set pageTitle = "Make a referral for Transitional Accommodation (CAS3) - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% block beforeContent %}
Expand All @@ -21,9 +21,9 @@
<div class="govuk-grid-column-two-thirds">
<form action="{{ paths.applications.new() }}" method="get">
<input type="hidden" name="_csrf" value="{{ csrfToken }}"/>
<h1 class="govuk-heading-l">Make a referral for Transitional Accommodation</h1>
<h1 class="govuk-heading-l">Make a referral for Transitional Accommodation (CAS3)</h1>

<p class="govuk-body">Transitional Accommodation (TA) is for people on probation who are at risk of homelessness on their first night of release. </p>
<p class="govuk-body">Transitional Accommodation (CAS3) is for people on probation who are at risk of homelessness on their first night of release. </p>

<p class="govuk-body">This includes release from prison, an Approved Premises, or Bail Accommodation and Support Services.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{% set bookingWithoutReferralGuidance %}
{% set detailsHtml %}
<p class="govuk-body">Choosing this option will impact the management information (MI) data for your region. Bookings will not be associated with a specific referral.</p>
<p class="govuk-body">This option should only be used where a referral could not be submitted through the Transitional Accommodation service. For example, in Wales where the referral process is different.</p>
<p class="govuk-body">This option should only be used where a referral could not be submitted through the Transitional Accommodation (CAS3) service. For example, in Wales where the referral process is different.</p>
{% endset %}

{{ govukDetails({
Expand All @@ -60,10 +60,10 @@
{% endset %}

{% if applyDisabled %}
<p class="govuk-body">Book this bedspace for a person who has been referred to Transitional Accommodation (formerly CAS3) through nDelius.</p>
<p class="govuk-body">Book this bedspace for a person who has been referred to Transitional Accommodation (CAS3) through nDelius.</p>

<h2 class="govuk-heading-m">Digital referrals</h1>
<p class="govuk-body">We are working on creating a digital referral for the Transitional Accommodation service. Is it not currently available in your region.</p>
<p class="govuk-body">We are working on creating a digital referral for the Transitional Accommodation (CAS3) service. Is it not currently available in your region.</p>
<p class="govuk-body">In the future you will be able to link this booking to a digital referral.</p>

<input type="hidden" name="assessmentId" value="{{ forceAssessmentId }}"/>
Expand All @@ -72,7 +72,7 @@
<p class="govuk-body">If this is expected you can continue to book this bedspace without linking a referral.</p>

<h2 class="govuk-heading-m">No digital referrals found</h1>
<p class="govuk-body">If a referral has been submitted through the Transitional Accommodation service check the list of <a class="govuk-link" href="{{ paths.assessments.index({}) }}">submitted referrals</a>.</p>
<p class="govuk-body">If a referral has been submitted through the Transitional Accommodation (CAS3) service check the list of <a class="govuk-link" href="{{ paths.assessments.index({}) }}">submitted referrals</a>.</p>
<p class="govuk-body">Referrals must be marked as ready to place before a placement is booked.</p>

<input type="hidden" name="assessmentId" value="{{ forceAssessmentId }}"/>
Expand Down
4 changes: 2 additions & 2 deletions server/views/temporary-accommodation/static/cookies.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<p class="govuk-body">
Cookies are small files saved on your phone, tablet or computer when you visit a website.
</p>
<p class="govuk-body">We use cookies to make the Transitional Accommodation service work and collect information about how you use our service.</p>
<p class="govuk-body">We use cookies to make the Transitional Accommodation (CAS3) service work and collect information about how you use our service.</p>

<h2 class="govuk-heading-m">Essential cookies</h2>
<p class="govuk-body">
Essential cookies keep your information secure while you use the Transitional Accommodation service. We do not need to ask permission to use them.
Essential cookies keep your information secure while you use the Transitional Accommodation (CAS3) service. We do not need to ask permission to use them.
</p>
<table class="govuk-table">
<caption class="govuk-visually-hidden">Essential cookies</caption>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
This may be because:
<ul class="govuk-list govuk-list--bullet">
<li>the CRN is not in your caseload</li>
<li>referrals through the Transitional Accommodation service are not currently available in your region</li>
<li>referrals through the Transitional Accommodation (CAS3) service are not currently available in your region</li>
</ul>
</p>
<p class="govuk-body">
Expand Down
2 changes: 1 addition & 1 deletion server/views/temporary-accommodation/static/useNDelius.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</p>

<p class="govuk-body">
In the future you will be able to submit a digital referral for CAS3 through the Transitional Accommodation service. You will be notified when this service is available.
In the future you will be able to submit a digital referral for CAS3 through the Transitional Accommodation (CAS3) service. You will be notified when this service is available.
</p>
</div>
</div>
Expand Down

0 comments on commit c39707b

Please sign in to comment.