Skip to content

Commit

Permalink
Rename Temporary Accommodation to Transitional Accommodation in UI
Browse files Browse the repository at this point in the history
It's been decided that the Temporary Accommodation service will now be
called the Transitional Accommodation service. Therefore we need to
update any places that reference the old name.

In this change, we update all the places in the user interface as this is
essential for rolling out the service to the rest of the regions.

We will address the non-user-facing changes in separate commits as these
are not as urgent.
  • Loading branch information
libuk committed Sep 19, 2023
1 parent b0c3447 commit 539ef17
Show file tree
Hide file tree
Showing 35 changed files with 51 additions and 51 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": "Temporary Accommodation detail"
"cas3Detail": "Transitional Accommodation 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 Temporary Accommodation (TA)?": "Moving on as homeless from an Approved Premises"
"How is the person eligible for Transitional Accommodation (TA)?": "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 Temporary Accommodation been given?": "Yes" }]
"content": [{ "Has consent for Transitional Accommodation 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",
"Temporary Accommodation (CAS3)": "Temporary Accommodation detail"
"Transitional Accommodation (CAS3)": "Transitional Accommodation 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 Temporary Accommodation been given?',
'Has consent for Transitional Accommodation 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 Temporary Accommodation (TA)?`,
`How is ${personName(application.person)} eligible for Transitional Accommodation (TA)?`,
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('Temporary Accommodation (TA) referrals')
super('Transitional Accommodation (TA) 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 Temporary Accommodation')
super('Make a referral for Transitional Accommodation')
}

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 Temporary Accommodation')
super('Make a referral for Transitional Accommodation')
}

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 - Temporary Accommodation')
cy.title().should('eq', 'Cookies - Transitional Accommodation')
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 Temporary Accommodation has been given',
consentGiven: 'You must specify if consent for Transitional Accommodation 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 Temporary Accommodation been given?': 'Yes',
'Has consent for Transitional Accommodation 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 Temporary Accommodation been given?'
title = 'Has consent for Transitional Accommodation 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 Temporary Accommodation has been given'
errors.consentGiven = 'You must specify if consent for Transitional Accommodation 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 Temporary Accommodation (TA)?':
'How is the person eligible for Transitional Accommodation (TA)?':
'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 Temporary Accommodation (TA)?'
htmlDocumentTitle = 'How is the person eligible for Transitional Accommodation (TA)?'

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

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: 'Temporary Accommodation detail',
cas3Detail: 'Transitional Accommodation 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',
'Temporary Accommodation (CAS3)': 'Temporary Accommodation detail',
'Transitional Accommodation (CAS3)': 'Transitional Accommodation detail',
})
})
})
Expand All @@ -75,7 +75,7 @@ describe('PreviousStaysDetails', () => {
text: 'Approved Premises (AP or CAS1)',
},
{ value: 'cas2', text: 'Bail Accommodation and Support Service (BASS or CAS2)' },
{ value: 'cas3', text: 'Temporary Accommodation (CAS3)' },
{ value: 'cas3', text: 'Transitional Accommodation (CAS3)' },
])
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const accommodationTypes = {
text: 'Bail Accommodation and Support Service (BASS or CAS2)',
},
cas3: {
text: 'Temporary Accommodation (CAS3)',
text: 'Transitional Accommodation (CAS3)',
},
} as const

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 = 'Temporary Accommodation'
app.locals.applicationName = 'Transitional Accommodation'

// 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 Temporary Accommodation.</p>
<p>We've sent your referral to your regional Homeless Prevention Team (HPT) for Transitional Accommodation.</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 = "Temporary Accommodation (TA) referrals - " + applicationName %}
{% set pageTitle = "Transitional Accommodation (TA) 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">Temporary Accommodation (TA) referrals</h1>
<h1 class="govuk-heading-l">Transitional Accommodation (TA) 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 Temporary Accommodation below.</p>
<p class="govuk-body">Start a new referral for Transitional Accommodation 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 Temporary Accommodation"
text: "Enter the CRN for the person needing Transitional Accommodation"
},
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 Temporary Accommodation (TA) is made"
text: "Consent must be given before an application to Transitional Accommodation (TA) is made"
}) }}
{% endset %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<ul>
<li>Approved Premises (AP or CAS1)</li>
<li>Bail Accommodation and Support Service (BASS or CAS2)</li>
<li>Temporary Accommodation (CAS3)</li>
<li>Transitional Accommodation (CAS3)</li>
</ul>
<p>If you cannot find information about previous applications, select 'I don't know'.</p>

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

{% set detailsHtml %}
<p class="govuk-body">Temporary Accommodation (CAS3) placements may require a person to share accommodation with up to 4 other people on probation.</p>
<p class="govuk-body">Transitional Accommodation (CAS3) placements may require a person to share accommodation with up to 4 other people on probation.</p>
<p class="govuk-body">Consider whether:</p>
<ul class="govuk-list govuk-list--bullet">
<li>the person had any cell sharing issues in custody</li>
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 Temporary 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 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 @@ -8,7 +8,7 @@
{{ task.title }}
</h1>

<p class="govuk-body">Homelessness prevention teams (HPT) must be informed about identified risks and behaviours that may impact upon placement. This helps them to safely place prison leavers in Temporary Accommodation (CAS3).</p>
<p class="govuk-body">Homelessness prevention teams (HPT) must be informed about identified risks and behaviours that may impact upon placement. This helps them to safely place prison leavers in Transitional Accommodation (CAS3).</p>
<p class="govuk-body">Use information from the sources listed below to answer the following questions:</p>
<ul class="govuk-list govuk-list--bullet">
<li>OASys</li>
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 Temporary Accommodation.
Summarise how risks relating to accommodation will be managed whilst the person is in Transitional Accommodation.
</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 Temporary Accommodation (TA) is made</h3>
<h3 class="govuk-notification-banner__heading">CRS referral must be submitted before an application to Transitional Accommodation (TA) 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 Temporary 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 (TA) 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 Temporary 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 (TA) 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">Temporary Accommodation placements provide a welcome pack that includes food.</p>
<p class="govuk-body">Transitional Accommodation 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 Temporary Accommodation placement starts.</p>
<p>The move on plan should be discussed with the person before the Transitional Accommodation 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 Temporary Accommodation - " + applicationName %}
{% set pageTitle = "Make a referral for Transitional Accommodation - " + 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 Temporary Accommodation
Make a referral for Transitional Accommodation
</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 Temporary Accommodation - " + applicationName %}
{% set pageTitle = "Make a referral for Transitional Accommodation - " + 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 Temporary Accommodation</h1>
<h1 class="govuk-heading-l">Make a referral for Transitional Accommodation</h1>

<p class="govuk-body">Temporary 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 (TA) 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
Loading

0 comments on commit 539ef17

Please sign in to comment.