From a222b9d3e7819e9a7e525b6994248caa167c8ac1 Mon Sep 17 00:00:00 2001
From: pablodanswer
Date: Wed, 30 Oct 2024 13:16:17 -0700
Subject: [PATCH] list item + configuration updates
---
web/src/app/admin/add-connector/page.tsx | 2 +-
.../app/admin/assistants/AssistantEditor.tsx | 4 +-
web/src/app/admin/bot/page.tsx | 2 +-
.../llm/ConfiguredLLMProviderDisplay.tsx | 2 +-
.../configuration/llm/LLMConfiguration.tsx | 2 +-
web/src/app/admin/token-rate-limits/page.tsx | 2 +-
.../admin/groups/[groupId]/GroupDisplay.tsx | 18 +++++-
.../query-history/QueryHistoryTable.tsx | 40 +++++++++----
web/src/app/ee/admin/standard-answer/page.tsx | 2 +-
web/src/components/admin/connectors/Field.tsx | 2 +-
.../admin/users/SignedUpUserTable.tsx | 57 ++++++++++++-------
web/src/components/ui/button.tsx | 40 +++++++++++--
web/src/components/ui/italic.tsx | 11 ----
13 files changed, 125 insertions(+), 59 deletions(-)
delete mode 100644 web/src/components/ui/italic.tsx
diff --git a/web/src/app/admin/add-connector/page.tsx b/web/src/app/admin/add-connector/page.tsx
index fe9123b038c..171e2946809 100644
--- a/web/src/app/admin/add-connector/page.tsx
+++ b/web/src/app/admin/add-connector/page.tsx
@@ -100,7 +100,7 @@ export default function Page() {
title="Add Connector"
farRightElement={
-
+
}
/>
diff --git a/web/src/app/admin/assistants/AssistantEditor.tsx b/web/src/app/admin/assistants/AssistantEditor.tsx
index b1916452cc1..b8ac215b672 100644
--- a/web/src/app/admin/assistants/AssistantEditor.tsx
+++ b/web/src/app/admin/assistants/AssistantEditor.tsx
@@ -874,7 +874,7 @@ export function AssistantEditor({
)}
/>
) : (
-
+
No Document Sets available.{" "}
{user?.role !== "admin" && (
<>
@@ -883,7 +883,7 @@ export function AssistantEditor({
Danswer for assistance.
>
)}
-
+
)}
diff --git a/web/src/app/admin/bot/page.tsx b/web/src/app/admin/bot/page.tsx
index c440c729aac..af1f12d56bc 100644
--- a/web/src/app/admin/bot/page.tsx
+++ b/web/src/app/admin/bot/page.tsx
@@ -235,7 +235,7 @@ const Main = () => {
onClick={() => {
setSlackBotTokensModalIsOpen(!slackBotTokensModalIsOpen);
}}
- variant="edit"
+ variant="outline"
className="mt-2"
icon={slackBotTokensModalIsOpen ? FiChevronUp : FiChevronDown}
>
diff --git a/web/src/app/admin/configuration/llm/ConfiguredLLMProviderDisplay.tsx b/web/src/app/admin/configuration/llm/ConfiguredLLMProviderDisplay.tsx
index 9868bf1016c..ea6149e08ad 100644
--- a/web/src/app/admin/configuration/llm/ConfiguredLLMProviderDisplay.tsx
+++ b/web/src/app/admin/configuration/llm/ConfiguredLLMProviderDisplay.tsx
@@ -122,7 +122,7 @@ function LLMProviderDisplay({
-
diff --git a/web/src/app/admin/token-rate-limits/page.tsx b/web/src/app/admin/token-rate-limits/page.tsx
index 0a2bac72bfc..31544b403d9 100644
--- a/web/src/app/admin/token-rate-limits/page.tsx
+++ b/web/src/app/admin/token-rate-limits/page.tsx
@@ -141,7 +141,7 @@ function Main() {
setModalIsOpen(true)}
>
Create a Token Rate Limit
diff --git a/web/src/app/ee/admin/groups/[groupId]/GroupDisplay.tsx b/web/src/app/ee/admin/groups/[groupId]/GroupDisplay.tsx
index 1e23c63a911..29b325a42e2 100644
--- a/web/src/app/ee/admin/groups/[groupId]/GroupDisplay.tsx
+++ b/web/src/app/ee/admin/groups/[groupId]/GroupDisplay.tsx
@@ -15,7 +15,13 @@ import {
} from "@/lib/types";
import { AddConnectorForm } from "./AddConnectorForm";
import { Separator } from "@/components/ui/separator";
-import { Select, SelectItem } from "@/components/ui/select";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
import Text from "@/components/ui/text";
import {
Table,
@@ -95,13 +101,19 @@ const UserRoleDropdown = ({
if (isEditable) {
return (
+ Select group
);
diff --git a/web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx b/web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
index 57008a294f5..b46d77c27d5 100644
--- a/web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
+++ b/web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
@@ -10,7 +10,13 @@ import {
} from "@/components/ui/table";
import Text from "@/components/ui/text";
-import { Select, SelectItem } from "@/components/ui/select";
+import {
+ Select,
+ SelectItem,
+ SelectValue,
+ SelectTrigger,
+ SelectContent,
+} from "@/components/ui/select";
import { ThreeDotsLoader } from "@/components/Loading";
import { ChatSessionMinimal } from "../usage/types";
import { timestampToReadableDate } from "@/lib/dateUtils";
@@ -80,15 +86,29 @@ function SelectFeedbackType({
value={value}
onValueChange={onValueChange as (value: string) => void}
>
-
- Any
-
-
- Like
-
-
- Dislike
-
+
+
+
+
+
+
+
+ Any
+
+
+
+
+
+ Like
+
+
+
+
+
+ Dislike
+
+
+
diff --git a/web/src/app/ee/admin/standard-answer/page.tsx b/web/src/app/ee/admin/standard-answer/page.tsx
index 009d50b807f..6bc921fdefa 100644
--- a/web/src/app/ee/admin/standard-answer/page.tsx
+++ b/web/src/app/ee/admin/standard-answer/page.tsx
@@ -291,7 +291,7 @@ const StandardAnswersTable = ({