Skip to content

Commit

Permalink
[ML] Anomaly detection: Use EUI icons for Rare, Geo and Categorizatio…
Browse files Browse the repository at this point in the history
…n jobs (elastic#207269)

With elastic/eui#8248 merged and icons now
available in EUI, updating them in Kibana.
This addresses elastic#204594.

<img width="904" alt="image"
src="https://github.com/user-attachments/assets/92860afe-df74-44d8-b739-c630d4ca40a2"
/>
  • Loading branch information
rbrtj authored Jan 21, 2025
1 parent 1a6bfef commit 17be4e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 59 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ import { useDataSource } from '../../../../contexts/ml';
import { DataRecognizer } from '../../../../components/data_recognizer';
import { addItemToRecentlyAccessed } from '../../../../util/recently_accessed';
import { LinkCard } from '../../../../components/link_card';
import { CategorizationIcon } from './categorization_job_icon';
import { ML_APP_LOCATOR, ML_PAGES } from '../../../../../../common/constants/locator';
import { RareIcon } from './rare_job_icon';
import { GeoIcon } from './geo_job_icon';
import { useCreateAndNavigateToMlLink } from '../../../../contexts/kibana/use_create_url';
import { MlPageHeader } from '../../../../components/page_header';

Expand Down Expand Up @@ -214,7 +211,7 @@ export const Page: FC = () => {
{
onClick: () => navigateToPath(`/jobs/new_job/categorization${getUrlParams()}`),
icon: {
type: CategorizationIcon,
type: 'createGenericJob',
ariaLabel: i18n.translate('xpack.ml.newJob.wizard.jobType.categorizationAriaLabel', {
defaultMessage: 'Categorization job',
}),
Expand All @@ -230,7 +227,7 @@ export const Page: FC = () => {
{
onClick: () => navigateToPath(`/jobs/new_job/rare${getUrlParams()}`),
icon: {
type: RareIcon,
type: 'createGenericJob',
ariaLabel: i18n.translate('xpack.ml.newJob.wizard.jobType.rareAriaLabel', {
defaultMessage: 'Rare job',
}),
Expand All @@ -249,7 +246,7 @@ export const Page: FC = () => {
jobTypes.push({
onClick: () => navigateToPath(`/jobs/new_job/geo${getUrlParams()}`),
icon: {
type: GeoIcon,
type: 'createGeoJob',
ariaLabel: i18n.translate('xpack.ml.newJob.wizard.jobType.geoAriaLabel', {
defaultMessage: 'Geo job',
}),
Expand Down

0 comments on commit 17be4e6

Please sign in to comment.