+ + Something went wrong + +
+ + ++ + The workspace you are trying to access cannot be found. Please return to the homepage and try again. + +
+diff --git a/src/plugins/workspace/common/constants.ts b/src/plugins/workspace/common/constants.ts
index e60bb6aea0eb..6ae89c0edad5 100644
--- a/src/plugins/workspace/common/constants.ts
+++ b/src/plugins/workspace/common/constants.ts
@@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
+export const WORKSPACE_OVERVIEW_APP_ID = 'workspace_overview';
+export const WORKSPACE_FATAL_ERROR_APP_ID = 'workspace_fatal_error';
export const WORKSPACE_SAVED_OBJECTS_CLIENT_WRAPPER_ID = 'workspace';
export const WORKSPACE_CONFLICT_CONTROL_SAVED_OBJECTS_CLIENT_WRAPPER_ID =
'workspace_conflict_control';
diff --git a/src/plugins/workspace/opensearch_dashboards.json b/src/plugins/workspace/opensearch_dashboards.json
index f34106ab4fed..4443b7e99834 100644
--- a/src/plugins/workspace/opensearch_dashboards.json
+++ b/src/plugins/workspace/opensearch_dashboards.json
@@ -7,5 +7,5 @@
"savedObjects"
],
"optionalPlugins": [],
- "requiredBundles": []
+ "requiredBundles": ["opensearchDashboardsReact"]
}
diff --git a/src/plugins/workspace/public/application.tsx b/src/plugins/workspace/public/application.tsx
new file mode 100644
index 000000000000..f70c627e02b0
--- /dev/null
+++ b/src/plugins/workspace/public/application.tsx
@@ -0,0 +1,26 @@
+/*
+ * Copyright OpenSearch Contributors
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import React from 'react';
+import ReactDOM from 'react-dom';
+import { AppMountParameters, ScopedHistory } from '../../../core/public';
+import { OpenSearchDashboardsContextProvider } from '../../opensearch_dashboards_react/public';
+import { WorkspaceFatalError } from './components/workspace_fatal_error';
+import { Services } from './types';
+
+export const renderFatalErrorApp = (params: AppMountParameters, services: Services) => {
+ const { element } = params;
+ const history = params.history as ScopedHistory<{ error?: string }>;
+ ReactDOM.render(
+
+ + The workspace you are trying to access cannot be found. Please return to the homepage and try again. + +
++ + The workspace you are trying to access cannot be found. Please return to the homepage and try again. + +
+
+