-
Notifications
You must be signed in to change notification settings - Fork 20
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
Extend layout for public with account components #2255
Conversation
5b9c2de
to
a76476d
Compare
a76476d
to
e720999
Compare
e720999
to
fcd6679
Compare
fcd6679
to
1286670
Compare
1286670
to
1d115ef
Compare
app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
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.
My comments shouldn't be blockers on this - and I think they're indicative of a possible future problem (do components have too many uses?) that we should solve as a community.
1d115ef
to
364a7bb
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.
Apols, got half way through reviewing this earlier and completely forgot about it. Looks good, some minor comments.
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Outdated
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_layout_for_public.html.erb
Show resolved
Hide resolved
cf06321
to
016e925
Compare
Update layout_for_public component to support GOVUK account components. Existing variations of the component will remain unchanged, but a few options have been introduced to support the main GOVUK account layout variations. The intention is for this to be used with a layout template in static, to apply account-like page furniture to pages that should have the account layout, while not being rendered by the govuk-account-manager-prototype app.
016e925
to
a474f81
Compare
What
Update
layout_for_public
component to support GOVUK Account components.Why
Some account-related components, contents, and CSS are repeated across different apps on GOVUK.
The first instance of this was when we relocated the account homepage from the govuk-account-manager-app to the frontend app, which meant that some of the page furniture and content was duplicated between those apps.
More recently, the accounts team are working towards the goal of single page notifications which will enable users who have linked their email notifications address and their GOVUK account email address to manage their email subscriptions through their account.
Part of this work is making the email management pages (rendered by
email-alert-frontend
) look the same as the account manager when the user is authenticated with a linked account. Preview:That would make it three separate apps where page furniture and content are repeated to achieve the same layout.
The purpose of this PR is to extend
layout_for_public
so that it can be used as a "shell" for account (or "account-style" pages).Visual changes
Existing variations of the component will remain unchanged. A few options have been introduced to support the main GOVUK Account layout variations. The intention is for this to be used with a layout template in
static
(or, in the case of thegovuk-account-manager-prototype
app, be used directly in the application layout)Related:
static
: Add new layout template for account-like pages static#2571email-alert-frontend
: Account layout for email management pages email-alert-frontend#1106https://trello.com/c/F0ZDY0RC