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] Convert Explorer Influencers List to EUI/React #18773

Merged

Conversation

peteharverson
Copy link
Contributor

Converts the Influencers List component, used in the Anomaly Explorer, from Angular to EUI / React.

Also includes some styling edits to clean up the look of the section titles, bars and total score indicators.

Previous Angular based component:
influencer_list_angular

EUI / React component:
influencer_list_eui

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

const totalScoreLabel = totalScore !== 0 ? totalScore : '< 1';

// Ensure the bar has some width for 0 scores.
const barScore = maxScore !== 0 ? maxScore : 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: styleguide suggests to always use parentheses for conditionals, the ternary examples also use parentheses.


}
module.directive('mlInfluencersListReact', function ($injector) {
Copy link
Contributor

Choose a reason for hiding this comment

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

mlInfluencersListReact should stay mlInfluencersList.

index-pattern-id="indexPatternId"
tooltip-placement="right">
</ml-influencers-list>
<ml-influencers-list-react
Copy link
Contributor

Choose a reason for hiding this comment

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

ml-influencers-list-react should stay ml-influencers-list.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

@peteharverson peteharverson merged commit 5de7909 into elastic:master May 4, 2018
@peteharverson peteharverson deleted the ml-influencers-list-react branch May 4, 2018 08:23
peteharverson added a commit to peteharverson/kibana that referenced this pull request May 4, 2018
* [ML] Convert Explorer Influencers List to EUI/React

* [ML] Remove unused abbreviate_whole_number Angular filter

* [ML] Convert React Influencers List to stateless function
@peteharverson
Copy link
Contributor Author

Addresses Influencers List item on #18374

peteharverson added a commit that referenced this pull request May 4, 2018
* [ML] Convert Explorer Influencers List to EUI/React

* [ML] Remove unused abbreviate_whole_number Angular filter

* [ML] Convert React Influencers List to stateless function
@sophiec20 sophiec20 added the Feature:Anomaly Detection ML anomaly detection label Jun 19, 2019
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

5 participants