-
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
Generic Index Page #78
Conversation
…CMS-180' into generic-index-page-CMS-180
Just a note - the linters just made me format the automatically generated migrations file, might be a sign our linters are a tad too restrictive... |
…CMS-180' into generic-index-page-CMS-180
Note regarding the above commit: The check added is meant to prevent the situation where:
Possibly that’s not the most elegant solution so I’m open to suggestions. PS It appears that doing trying to access the PPS Shout out to @nehakerung for spotting that! |
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 think the altered migrations need to be addressed before this merges to main.
cms/standard_pages/migrations/0003_alter_informationpage_summary.py
Outdated
Show resolved
Hide resolved
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.
Left a few minor non-blocking comments around clean code/ refactoring. Tested everything locally, and everything seems to be working well. Looks good to me!
Great work ;)
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.
LGTM - had a check through and think it looks great.
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.
LGTM!
What is the context of this PR?
Note that the Front End will differ from the current About us page that's given on the Jira card as an example of an Index page; that includes but isn't limited to the fact that the list is displayed vertically.
I've talked to Helen and John D and it appears that the design for the Index page hasn't been finalised yet, so it's likely it'll have to be revisited.
Because there's no design to refer to and the Jira card doesn't specify that, I've decided give the publisher the flexibility to add Featured pages with or without the
description
field.That might cause some formatting issues when some of the block will and some won't have the
description
.In order to prevent that the backend might have to be modified to get rid of this problem by making the
description
mandatory, making the size of the Featured items consistent.Similarly, when child pages are displayed as the Featured items, they'll currently be displayed without the
description
field. Depending on the design, this might have to be changed for example by allowing the publisher to add a description for the child pages or automatically pull information from the child page summary.How to review
Command to the unit tests just for this page:
For Functional testing, make sure that the new "Featured items" functionality works:
The page also uses the
RelatedContentBlock
in a new context - so far it was only used as one of the StreamFields available in the maincontent
of pages. Here - it's used on it's own and as rendered as a separateonsRelatedContent
component the Design System. Worth double checking that it renders correctly :)Jira card
https://jira.ons.gov.uk/browse/CMS-180