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

Update past prime ministers #6236

Closed
wants to merge 7 commits into from
Closed

Conversation

chris-gds
Copy link
Contributor

@chris-gds chris-gds commented Aug 13, 2021

What

Update Past Prime Minster's page to apply new Design + Design system + use Components

Why

On-going work to align architecture, have pages benefit from Accessibility improvements

Visuals

Before After*
www gov uk_government_history_past-prime-ministers(iPhone 6_7_8 Plus) 1www gov uk_government_history_past-prime-ministers(iPhone-6_7_8-Plus)
www gov uk_government_history_past-prime-ministers (1) screenshot-www integration publishing service gov uk-2021 08 31-12_55_10

Anything else

  • image_card was extended to factor in a new Design and
  • lazy loading was added to the image_card as this maintains existing performance benefits.

Discussion around Design System layout + lists can be found here, an issue capturing the concerns can be found here

Grouped related PRs

#6236
#6243
#6241

Done when

@chris-gds chris-gds force-pushed the update-past-prime-minister branch 2 times, most recently from 7aef397 to e4e059a Compare August 13, 2021 12:47
@chris-gds chris-gds changed the title Update past prime minister Update past prime ministers Aug 13, 2021
@chris-gds chris-gds force-pushed the update-past-prime-minister branch 4 times, most recently from 7fb92d3 to 8b0f4cb Compare August 16, 2021 11:18
@chris-gds chris-gds requested review from injms and danacotoran and removed request for injms August 16, 2021 12:10
@chris-gds chris-gds marked this pull request as ready for review August 16, 2021 12:12
@chris-gds chris-gds requested review from injms and owenatgov August 16, 2021 12:12
@chris-gds chris-gds marked this pull request as draft August 16, 2021 12:22
@chris-gds chris-gds force-pushed the update-past-prime-minister branch 2 times, most recently from a5716f1 to d50a235 Compare August 16, 2021 17:00
@chris-gds chris-gds force-pushed the update-past-prime-minister branch 4 times, most recently from 5799412 to d804e48 Compare August 20, 2021 14:46
@chris-gds chris-gds requested review from jon-kirwan and removed request for danacotoran, injms and owenatgov August 20, 2021 16:00
This was referenced Aug 20, 2021
@jon-kirwan
Copy link
Contributor

Looks fine to me - although it looks there is one error with one of the tests (otherwise all good!)

@chris-gds chris-gds force-pushed the update-past-prime-minister branch 2 times, most recently from fb6c70b to 1589989 Compare August 24, 2021 12:02
@chris-gds chris-gds force-pushed the update-past-prime-minister branch 2 times, most recently from 74c0aef to 889148a Compare August 26, 2021 16:33
@edwardkerry edwardkerry force-pushed the update-past-prime-minister branch 2 times, most recently from c0b347e to 7cbffb1 Compare August 27, 2021 14:43
@chris-gds chris-gds requested a review from edwardkerry August 31, 2021 10:32
@chris-gds chris-gds force-pushed the update-past-prime-minister branch from a24ea0d to d48b5f6 Compare August 31, 2021 11:29
@chris-gds chris-gds requested a review from maxgds August 31, 2021 11:30
@chris-gds
Copy link
Contributor Author

Testing issues, currently, believed not be related

Copy link
Contributor

@maxgds maxgds left a comment

Choose a reason for hiding this comment

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

Code changes look sound, page rendered fine on integration when I pushed it there, with the exception of linked dates. I noted the dependabot update so have merged that which should solve that issue.

@maxgds
Copy link
Contributor

maxgds commented Sep 1, 2021

Code changes look sound, page rendered fine on integration when I pushed it there, with the exception of linked dates. I noted the dependabot update so have merged that which should solve that issue.

@chris-gds Before we merge this could you rebase against master and push to integration to ensure the gem change is being picked up as we'd expect?

Chris Yoong and others added 7 commits September 1, 2021 15:38
- Remove Duplicate Header
- Update to use image card component[1]
- Restructure groupings of people into 21st, 20th + 18/19th Centuries.
- Apply Design system
- Restructure render so grouping is via column-quarters / grid system[2]

- Add breadcrumb link due to current IA of site.
"The breadcrumb should start with your ‘home’ page and end with the parent section of the current page."[3]

Page: /government/history/past-prime-ministers

[1] https://components.publishing.service.gov.uk/component-guide/image_card
[2] https://design-system.service.gov.uk/styles/layout/
[3] https://design-system.service.gov.uk/components/breadcrumbs/
- Update with ID as Whitehall testing requires require res unique ID on element
- Update to use image coming from database (placeholder used for local dev)
PR 


a
Maintain Design System layout + add aria so functions as a list to AT
To match Design[1]

- Add spacing between sections on larger screens
- Overwrite image card styling for "years of service" Content

[1]https://www.figma.com/file/UjCeRTxle1bLQv3VFNz9Wt/Redesign-of-history-pages?node-id=11%3A138
…ntries

Previously individuals who had held the same appointment multiple times
would appear in the list for each occurance.

This change ensures that only the most recent appointment is displayed,
with the past apppointment dates listed for the same entry.
Integrate "extra_links" from updated image_card changes so item displays:

[party] [year]
[party] [year]
[party] [year]

as text only.
@chris-gds chris-gds force-pushed the update-past-prime-minister branch from d48b5f6 to d923291 Compare September 1, 2021 14:39
@chris-gds
Copy link
Contributor Author

chris-gds commented Sep 1, 2021

@chris-gds Before we merge this could you rebase against master and push to integration to ensure the gem change is being picked up as we'd expect?

Course, as merged integration - looks as expected, will just be sharing with Design before merging

@chris-gds
Copy link
Contributor Author

chris-gds commented Sep 1, 2021

Theresa May Content page appears to be incomplete. Placing in Draft for the moment while Content requested

@chris-gds chris-gds marked this pull request as draft September 1, 2021 15:51
@chris-gds chris-gds mentioned this pull request Sep 6, 2021
@chris-gds
Copy link
Contributor Author

Moving into draft as combined PR raised: #6264

@chris-gds chris-gds closed this Sep 7, 2021
@barrucadu barrucadu deleted the update-past-prime-minister branch November 24, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants