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
[WIP] [DO NOT MERGE] Redesign No. 10 organisation page #3605
base: main
Are you sure you want to change the base?
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.
Some minor comments, mainly noting the lack of tests in some areas, but I appreciate that not everything might be testable, or covered by other kinds of tests, so happy to discuss.
- add test for missing image reporting - move promotional features around to match promotional features with video details - add stubs for missing news items to test handling of unusual cases on integration
- Split promotional features methods into their own helper - Add styles for videos partials links - Videos partial - Add the video title as a heading - Use brand color for more videos link - Use YouTube video URL as the YouTube link text To prevent duplication with the heading above it in no-js situations. - Tests for helper
- Helper that grabs latest news from a search - Also grabs content item for first latest news item to get image - Partial for latest news - Add default image fallback (No. 10 front door, since this is only used by No. 10 at the moment) - tests for helper
- partial for small feature news items - partial for side-by-side prmotional features
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.
Frontend code looks good to me 👏
What
Why
Things for frontend to look at:
The image card is alwayslarge: true
when a YouTube video is present, causing a formatting issue, so component change is neededThings for backend to look at:
app/presenters/organisations/contacts_presenter.rb
line 68 (basically you need to remove brand__color if its the no 10 page) and I can't figure out how to do it as the@org.is_no_10?
boolean doesn't work in that presenter@what_we_do.has_share_links?
, so maybe they can't remove the 'what we do' section from Whitehall?