-
Notifications
You must be signed in to change notification settings - Fork 9
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
Revamp layouts #4831
Revamp layouts #4831
Conversation
271cecb
to
816c666
Compare
2a2cc23
to
e726e86
Compare
84cc186
to
ff5597f
Compare
We retain the existing Header component for Publish while we design how the new header should work alongside the organisation switcher.
ff5597f
to
632a4db
Compare
@@ -2,22 +2,21 @@ | |||
|
|||
require 'rails_helper' | |||
|
|||
RSpec.feature 'view components' do |
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 wouldn't remove the explicit receiver here. It's good practice to not rely on implicit receivers in the global namespace
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 moved the file and dropped the receiver at the same time and it fixed an issue and I just ran with it 😅 .
Brought back the receiver.
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.
Great work!
It feels like a massive improvement. And the commits were easy to follow.
💯
Move view_components_spec into support
632a4db
to
06ea67f
Compare
Context
Our
application.html.erb
layout has code that handles multiple namespace variants, namely thesupport
vspublish
namespaces. This creates increases the complexity of the layout and its less straight-forward about what should render where and when.While working on layouts, we were given the heads up that we want to update the Find header.
Since we're working on a new view component, enhance the view component preview pages.
Changes proposed in this pull request
Re-organise layouts.
application.html.erb
layout. Top-level pages are generally Publish-facing pages.Reorganise stylesheets to align with namespace patterns.
Change the Find and Support layouts to use the new
HeaderComponent
that includes theservice_navigation
component.Guidance to review
Screenshots
Publish
Find
Support
View component previews