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() {
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 = ({
- +
{columns.map((column) => ( diff --git a/web/src/components/admin/connectors/Field.tsx b/web/src/components/admin/connectors/Field.tsx index 4f4fa90dcb3..ff7a92845a6 100644 --- a/web/src/components/admin/connectors/Field.tsx +++ b/web/src/components/admin/connectors/Field.tsx @@ -538,7 +538,7 @@ export function TextArrayField({ arrayHelpers.push(""); }} className="mt-3" - variant="success" + variant="update" size="sm" type="button" icon={FiPlus} diff --git a/web/src/components/admin/users/SignedUpUserTable.tsx b/web/src/components/admin/users/SignedUpUserTable.tsx index c4b84f12956..dc7da5113b3 100644 --- a/web/src/components/admin/users/SignedUpUserTable.tsx +++ b/web/src/components/admin/users/SignedUpUserTable.tsx @@ -13,7 +13,13 @@ import { TableCell, } from "@/components/ui/table"; -import { Select, SelectItem } from "@/components/ui/select"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import { Button } from "@/components/ui/button"; import { GenericConfirmModal } from "@/components/modals/GenericConfirmModal"; import { useState } from "react"; @@ -77,26 +83,33 @@ const UserRoleDropdown = ({ onValueChange={handleChange} disabled={isSettingRole} > - {Object.entries(USER_ROLE_LABELS).map(([role, label]) => - !isPaidEnterpriseFeaturesEnabled && - (role === UserRole.CURATOR || - role === UserRole.GLOBAL_CURATOR) ? null : ( - - {label} - - ) - )} + + + + + {Object.entries(USER_ROLE_LABELS).map(([role, label]) => + !isPaidEnterpriseFeaturesEnabled && + (role === UserRole.CURATOR || + role === UserRole.GLOBAL_CURATOR) ? null : ( + + {label} + + ) + )} + {showConfirmModal && ( ( {user.email} - + ( @@ -69,7 +95,13 @@ const Button = React.forwardRef( const Comp = asChild ? Slot : "button"; const button = ( diff --git a/web/src/components/ui/italic.tsx b/web/src/components/ui/italic.tsx deleted file mode 100644 index 9fb72f3b0ec..00000000000 --- a/web/src/components/ui/italic.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { cn } from "@/lib/utils"; - -export default function Italic({ - children, - className, -}: { - children: React.ReactNode; - className?: string; -}) { - return

{children}

; -}