-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Logs UI] Add setup screen for the categorization tab (#51905)
- Loading branch information
1 parent
862265a
commit 8863fc2
Showing
41 changed files
with
852 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
x-pack/legacy/plugins/infra/public/components/logging/log_analysis_setup/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export * from './setup_page'; | ||
|
||
export * from './initial_configuration_step'; | ||
export * from './process_step'; | ||
|
||
export * from './ml_unavailable_prompt'; | ||
export * from './setup_status_unknown_prompt'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
*/ | ||
|
||
export * from './initial_configuration_step'; | ||
export * from './validation'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ra/public/components/logging/log_analysis_setup/initial_configuration_step/validation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { ValidationIndicesError } from '../../../../../common/http_api'; | ||
|
||
export type ValidationIndicesUIError = | ||
| ValidationIndicesError | ||
| { error: 'NETWORK_ERROR' } | ||
| { error: 'TOO_FEW_SELECTED_INDICES' }; | ||
|
||
interface ValidIndex { | ||
validity: 'valid'; | ||
name: string; | ||
isSelected: boolean; | ||
} | ||
|
||
interface InvalidIndex { | ||
validity: 'invalid'; | ||
name: string; | ||
errors: ValidationIndicesError[]; | ||
} | ||
|
||
export type ValidatedIndex = ValidIndex | InvalidIndex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
59 changes: 59 additions & 0 deletions
59
x-pack/legacy/plugins/infra/public/components/logging/log_analysis_setup/setup_page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { | ||
CommonProps, | ||
EuiPage, | ||
EuiPageBody, | ||
EuiPageContent, | ||
EuiPageContentBody, | ||
EuiPageContentHeader, | ||
EuiPageContentHeaderSection, | ||
EuiTitle, | ||
} from '@elastic/eui'; | ||
import React from 'react'; | ||
|
||
import euiStyled from '../../../../../../common/eui_styled_components'; | ||
|
||
export const LogAnalysisSetupPage: React.FunctionComponent<CommonProps> = ({ | ||
children, | ||
...rest | ||
}) => { | ||
return ( | ||
<LogEntryRateSetupPage> | ||
<EuiPageBody> | ||
<LogEntryRateSetupPageContent | ||
verticalPosition="center" | ||
horizontalPosition="center" | ||
{...rest} | ||
> | ||
{children} | ||
</LogEntryRateSetupPageContent> | ||
</EuiPageBody> | ||
</LogEntryRateSetupPage> | ||
); | ||
}; | ||
|
||
export const LogAnalysisSetupPageHeader: React.FunctionComponent = ({ children }) => ( | ||
<EuiPageContentHeader> | ||
<EuiPageContentHeaderSection> | ||
<EuiTitle size="m"> | ||
<h3>{children}</h3> | ||
</EuiTitle> | ||
</EuiPageContentHeaderSection> | ||
</EuiPageContentHeader> | ||
); | ||
|
||
export const LogAnalysisSetupPageContent = EuiPageContentBody; | ||
|
||
// !important due to https://github.com/elastic/eui/issues/2232 | ||
const LogEntryRateSetupPageContent = euiStyled(EuiPageContent)` | ||
max-width: 768px !important; | ||
`; | ||
|
||
const LogEntryRateSetupPage = euiStyled(EuiPage)` | ||
height: 100%; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.