Skip to content
Snippets Groups Projects
Commit 5cc217e1 authored by Eduardo Bonet's avatar Eduardo Bonet :speech_balloon: Committed by Jose Ivan Vargas
Browse files

Shows header of MlExpeirmentIndex on empty state

Changelog: changed
parent aabe2df4
No related branches found
No related tags found
2 merge requests!120936Draft: Debugging commit to trigger pipeline (DO NOT MERGE),!120482Shows header of MlExpeirmentIndex on empty state
......@@ -51,27 +51,29 @@ export default {
</script>
<template>
<div v-if="hasExperiments">
<div>
<model-experiments-header :page-title="$options.i18n.TITLE_LABEL" />
<gl-table-lite :items="tableItems" :fields="$options.tableFields">
<template #cell(nameColumn)="data">
<gl-link :href="data.value.path">
{{ data.value.name }}
</gl-link>
</template>
</gl-table-lite>
<template v-if="hasExperiments">
<gl-table-lite :items="tableItems" :fields="$options.tableFields">
<template #cell(nameColumn)="data">
<gl-link :href="data.value.path">
{{ data.value.name }}
</gl-link>
</template>
</gl-table-lite>
<pagination v-if="hasExperiments" v-bind="pageInfo" />
</div>
<pagination v-if="hasExperiments" v-bind="pageInfo" />
</template>
<gl-empty-state
v-else
:title="$options.i18n.EMPTY_STATE_TITLE_LABEL"
:primary-button-text="$options.i18n.CREATE_NEW_LABEL"
:primary-button-link="$options.constants.CREATE_EXPERIMENT_HELP_PATH"
:svg-path="emptyStateSvgPath"
:description="$options.i18n.EMPTY_STATE_DESCRIPTION_LABEL"
class="gl-py-8"
/>
<gl-empty-state
v-else
:title="$options.i18n.EMPTY_STATE_TITLE_LABEL"
:primary-button-text="$options.i18n.CREATE_NEW_LABEL"
:primary-button-link="$options.constants.CREATE_EXPERIMENT_HELP_PATH"
:svg-path="emptyStateSvgPath"
:description="$options.i18n.EMPTY_STATE_DESCRIPTION_LABEL"
class="gl-py-8"
/>
</div>
</template>
......@@ -4,8 +4,10 @@ export const TITLE_LABEL = s__('MlExperimentTracking|Model experiments');
export const CREATE_NEW_LABEL = s__('MlExperimentTracking|Create a new experiment');
export const EMPTY_STATE_TITLE_LABEL = s__('MlExperimentTracking|No experiments');
export const EMPTY_STATE_TITLE_LABEL = s__(
'MlExperimentTracking|Get started with model experiments!',
);
export const EMPTY_STATE_DESCRIPTION_LABEL = s__(
'MlExperimentTracking|There are no logged experiments for this project. Create a new experiment using the MLflow client.',
'MlExperimentTracking|Experiments keep track of comparable model candidates, and determine which parameters provides the best performance. Create experiments using the MLflow client',
);
......@@ -28924,9 +28924,15 @@ msgstr ""
msgid "MlExperimentTracking|Experiment removed"
msgstr ""
 
msgid "MlExperimentTracking|Experiments keep track of comparable model candidates, and determine which parameters provides the best performance. Create experiments using the MLflow client"
msgstr ""
msgid "MlExperimentTracking|Filter candidates"
msgstr ""
 
msgid "MlExperimentTracking|Get started with model experiments!"
msgstr ""
msgid "MlExperimentTracking|ID"
msgstr ""
 
......@@ -28966,9 +28972,6 @@ msgstr ""
msgid "MlExperimentTracking|No candidates logged for the query. Create new candidates using the MLflow client."
msgstr ""
 
msgid "MlExperimentTracking|No experiments"
msgstr ""
msgid "MlExperimentTracking|No name"
msgstr ""
 
......@@ -28978,9 +28981,6 @@ msgstr ""
msgid "MlExperimentTracking|Status"
msgstr ""
 
msgid "MlExperimentTracking|There are no logged experiments for this project. Create a new experiment using the MLflow client."
msgstr ""
msgid "Modal updated"
msgstr ""
 
......@@ -46,8 +46,8 @@ describe('MlExperimentsIndex', () => {
expect(findPagination().exists()).toBe(false);
});
it('does not render header', () => {
expect(findTitleHeader().exists()).toBe(false);
it('renders header', () => {
expect(findTitleHeader().exists()).toBe(true);
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment