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

[Workspace] Add workspace overview page #6584

Merged
merged 28 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a44d157
workspace overview page
Hailong-am Apr 17, 2024
481d993
fix merge issue
Hailong-am Apr 22, 2024
265fba2
fix wrong dataSourceManagement id
Hailong-am Apr 22, 2024
a4d8522
Changeset file for PR #6584 created/updated
opensearch-changeset-bot[bot] Apr 22, 2024
3349f6b
update page layout
Hailong-am Apr 22, 2024
e50d43a
overview tab layout update
Hailong-am Apr 22, 2024
f61e226
fix workspace overview page breadcrumb
Hailong-am Apr 22, 2024
32aa10d
collapsed setting to be workspace level
Hailong-am Apr 22, 2024
90bffd3
fix workspace_overview_modal unit test
Hailong-am Apr 22, 2024
3e85224
Update src/plugins/workspace/public/components/workspace_overview/get…
Hailong-am Apr 23, 2024
d4d1038
Update src/plugins/workspace/public/components/workspace_overview/wor…
Hailong-am Apr 23, 2024
f7cfb03
Update src/plugins/workspace/public/components/workspace_overview/get…
Hailong-am Apr 23, 2024
ca6fb3d
Update src/plugins/workspace/public/components/workspace_overview/get…
Hailong-am Apr 23, 2024
0fb9908
Update src/plugins/workspace/public/components/workspace_overview/get…
Hailong-am Apr 23, 2024
86f23ca
Update src/plugins/workspace/public/components/workspace_overview/get…
Hailong-am Apr 23, 2024
97bb151
address review comments
Hailong-am Apr 23, 2024
789133a
address review comments
Hailong-am Apr 23, 2024
1d96b77
fix setBreadcrumbs issue
Hailong-am Apr 23, 2024
5054d43
wording change of breadcrumbs
Hailong-am Apr 23, 2024
a758c8d
Merge remote-tracking branch 'upstream/main' into workspace_overview_…
Hailong-am Apr 23, 2024
d303b1d
udpate breadcrumb subscription to be a better name
Hailong-am Apr 23, 2024
f6d3df1
Add unit test
Hailong-am Apr 23, 2024
fa42855
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 23, 2024
c554fc0
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 24, 2024
a23e168
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 24, 2024
2e46fef
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 24, 2024
f9911f3
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 25, 2024
ae8cb6a
Merge branch 'main' into workspace_overview_page
Hailong-am Apr 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/6584.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feat:
- [Workspace] Add workspace overview page ([#6584](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6584))
42 changes: 42 additions & 0 deletions src/plugins/workspace/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { i18n } from '@osd/i18n';
import { AppCategory } from '../../../core/types';

export const WORKSPACE_FATAL_ERROR_APP_ID = 'workspace_fatal_error';
export const WORKSPACE_CREATE_APP_ID = 'workspace_create';
export const WORKSPACE_LIST_APP_ID = 'workspace_list';
Expand Down Expand Up @@ -37,3 +40,42 @@ export const PRIORITY_FOR_WORKSPACE_ID_CONSUMER_WRAPPER = -3;
export const PRIORITY_FOR_WORKSPACE_UI_SETTINGS_WRAPPER = -2;
export const PRIORITY_FOR_WORKSPACE_CONFLICT_CONTROL_WRAPPER = -1;
export const PRIORITY_FOR_PERMISSION_CONTROL_WRAPPER = 0;

export const WORKSPACE_APP_CATEGORIES: Record<string, AppCategory> = Object.freeze({
// below categories are for workspace
getStarted: {
id: 'getStarted',
label: i18n.translate('core.ui.getStarted.label', {
defaultMessage: 'Get started',
}),
order: 10000,
},
dashboardAndReport: {
id: 'dashboardReport',
label: i18n.translate('core.ui.dashboardReport.label', {
defaultMessage: 'Dashboard and report',
}),
order: 11000,
},
investigate: {
id: 'investigate',
label: i18n.translate('core.ui.investigate.label', {
defaultMessage: 'Investigate',
}),
order: 12000,
},
detect: {
id: 'detect',
label: i18n.translate('core.ui.detect.label', {
defaultMessage: 'Detect',
}),
order: 13000,
},
searchSolution: {
id: 'searchSolution',
label: i18n.translate('core.ui.searchSolution.label', {
defaultMessage: 'Build search solution',
}),
order: 14000,
},
});
19 changes: 19 additions & 0 deletions src/plugins/workspace/public/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { WorkspaceListApp } from './components/workspace_list_app';
import { WorkspaceUpdaterProps } from './components/workspace_updater';
import { Services } from './types';
import { WorkspaceCreatorProps } from './components/workspace_creator/workspace_creator';
import { WorkspaceOverviewApp } from './components/workspace_overview_app';
import { WorkspaceOverviewProps } from './components/workspace_overview/workspace_overview';

export const renderCreatorApp = (
{ element }: AppMountParameters,
Expand Down Expand Up @@ -75,3 +77,20 @@ export const renderListApp = ({ element }: AppMountParameters, services: Service
ReactDOM.unmountComponentAtNode(element);
};
};

export const renderOverviewApp = (
{ element }: AppMountParameters,
services: Services,
props: WorkspaceOverviewProps
) => {
ReactDOM.render(
<OpenSearchDashboardsContextProvider services={services}>
<WorkspaceOverviewApp {...props} />
</OpenSearchDashboardsContextProvider>,
element
);

return () => {
ReactDOM.unmountComponentAtNode(element);
};
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading