Skip to content
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

Merged

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Feb 6, 2020

Summary

Index pattern management - typescript components

@mattkime
Copy link
Contributor Author

mattkime commented Feb 6, 2020

@elasticmachine merge upstream

@elastic elastic deleted a comment from kibanamachine Feb 7, 2020
@mattkime
Copy link
Contributor Author

mattkime commented Feb 7, 2020

@elasticmachine merge upstream

@streamich streamich added Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:AppArch labels Feb 7, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@mattkime
Copy link
Contributor Author

mattkime commented Feb 7, 2020

@elasticmachine merge upstream

@elastic elastic deleted a comment from kibanamachine Feb 10, 2020
@elastic elastic deleted a comment from elasticmachine Feb 10, 2020
@elastic elastic deleted a comment from elasticmachine Feb 10, 2020
@elastic elastic deleted a comment from elasticmachine Feb 10, 2020
@elastic elastic deleted a comment from elasticmachine Feb 10, 2020
@mattkime mattkime marked this pull request as ready for review February 16, 2020 23:30
@mattkime mattkime requested a review from a team as a code owner February 16, 2020 23:30
@mattkime mattkime added the release_note:skip Skip the PR/issue when compiling release notes label Feb 17, 2020
@elastic elastic deleted a comment from kibanamachine Feb 17, 2020
@mattkime
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@streamich streamich left a 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.

Comment on lines 45 to 52
}: {
isInputInvalid: boolean;
errors: any;
characterList: string;
query: string;
onQueryChanged: (e: React.ChangeEvent<HTMLInputElement>) => void;
goToNextStep: (query: string) => void;
isNextStepDisabled: boolean;
Copy link
Contributor

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 = ({
Copy link
Contributor

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,
}: {
Copy link
Contributor

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 = ({
Copy link
Contributor

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,
}: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@elastic elastic deleted a comment from kibanamachine Feb 18, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mattkime mattkime merged commit 911981d into elastic:master Feb 18, 2020
mattkime added a commit to mattkime/kibana that referenced this pull request Feb 18, 2020
* Index pattern management - typescript components
mattkime added a commit that referenced this pull request Feb 18, 2020
* Index pattern management - typescript components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants