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

[Management] Index pattern creation wizard in React! #16499

Merged
merged 2 commits into from
Feb 6, 2018

Conversation

chrisronline
Copy link
Contributor

Follows #15722, #15936, #16129

Background

This PR is the last step at refactoring the index pattern creation wizard from Angular to React. The management team decided to do both the EUI and React refactor at the same time.

Details

This PR removes all existing angular code for the index pattern creation wizard and replaces it with React. The functionality should be exactly the same

The file structure looks like:

  • components/ - This contains all the parts of the index pattern creation wizard
  • constants/ - This is where the constants used throughout index pattern creation are stored
  • lib/ - This is where helper functions exist, isolated and dependency-free

@chrisronline
Copy link
Contributor Author

cc @cjcenizal

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

🎺 You're at the finish line! I found one thing I think we can remove and had one suggestion about toasts.

Also, can we put this spinner on the left side of the text?

image

indexPatterns: $injector.get('indexPatterns'),
savedObjectsClient: $injector.get('Private')(SavedObjectsClientProvider),
kbnUrl: $injector.get('kbnUrl'),
notify: new Notifier(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this isn't in use? I think it was originally needed to surface a fatal error but yours truly removed that requirement. ;)

FYI, we can use the new toastNotifications service to show a toast when the index pattern is successfully created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great point! Removed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@chrisronline
Copy link
Contributor Author

@cjcenizal Ready!

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

⚡️ LGTM!

Copy link
Contributor

@bmcconaghy bmcconaghy left a comment

Choose a reason for hiding this comment

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

LGTM

@chrisronline chrisronline merged commit 6e0d6a3 into elastic:master Feb 6, 2018
chrisronline added a commit to chrisronline/kibana that referenced this pull request Feb 6, 2018
* Index pattern creation wizard shell

* PR feedback
@chrisronline chrisronline deleted the reactify-ipc-shell branch February 6, 2018 14:16
chrisronline added a commit that referenced this pull request Feb 6, 2018
* Index pattern creation wizard shell

* PR feedback
@chrisronline
Copy link
Contributor Author

Backport

6.x: e2d249e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants