-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Index pattern management - typescript components #56987
Index pattern management - typescript components #56987
Conversation
@elasticmachine merge upstream |
…ttkime/kibana into create_index_pattern_components_to_ts
@elasticmachine merge upstream |
…ttkime/kibana into create_index_pattern_components_to_ts
Pinging @elastic/kibana-app-arch (Team:AppArch) |
@elasticmachine merge upstream |
…ttkime/kibana into create_index_pattern_components_to_ts
…ith the same name
@elasticmachine merge upstream |
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.
LGTM. Ran on Mac/Chrome. Added an optional nit comment below.
}: { | ||
isInputInvalid: boolean; | ||
errors: any; | ||
characterList: string; | ||
query: string; | ||
onQueryChanged: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
goToNextStep: (query: string) => void; | ||
isNextStepDisabled: 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.
Maybe instead of inlining a type here, type this function as a React component?
interface Props {
isInputInvalid: boolean;
errors: any;
characterList: string;
query: string;
onQueryChanged: (e: React.ChangeEvent<HTMLInputElement>) => void;
goToNextStep: (query: string) => void;
isNextStepDisabled: boolean;
}
const Header: React.FC<Props> =
@@ -22,16 +22,26 @@ import React from 'react'; | |||
import { EuiText, EuiTextColor, EuiIcon } from '@elastic/eui'; | |||
|
|||
import { FormattedMessage } from '@kbn/i18n/react'; | |||
import { MatchedIndex } from '../../../../types'; | |||
|
|||
export const StatusMessage = ({ |
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.
Same with this component.
@@ -29,6 +29,11 @@ export const AdvancedOptions = ({ | |||
indexPatternId, | |||
toggleAdvancedOptions, | |||
onChangeIndexPatternId, | |||
}: { |
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.
Same here.
@@ -23,7 +23,13 @@ import { EuiTitle, EuiSpacer, EuiText } from '@elastic/eui'; | |||
|
|||
import { FormattedMessage } from '@kbn/i18n/react'; | |||
|
|||
export const Header = ({ indexPattern, indexPatternName }) => ( | |||
export const Header = ({ |
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.
Same here.
@@ -42,6 +42,13 @@ export const TimeField = ({ | |||
isLoading, | |||
selectedTimeField, | |||
onTimeFieldChanged, | |||
}: { |
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.
Same here.
…ttkime/kibana into create_index_pattern_components_to_ts
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Index pattern management - typescript components
Summary
Index pattern management - typescript components