Skip to content
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

Map 178 uof new header and footer #646

Merged
merged 5 commits into from
Sep 28, 2023

Conversation

GurnankCheema
Copy link
Contributor

@GurnankCheema GurnankCheema commented Sep 27, 2023

The changes follow the guidance here

The blue feedback block (which leads to Survey Monkey) above footer removed as new footer has a feedback link also going to Survey monkey

The /get-help page removed as the new footer has a phone number for application support

Useful info in these projects that have also implemented the new header/footer:
CVL
DPS

Copy link
Contributor

@davidthomas22 davidthomas22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assets/sass/application.sass
assets/sass/components/_footer.scss
assets/sass/components/_header-bar.scss

New line linting, once resolved LGTM

1. reverted css relating to contenr width because the Use of force reports' page needs a greater width to accommodate 4 tabs and a link. Have made the new headers the same width.
2. reverted crossOriginEmbedderPolicy to false as otherwise the date widget will not work. 
3. Defined the digitalPrisonServiceUrldp var in nunjucks setup so that it could be accessed by the fallback header
@@ -91,7 +91,7 @@ export default function createApp(services: Services): Express {

app.use(
helmet({
crossOriginEmbedderPolicy: true,
crossOriginEmbedderPolicy: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed for date-picker widget in new report page and Completed reports page

@@ -39,6 +39,7 @@ export default function configureNunjucks(app: Express.Application): nunjucks.En
njkEnv.addGlobal('authUrl', config.apis.oauth2.url)
njkEnv.addGlobal('apiClientId', config.apis.oauth2.apiClientId)
njkEnv.addGlobal('featureFlagOutageBannerEnabled', config.featureFlagOutageBannerEnabled)
njkEnv.addGlobal('digitalPrisonServiceUrl', config.apis.digitalPrisonServiceUrl)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed by fallback header

@@ -1,5 +1,12 @@
@import "palette"

div.govuk-width-container
Copy link
Contributor Author

@GurnankCheema GurnankCheema Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs wider container width in Use of force incidents page
used 1170px instead of 1150px previously used so it's same as new header width

Copy link
Contributor

@davidthomas22 davidthomas22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GurnankCheema GurnankCheema merged commit 40dc910 into main Sep 28, 2023
@GurnankCheema GurnankCheema deleted the MAP-178-UoF-new-header-and-footer branch September 28, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants