-
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
[ML] Convert Explorer Influencers List to EUI/React #18773
[ML] Convert Explorer Influencers List to EUI/React #18773
Conversation
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; |
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.
nitpick: styleguide suggests to always use parentheses for conditionals, the ternary examples also use parentheses.
|
||
} | ||
module.directive('mlInfluencersListReact', function ($injector) { |
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.
mlInfluencersListReact
should stay mlInfluencersList
.
index-pattern-id="indexPatternId" | ||
tooltip-placement="right"> | ||
</ml-influencers-list> | ||
<ml-influencers-list-react |
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.
ml-influencers-list-react
should stay ml-influencers-list
.
💚 Build Succeeded |
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
💚 Build Succeeded |
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
* [ML] Convert Explorer Influencers List to EUI/React * [ML] Remove unused abbreviate_whole_number Angular filter * [ML] Convert React Influencers List to stateless function
Addresses Influencers List item on #18374 |
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:
EUI / React component: