From c66abb697b0183288e49c44c3771e8a0996a6ca8 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 25 Dec 2023 01:28:27 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20small=20inline=20ctx=20ui=20impr?= =?UTF-8?q?ovements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/src/components/gui/StepContainer.tsx | 5 ++- gui/src/components/mainInput/InputToolbar.tsx | 4 +- gui/src/components/mainInput/MentionList.tsx | 10 ++++- gui/src/components/mainInput/TipTapEditor.tsx | 12 ++++-- gui/src/pages/gui.tsx | 37 +++++++++++++++++ gui/src/redux/slices/stateSlice.ts | 41 +++++++++---------- 6 files changed, 81 insertions(+), 28 deletions(-) diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 0a85810d5..a13aa1e41 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -90,7 +90,10 @@ function StepContainer(props: StepContainerProps) { isUserInput={isUserInput} fontSize={getFontSize()} > - + {(isHovered || typeof feedback !== "undefined") && !active && (
void; + onClick?: () => void; + hidden?: boolean; } function InputToolbar(props: InputToolbarProps) { return ( -
+ {active ? ( + <> +
+
+ + ) : state.history.length > 0 ? ( + { + saveSession(); + }} + className="mr-auto" + > + New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "M"}) + + ) : null} {active && ( (values: &mut[T]) { let len = values.len(); for i in 0..len { @@ -84,8 +81,8 @@ fn bubble_sort(values: &mut[T]) { } } \`\`\`\nIs there anything else I can answer?`, - name: "Rust Bubble Sort", - depth: 0, + }, + contextItems: [], }, ];