From 47a48b18c5e304ef740f295df0a8f211d429d565 Mon Sep 17 00:00:00 2001 From: Adam Maly Date: Wed, 4 Feb 2026 15:51:24 +0100 Subject: [PATCH] Add a better empty state for Kale LeftPanel Signed-off-by: Adam Maly --- labextension/src/widgets/LeftPanel.tsx | 44 ++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/labextension/src/widgets/LeftPanel.tsx b/labextension/src/widgets/LeftPanel.tsx index b09655d5..140f2928 100644 --- a/labextension/src/widgets/LeftPanel.tsx +++ b/labextension/src/widgets/LeftPanel.tsx @@ -26,10 +26,12 @@ import { import { JupyterFrontEnd } from '@jupyterlab/application'; import { IDocumentManager } from '@jupyterlab/docmanager'; import { ThemeProvider } from '@mui/material/styles'; +import { Switch } from '@mui/material'; import { theme } from '../Theme'; import { Input } from '../components/Input'; import Commands from '../lib/Commands'; import { PageConfig } from '@jupyterlab/coreutils'; +import kaleIconSvg from '../../style/icons/kale.svg'; const KALE_NOTEBOOK_METADATA_KEY = 'kubeflow_notebook'; const DEFAULT_UI_URL = 'http://localhost:8080'; @@ -556,19 +558,57 @@ export class KubeflowKaleLeftPanel extends React.Component { style={{ fontSize: 'var(--jp-ui-font-size3)', color: theme.kale.headers.main, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + gap: '8px', }} className="kale-header" > - Kale Deployment Panel {this.state.isEnabled} + Kale +

- {activeNotebook && ( + {activeNotebook ? ( + ) : ( +
+
+
+ Enable +
+ +
+

+ Please open a notebook to start working with Kale +

+
)}