datajunction-ui 0.0.154 → 0.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "description": "DataJunction UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
package/src/app/index.tsx CHANGED
@@ -10,6 +10,7 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom';
10
10
  import { NamespacePage } from './pages/NamespacePage/Loadable';
11
11
  import { MyWorkspacePage } from './pages/MyWorkspacePage/Loadable';
12
12
  import { OverviewPage } from './pages/OverviewPage/Loadable';
13
+ import { SystemMetricsExplorerPage } from './pages/SystemMetricsExplorerPage/Loadable';
13
14
  import { SettingsPage } from './pages/SettingsPage/Loadable';
14
15
  import { NotificationsPage } from './pages/NotificationsPage/Loadable';
15
16
  import { NodePage } from './pages/NodePage/Loadable';
@@ -153,6 +154,11 @@ export function App() {
153
154
  key="overview"
154
155
  element={<OverviewPage />}
155
156
  />
157
+ <Route
158
+ path="overview/explore"
159
+ key="overview-explore"
160
+ element={<SystemMetricsExplorerPage />}
161
+ />
156
162
  <Route
157
163
  path="workspace"
158
164
  key="workspace"
@@ -7,6 +7,17 @@ import { DimensionNodeUsagePanel } from './DimensionNodeUsagePanel';
7
7
  export function OverviewPage() {
8
8
  return (
9
9
  <div className="mid">
10
+ <div
11
+ style={{
12
+ display: 'flex',
13
+ justifyContent: 'flex-end',
14
+ padding: '0.5rem 1rem',
15
+ }}
16
+ >
17
+ <a href="/overview/explore" className="button-3 neutral-button">
18
+ Explore system metrics →
19
+ </a>
20
+ </div>
10
21
  <div className="chart-container">
11
22
  <OverviewPanel />
12
23
  <NodesByTypePanel />
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Asynchronously loads the component for the System Metrics Explorer page
3
+ */
4
+
5
+ import * as React from 'react';
6
+ import { lazyLoad } from '../../../utils/loadable';
7
+
8
+ export const SystemMetricsExplorerPage = props => {
9
+ return lazyLoad(
10
+ () => import('./index'),
11
+ module => module.SystemMetricsExplorerPage,
12
+ {
13
+ fallback: <div></div>,
14
+ },
15
+ )(props);
16
+ };