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

[ML] Migrate field-type-icon to EUI/React. #19159

Merged
merged 3 commits into from
May 17, 2018

Conversation

walterra
Copy link
Contributor

@walterra walterra commented May 17, 2018

Migrates the field-type-icon directive to use EUI/React.

Instead of the angular/bootstrap tooltip attribute on the directive's tag, there's now an option tooltip-enabled which when true wraps the component inside EuiToolTip.

Part of #18374.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@walterra walterra self-assigned this May 17, 2018
@walterra walterra added :ml Feature:Anomaly Detection ML anomaly detection labels May 17, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM, although a separate issue should be created to switch from the font awesome icons to EuiIcons.

let iconClass = '';
let iconChar = '';

switch (type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should migrate these Font Awesome icons to EUI icons I think. There are suitable replacements for most of these:

  • fa-adjust - invert
  • fa-clock-o - clock
  • hash symbol - number
  • fa-file-text-o - document (although would be nice to have one for a text style document)

I can't find any suitable replacements for

  • fa-globe
  • fa-laptop

You should raise an issue in the eui repo for the icons we need added.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@walterra walterra merged commit 69b857c into elastic:master May 17, 2018
@walterra walterra deleted the ml-eui-field-type-icon branch May 17, 2018 11:21
walterra added a commit to walterra/kibana that referenced this pull request May 17, 2018
Migrates the field-type-icon directive to use EUI/React. Instead of the angular/bootstrap tooltip attribute on the directive's tag, there's now an option tooltip-enabled which when true wraps the component inside EuiToolTip.
walterra added a commit that referenced this pull request May 17, 2018
Migrates the field-type-icon directive to use EUI/React. Instead of the angular/bootstrap tooltip attribute on the directive's tag, there's now an option tooltip-enabled which when true wraps the component inside EuiToolTip.
@elasticmachine
Copy link
Contributor

💔 Build Failed

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.

None yet

4 participants