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
[ENDPOINT] Initial version of new page layout. #71687
base: main
Are you sure you want to change the base?
Conversation
direction="column" | ||
gutterSize="none" | ||
data-test-subj="wrapped-by-auto-sizer" | ||
style={{ minHeight: 'calc(100vh - 48px)' }} |
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.
Never mind that it's inline style, it was result of a lot of experimenting, will fix it when we agree on this solution.
@@ -20,7 +21,7 @@ import { navTabs } from './home_navigations'; | |||
import { useSignalIndex } from '../../detections/containers/detection_engine/alerts/use_signal_index'; | |||
|
|||
const WrappedByAutoSizer = styled.div` | |||
height: 100%; | |||
min-height: calc(100vh - 48px); |
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.
This whole styling might end up being removed if we decide to go with EuiFlexGroup and EuiFlexItem.
<WrappedByAutoSizer data-test-subj="wrapped-by-auto-sizer" ref={measureRef}> | ||
<HeaderGlobal /> | ||
|
||
<Main data-test-subj="pageContainer"> |
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.
This is one part where I was not sure - do we strive for semantic markup? I removed the main tag because I used EUI layout components (EuiFlexGroup and EuiFlexItem), but instead I can just use EUI classes on HTML elements.
|
||
<HelpMenu /> | ||
</WrappedByAutoSizer> | ||
</EuiFlexGroup> |
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.
So this changes the file shared between all the apps (it's a bit confusing that it's named HomePage). I did a very shallow test but would need to be tested a bit more thoroughly. I guess I should align this change with other teams (maybe Rob?).
@@ -25,15 +25,17 @@ import { EuiTabProps } from '@elastic/eui/src/components/tabs/tab'; | |||
|
|||
const StyledEuiPage = styled(EuiPage)` | |||
&.endpoint--isListView { | |||
padding: 0 ${(props) => props.theme.eui.euiSizeL}; | |||
padding: 0; | |||
flex: 1 1 100%; |
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'm not sure if I want to use flex directly, I'd rather find a way to use EUI classes but not sure it's as easy.
border-right: none; | ||
border: none; | ||
box-shadow: none; | ||
border-radius: 0; |
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 discussed with Kevin that it feels like we use EuiPage component but then we actually overwrite a lot of it's styling so it's not clear if that component is helping much. I think it would be nice to have this type of layout supported by EUI.
💔 Build Failed
Failed CI Steps
Test FailuresKibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/security_solution/public/common/components/endpoint.PageView component should display only body if not header props usedStandard Out
Stack Trace
Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/security_solution/public/common/components/endpoint.PageView component should display header left and rightStandard Out
Stack Trace
Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/security_solution/public/common/components/endpoint.PageView component should display only header leftStandard Out
Stack Trace
and 6 more failures, only showing the first 3. Build metrics
To update your PR or re-run it, just comment with: |
Summary
Attempt to implement new list page layout. Done based on the same approach used in Observability -> Overview and Ingest Manager views.
New layout: