Skip to content

Commit

Permalink
feat: [PROD-12503] add DatasetView
Browse files Browse the repository at this point in the history
  • Loading branch information
esasova authored and csm-thu committed Feb 7, 2024
1 parent fccf80b commit 8672a74
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,11 @@
"tab": {
"title": "Dashboards"
}
},
"datasetmanager": {
"tab": {
"title": "Dataset manager"
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,11 @@
"tab": {
"title": "Tableaux de bord"
}
},
"datasetmanager": {
"tab": {
"title": "Gestionnaire de datasets"
}
}
}
}
Expand Down
8 changes: 7 additions & 1 deletion src/AppLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
// Licensed under the MIT license.

import React from 'react';
import { Dashboards, Instance, Scenario, ScenarioManager } from './views';
import { Dashboards, Instance, Scenario, ScenarioManager, DatasetManager } from './views';
import { ConfigUtils } from './utils';

const DEFAULT_TABS = [
{
key: 'tabs.datasetmanager.key',
label: 'layouts.tabs.datasetmanager.tab.title',
to: 'datasetmanager',
render: <DatasetManager />,
},
{
key: 'tabs.scenario.key',
label: 'layouts.tabs.scenario.tab.title',
Expand Down
10 changes: 10 additions & 0 deletions src/views/DatasetManager/DatasetManager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (c) Cosmo Tech.
// Licensed under the MIT license.

import React from 'react';

const DatasetManager = () => {
return <div data-cy="dataset-manager-view"></div>;
};

export default DatasetManager;
4 changes: 4 additions & 0 deletions src/views/DatasetManager/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (c) Cosmo Tech.
// Licensed under the MIT license.

export { default } from './DatasetManager';
1 change: 1 addition & 0 deletions src/views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export { default as Scenario } from './Scenario';
export { default as ScenarioManager } from './ScenarioManager';
export { default as Dashboards } from './Dashboards';
export { default as Instance } from './Instance';
export { default as DatasetManager } from './DatasetManager';

0 comments on commit 8672a74

Please sign in to comment.