-
Notifications
You must be signed in to change notification settings - Fork 145
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
Containers refactor III - This time its composable #5715
Conversation
ba132c4
to
7d78a08
Compare
Thanks for taking this initiative, @pete-watters. Is it worth getting some reviewer eyes on this now for feedback, despite it being a draft PR still? |
I'm working on a final fix for Popup's then I will open for full review in the next hour no matter what 👍 |
21b14c4
to
2e39ebd
Compare
OK it turns out everything was working and the problem was solved by a lunch break |
@kyranjamie @alter-eggo : Can you please check this PR when you have some time? Its quite large so apologies for that but hopefully it adds a big improvement to the scalability of the container pattern |
hideBackButton?: boolean; | ||
hideLogo?: boolean; | ||
} | ||
|
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 can refactor <MainHeader
and <PageHeader
to merge them and keep them DRY but didn't want to let this drag on longer before review
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.
Thanks Pete, this looks like a well organised, configurable solution 👍🏻
This PR addresses some concerns around how I implemented adding global containers. See discussion here.
Context
here, now each page is responsible for defining it's own header via composition.There is a lot of code here but the main update is:
app/features/container
is now gone<MainHeader
,<PageHeader
,<PopupHeader
<Home
pages have this set @app-route
level as they share a simpler header<Page
wrapper to control their width:<Popup
pages are popup windows for Approval UX and don't need the<Page
wrapperThis is an improvement but could probably be improved more so please let me know of any suggestions.