From 39776a2627d04567efcace2d4d9bae021ea96f8f Mon Sep 17 00:00:00 2001 From: Ben Carver Date: Fri, 1 Mar 2024 14:30:30 -0500 Subject: [PATCH] Added tooltips to buttons. --- src/app/Components/KernelList.tsx | 61 ++++++++++++++++++--------- src/app/Components/KernelSpecList.tsx | 9 ++-- src/app/Components/NodeList.tsx | 9 ++-- 3 files changed, 52 insertions(+), 27 deletions(-) diff --git a/src/app/Components/KernelList.tsx b/src/app/Components/KernelList.tsx index d99bfb7e..e42436ee 100644 --- a/src/app/Components/KernelList.tsx +++ b/src/app/Components/KernelList.tsx @@ -35,6 +35,7 @@ import { ToolbarGroup, ToolbarItem, ToolbarToggleGroup, + Tooltip, } from '@patternfly/react-core'; import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table'; @@ -291,15 +292,21 @@ export const KernelList: React.FunctionComponent = () => { - - - + Create a new kernel.}> + + + Delete selected kernels.}> + + + Refresh kernels.}> + + @@ -323,14 +330,18 @@ export const KernelList: React.FunctionComponent = () => { {replica.podId} {replica.nodeId} - + Execute Python code on this replica.}> + + - + Migrate this replica to another node.}> + + ))} @@ -415,14 +426,22 @@ export const KernelList: React.FunctionComponent = () => { > - + Execute Python code on this kernel.} + > + + - + Terminate this kernel.}> + + , diff --git a/src/app/Components/KernelSpecList.tsx b/src/app/Components/KernelSpecList.tsx index 034df304..deeaa240 100644 --- a/src/app/Components/KernelSpecList.tsx +++ b/src/app/Components/KernelSpecList.tsx @@ -17,6 +17,7 @@ import { Title, ToolbarGroup, ToolbarItem, + Tooltip, } from '@patternfly/react-core'; import { SyncIcon } from '@patternfly/react-icons'; @@ -97,9 +98,11 @@ export const KernelSpecList: React.FunctionComponent = () => { const cardHeaderActions = ( - + Refresh kernel specs.}> + + ); diff --git a/src/app/Components/NodeList.tsx b/src/app/Components/NodeList.tsx index 2130dbf3..a718baf2 100644 --- a/src/app/Components/NodeList.tsx +++ b/src/app/Components/NodeList.tsx @@ -28,6 +28,7 @@ import { ToolbarGroup, ToolbarItem, ToolbarToggleGroup, + Tooltip, } from '@patternfly/react-core'; import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table'; import GpuIcon from '@app/Icons/GpuIcon'; @@ -147,9 +148,11 @@ export const KubernetesNodeList: React.FunctionComponent = () => { - + Refresh nodes.}> + +