From 4b60c388efb861bff31867583eeb6c41e882dddf Mon Sep 17 00:00:00 2001 From: Dominic Ming Date: Sat, 30 Jan 2021 10:42:16 +0800 Subject: [PATCH] [Dashboard] fix new dashboard entrance and some table problem (#13790) --- .../client/src/pages/dashboard/Dashboard.tsx | 11 ++++- dashboard/client/src/pages/job/index.tsx | 3 -- dashboard/client/src/pages/layout/index.tsx | 12 +----- dashboard/client/src/pages/node/index.tsx | 43 +------------------ 4 files changed, 11 insertions(+), 58 deletions(-) diff --git a/dashboard/client/src/pages/dashboard/Dashboard.tsx b/dashboard/client/src/pages/dashboard/Dashboard.tsx index d7eeaf936..07f266961 100644 --- a/dashboard/client/src/pages/dashboard/Dashboard.tsx +++ b/dashboard/client/src/pages/dashboard/Dashboard.tsx @@ -35,6 +35,7 @@ const useDashboardStyles = makeStyles((theme: Theme) => "& > :not(:first-child)": { marginTop: theme.spacing(4), }, + position: "relative", }, tabs: { borderBottomColor: theme.palette.divider, @@ -106,8 +107,14 @@ const Dashboard: React.FC = () => { return (
Ray Dashboard - { driverIpAddress, isDead, driverPid, - state, timestamp, - namespaceId, }) => ( @@ -114,7 +112,6 @@ const JobList = () => { {dayjs(timestamp * 1000).format("YYYY/MM/DD HH:mm:ss")} - {namespaceId} ), )} diff --git a/dashboard/client/src/pages/layout/index.tsx b/dashboard/client/src/pages/layout/index.tsx index b484a29db..bcaffafce 100644 --- a/dashboard/client/src/pages/layout/index.tsx +++ b/dashboard/client/src/pages/layout/index.tsx @@ -77,16 +77,6 @@ const BasicLayout = ( Ray
Ray Dashboard - history.push("/summary")} - > - SUMMARY - history.push("/")} > - BACK TO LEGACY + BACK TO EXISTING DASHBOARD { } const { raylet, hostname, ip, cpu, mem, net, disk, logUrl } = node; - const { nodeId, state, brpcPort } = raylet; + const { nodeId, state } = raylet; return ( @@ -126,15 +123,6 @@ export const NodeCard = (props: { node: NodeDetail }) => { )} - - -