From 93c4ecbd8b0aea27b1fdb3e9ab447422a3ba0f01 Mon Sep 17 00:00:00 2001
From: Joel Thibault <2701406+jmthibault79@users.noreply.github.com>
Date: Tue, 5 Mar 2024 13:09:27 -0500
Subject: [PATCH] [risk=low][no ticket] Post-release RStudio UI updates (#8413)
* compute suspended tooltip: Jupyter Cloud Environment
* New Jupyter Notebook as modal title
* shift open or create right when there's no delete
---
.../components/apps-panel/expanded-app.tsx | 4 ++--
...on.tsx => new-jupyter-notebook-button.tsx} | 2 +-
.../create-gke-app-button.tsx | 6 ++++--
.../create-gke-app.tsx | 21 +++++++++++++++++--
.../open-gke-app-button.tsx | 5 ++++-
ui/src/app/components/help-sidebar-icons.tsx | 2 +-
.../analysis/new-jupyter-notebook-modal.tsx | 2 +-
.../pages/appAnalysis/app-selector.spec.tsx | 2 +-
8 files changed, 33 insertions(+), 11 deletions(-)
rename ui/src/app/components/apps-panel/{new-notebook-button.tsx => new-jupyter-notebook-button.tsx} (94%)
diff --git a/ui/src/app/components/apps-panel/expanded-app.tsx b/ui/src/app/components/apps-panel/expanded-app.tsx
index aa8db210f53..3b58dfb4379 100644
--- a/ui/src/app/components/apps-panel/expanded-app.tsx
+++ b/ui/src/app/components/apps-panel/expanded-app.tsx
@@ -49,7 +49,7 @@ import {
import { AppBanner } from './app-banner';
import { AppsPanelButton } from './apps-panel-button';
-import { NewNotebookButton } from './new-notebook-button';
+import { NewJupyterNotebookButton } from './new-jupyter-notebook-button';
import { PauseResumeButton } from './pause-resume-button';
import { RuntimeCost } from './runtime-cost';
import {
@@ -122,7 +122,7 @@ const JupyterButtonRow = (props: {
-
+
);
};
diff --git a/ui/src/app/components/apps-panel/new-notebook-button.tsx b/ui/src/app/components/apps-panel/new-jupyter-notebook-button.tsx
similarity index 94%
rename from ui/src/app/components/apps-panel/new-notebook-button.tsx
rename to ui/src/app/components/apps-panel/new-jupyter-notebook-button.tsx
index fe207233fa4..8e4fcb6f758 100644
--- a/ui/src/app/components/apps-panel/new-notebook-button.tsx
+++ b/ui/src/app/components/apps-panel/new-jupyter-notebook-button.tsx
@@ -10,7 +10,7 @@ import { notebooksApi } from 'app/services/swagger-fetch-clients';
import { AppsPanelButton } from './apps-panel-button';
-export const NewNotebookButton = (props: { workspace: Workspace }) => {
+export const NewJupyterNotebookButton = (props: { workspace: Workspace }) => {
const { workspace } = props;
const [showModal, setShowModal] = useState(false);
diff --git a/ui/src/app/components/gke-app-configuration-panels/create-gke-app-button.tsx b/ui/src/app/components/gke-app-configuration-panels/create-gke-app-button.tsx
index b45efcebbe7..daef7419b6b 100644
--- a/ui/src/app/components/gke-app-configuration-panels/create-gke-app-button.tsx
+++ b/ui/src/app/components/gke-app-configuration-panels/create-gke-app-button.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { useState } from 'react';
+import { CSSProperties, useState } from 'react';
import {
AppType,
@@ -24,6 +24,7 @@ export interface CreateGKEAppButtonProps {
onDismiss: () => void;
username: string;
billingStatus: BillingStatus;
+ style?: CSSProperties;
}
export function CreateGkeAppButton({
@@ -33,6 +34,7 @@ export function CreateGkeAppButton({
onDismiss,
username,
billingStatus,
+ style,
}: CreateGKEAppButtonProps) {
const [creatingApp, setCreatingApp] = useState(false);
const createEnabled =
@@ -83,7 +85,7 @@ export function CreateGkeAppButton({
return (
{/* tooltip trigger needs a div for some reason */}
-
+