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

Refactoring Inference Management UI #193380

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n';
export const INFERENCE_ENDPOINT_LABEL = i18n.translate(
'xpack.searchInferenceEndpoints.inferenceEndpointsLabel',
{
defaultMessage: 'Inference Endpoints',
defaultMessage: 'Inference endpoints',
}
);

Expand All @@ -21,7 +21,8 @@ export const CANCEL = i18n.translate('xpack.searchInferenceEndpoints.cancel', {
export const MANAGE_INFERENCE_ENDPOINTS_LABEL = i18n.translate(
'xpack.searchInferenceEndpoints.allInferenceEndpoints.description',
{
defaultMessage: 'View and manage your deployed inference endpoints.',
defaultMessage:
'Inference endpoints streamline the deployment and management of machine\nlearning models in Elasticsearch. Set up and manage NLP tasks using unique\nendpoints, to build AI-powered search.',
}
);

Expand Down Expand Up @@ -69,9 +70,16 @@ export const SEMANTIC_SEARCH_WITH_E5_LINK = i18n.translate(
);

export const VIEW_YOUR_MODELS_LINK = i18n.translate(
'xpack.searchInferenceEndpoints.addEmptyPrompt.viewYourModels',
'xpack.searchInferenceEndpoints.viewYourModels',
{
defaultMessage: 'ML Trained Models',
}
);

export const API_DOCUMENTATION_LINK = i18n.translate(
'xpack.searchInferenceEndpoints.apiDocumentationLink',
{
defaultMessage: 'View your models',
defaultMessage: 'API Documentation',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from './types';

export const DEFAULT_TABLE_ACTIVE_PAGE = 1;
export const DEFAULT_TABLE_LIMIT = 10;
export const DEFAULT_TABLE_LIMIT = 25;

export const DEFAULT_QUERY_PARAMS: QueryParams = {
page: DEFAULT_TABLE_ACTIVE_PAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const DeleteAction: React.FC<DeleteActionProps> = ({ selectedEndpoint })

deleteEndpoint({
type: selectedEndpoint.type,
id: selectedEndpoint.endpoint.inference_id,
id: selectedEndpoint.endpoint,
});
};

Expand All @@ -37,7 +37,7 @@ export const DeleteAction: React.FC<DeleteActionProps> = ({ selectedEndpoint })
<EuiButtonIcon
aria-label={i18n.translate('xpack.searchInferenceEndpoints.actions.deleteEndpoint', {
defaultMessage: 'Delete inference endpoint {selectedEndpointName}',
values: { selectedEndpointName: selectedEndpoint?.endpoint.inference_id },
values: { selectedEndpointName: selectedEndpoint?.endpoint },
})}
key="delete"
iconType="trash"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading