diff --git a/components/dashboard/src/components/ContextMenu.tsx b/components/dashboard/src/components/ContextMenu.tsx index ee30a37ff7396c..c196a06826b0b6 100644 --- a/components/dashboard/src/components/ContextMenu.tsx +++ b/components/dashboard/src/components/ContextMenu.tsx @@ -41,7 +41,8 @@ function ContextMenu(props: ContextMenuProps) { } } }) - const font = "text-gray-400 hover:text-gray-800" + + const font = "text-gray-600 hover:text-gray-800" return (
{ @@ -51,12 +52,16 @@ function ContextMenu(props: ContextMenuProps) { {props.children}
{expanded? -
+
{enhancedEntries.map(e => { - const entry =
+ const clickable = e.href || e.onClick; + const entry =
{e.title}
{e.active ?
: null}
- return + if (!clickable) { + return entry; + } + return {entry} })} diff --git a/components/dashboard/src/components/Menu.tsx b/components/dashboard/src/components/Menu.tsx index aa08cf30278dee..ca2962d3fa2d34 100644 --- a/components/dashboard/src/components/Menu.tsx +++ b/components/dashboard/src/components/Menu.tsx @@ -1,6 +1,9 @@ +import { User } from "@gitpod/gitpod-protocol"; import { useContext } from "react"; import { Link } from "react-router-dom"; +import { gitpodHostUrl } from "../service/service"; import { UserContext } from "../user-context"; +import ContextMenu from "./ContextMenu"; interface Entry { title: string, link: string @@ -57,10 +60,27 @@ function Menu(props: { left: Entry[], right: Entry[] }) { {props.right.map(MenuItem)} - - {user?.name - +
+ + {user?.name + +
); diff --git a/components/dashboard/src/components/StartPage.tsx b/components/dashboard/src/components/StartPage.tsx index e7b53af8e5e264..c42f9c807dd3e7 100644 --- a/components/dashboard/src/components/StartPage.tsx +++ b/components/dashboard/src/components/StartPage.tsx @@ -23,15 +23,15 @@ function ProgressBar(props: { phase: number, error: boolean }) { // This phase is currently running classes += ' bg-green-400 animate-pulse'; } - return
; + return
; })}
; } export interface StartPageProps { - phase: number; - error?: boolean; - children?: React.ReactNode; + phase: number; + error?: boolean; + children?: React.ReactNode; } export function StartPage(props: StartPageProps) { @@ -56,11 +56,12 @@ export function StartPage(props: StartPageProps) { title = "Starting"; break; } - return
-
+ return
+
+

{title}

- + {props.children}
; diff --git a/components/dashboard/src/workspaces/WorkspaceEntry.tsx b/components/dashboard/src/workspaces/WorkspaceEntry.tsx index 1af14ec22c816c..74816137f75013 100644 --- a/components/dashboard/src/workspaces/WorkspaceEntry.tsx +++ b/components/dashboard/src/workspaces/WorkspaceEntry.tsx @@ -110,7 +110,7 @@ export function WorkspaceEntry({ desc, model }: { desc: WorkspaceInfo, model: Wo
{ws.contextURL}
-
0 ? showChanges : undefined}> +
0 ? showChanges : undefined}>
{currentBranch}
{ @@ -121,7 +121,7 @@ export function WorkspaceEntry({ desc, model }: { desc: WorkspaceInfo, model: Wo }
-
+
{moment(WorkspaceInfo.lastActiveISODate(desc)).fromNow()}