-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apg 556 tech UI 1.5 and 5.1 page titles could be improved #823
base: main
Are you sure you want to change the base?
Apg 556 tech UI 1.5 and 5.1 page titles could be improved #823
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be keen to see if we can just append - Accredited programmes - DPS
to all page titles by default. Would drop the need to have pageTitleSuffix specified in the majority of cases.
In general, we don’t do squash commits so we try to keep the commit history clean of merge commits by rebasing against main
. So, ideally each commit should pass build/tests etc and have a specific purpose and commit message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few small tweaks but should be good afterwards. 👍
Could we do some rebasing to tidy the commits up a bit too, please?
@@ -2,7 +2,7 @@ | |||
|
|||
{% extends "../partials/layout.njk" %} | |||
|
|||
{% set customPageTitleEnd = "Home" %} | |||
{% set pageTitleOverride = "Accredited Programmes service" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think the controller might need hideTitleServiceName
.
server/controllers/shared/updateStatusSelectionController.test.ts
Outdated
Show resolved
Hide resolved
@@ -174,6 +174,8 @@ describe('RisksAndNeedsController', () => { | |||
...sharedPageData, | |||
alcoholMisuseSummaryListRows, | |||
hasData: true, | |||
hideTitleServiceName: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the instances of hideTitleServiceName
and pageTitleOverride
in this file could get added to sharedPageData
on line 122 to avoid the repetition.
server/controllers/assess/updateStatusDecisionController.test.ts
Outdated
Show resolved
Hide resolved
@@ -4,7 +4,9 @@ import type { ReferralStatusCategory, ReferralStatusReason } from '@accredited-p | |||
|
|||
export default class WithdrawCategoryPage extends Page { | |||
constructor() { | |||
super('Withdraw referral') | |||
super('Withdraw referral', { | |||
pageTitleOverride: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
810f1ae
to
aa8ffae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the instances of ,
pageTitleOverride: `Risks and needs for referral to ${coursePresenter.displayName}`
can also be put in sharedPageData
. Would also be nice to clean up any of the empty lines that have been added from moving hideTitleServiceName
there.
…ed' of https://github.com/ministryofjustice/hmpps-accredited-programmes-ui into APG-556-TECH-UI-1.5-and-5.1-Page-titles-could-be-improved
Tidy up integration tests
05e2fdb
to
c0ef4dd
Compare
Context
Updates the way we build titles from copying the page heading to using one of 3 formats:
Release process documentation
As part of our continuous deployment strategy we must ensure that this work is
ready to be released once merged.
Pre-merge
Post-merge