diff --git a/frontend/src/pages/Admin/Invitations/InviteRow/index.jsx b/frontend/src/pages/Admin/Invitations/InviteRow/index.jsx index f5605f4d0a1..4a73d2dd5e6 100644 --- a/frontend/src/pages/Admin/Invitations/InviteRow/index.jsx +++ b/frontend/src/pages/Admin/Invitations/InviteRow/index.jsx @@ -42,38 +42,34 @@ export default function InviteRow({ invite }) { <> - + {titleCase(status)} - + {invite.claimedBy ? invite.claimedBy?.username || "deleted user" : "--"} - - {invite.createdBy?.username || "deleted user"} - - {invite.createdAt} - + {invite.createdBy?.username || "deleted user"} + {invite.createdAt} + {status === "pending" && ( <> - - - + )} diff --git a/frontend/src/pages/Admin/Invitations/index.jsx b/frontend/src/pages/Admin/Invitations/index.jsx index 87d26412457..b79c55d5fe8 100644 --- a/frontend/src/pages/Admin/Invitations/index.jsx +++ b/frontend/src/pages/Admin/Invitations/index.jsx @@ -84,7 +84,7 @@ function InvitationsContainer() { } return ( - +
- - {hasMetadata && ( - <> +
{expanded ? (
) : ( )} - + )} @@ -106,9 +106,9 @@ const EventBadge = ({ event }) => { }; return ( -
diff --git a/frontend/src/pages/Admin/Logging/LogRow/index.jsx b/frontend/src/pages/Admin/Logging/LogRow/index.jsx index 3113aa45a15..cd5dc85f87a 100644 --- a/frontend/src/pages/Admin/Logging/LogRow/index.jsx +++ b/frontend/src/pages/Admin/Logging/LogRow/index.jsx @@ -27,35 +27,35 @@ export default function LogRow({ log }) { <>
+ {log.user.username} + {log.occurredAt}

hide

show

+ {event} diff --git a/frontend/src/pages/Admin/Logging/index.jsx b/frontend/src/pages/Admin/Logging/index.jsx index 53300e708b9..2a482f51222 100644 --- a/frontend/src/pages/Admin/Logging/index.jsx +++ b/frontend/src/pages/Admin/Logging/index.jsx @@ -120,7 +120,7 @@ function LogsContainer({ return ( <> - +
- - - - -
diff --git a/frontend/src/pages/Admin/SystemPromptVariables/VariableRow/index.jsx b/frontend/src/pages/Admin/SystemPromptVariables/VariableRow/index.jsx index 8713b5d704d..ac4c3ea8120 100644 --- a/frontend/src/pages/Admin/SystemPromptVariables/VariableRow/index.jsx +++ b/frontend/src/pages/Admin/SystemPromptVariables/VariableRow/index.jsx @@ -6,6 +6,7 @@ import ModalWrapper from "@/components/ModalWrapper"; import EditVariableModal from "./EditVariableModal"; import { titleCase } from "text-case"; import truncate from "truncate"; +import { Trash } from "@phosphor-icons/react"; /** * A row component for displaying a system prompt variable @@ -63,40 +64,40 @@ export default function VariableRow({ variable, onRefresh }) { <>
+ {variable.key} + {typeof variable.value === "function" ? variable.value() : truncate(variable.value, 50)} + {truncate(variable.description || "-", 50)} + {titleCase(variable.type)} + {variable.type === "static" && ( <> )} diff --git a/frontend/src/pages/Admin/SystemPromptVariables/index.jsx b/frontend/src/pages/Admin/SystemPromptVariables/index.jsx index d8615100afe..21a84c4bab4 100644 --- a/frontend/src/pages/Admin/SystemPromptVariables/index.jsx +++ b/frontend/src/pages/Admin/SystemPromptVariables/index.jsx @@ -83,16 +83,16 @@ export default function SystemPromptVariables() { - - - - diff --git a/frontend/src/pages/Admin/Users/UserRow/index.jsx b/frontend/src/pages/Admin/Users/UserRow/index.jsx index 2a115f4919f..3198895e091 100644 --- a/frontend/src/pages/Admin/Users/UserRow/index.jsx +++ b/frontend/src/pages/Admin/Users/UserRow/index.jsx @@ -57,18 +57,18 @@ export default function UserRow({ currUser, user }) { <> - - - - + +
+ Key + Value + Description + Type
+ {user.username} {titleCase(user.role)}{user.createdAt} + {titleCase(user.role)}{user.createdAt} {canModify && ( @@ -77,13 +77,13 @@ export default function UserRow({ currUser, user }) { <> diff --git a/frontend/src/pages/Admin/Users/index.jsx b/frontend/src/pages/Admin/Users/index.jsx index e2d29c0d229..37598947647 100644 --- a/frontend/src/pages/Admin/Users/index.jsx +++ b/frontend/src/pages/Admin/Users/index.jsx @@ -84,7 +84,7 @@ function UsersContainer() { } return ( - +
- - - - - +
diff --git a/frontend/src/pages/Admin/Workspaces/WorkspaceRow/index.jsx b/frontend/src/pages/Admin/Workspaces/WorkspaceRow/index.jsx index f95b3379f9d..8a774e0bada 100644 --- a/frontend/src/pages/Admin/Workspaces/WorkspaceRow/index.jsx +++ b/frontend/src/pages/Admin/Workspaces/WorkspaceRow/index.jsx @@ -20,22 +20,22 @@ export default function WorkspaceRow({ workspace, users }) { <>
+ {workspace.name} + - {workspace.slug} + {workspace.slug} + {workspace.createdAt} + {workspace.createdAt} diff --git a/frontend/src/pages/Admin/Workspaces/index.jsx b/frontend/src/pages/Admin/Workspaces/index.jsx index 0170efdd7ba..8cdb5765937 100644 --- a/frontend/src/pages/Admin/Workspaces/index.jsx +++ b/frontend/src/pages/Admin/Workspaces/index.jsx @@ -84,7 +84,7 @@ function WorkspacesContainer() { } return ( - +
- - - - + +
diff --git a/frontend/src/pages/GeneralSettings/ApiKeys/ApiKeyRow/index.jsx b/frontend/src/pages/GeneralSettings/ApiKeys/ApiKeyRow/index.jsx index 787c33d4595..9e4d0cb58da 100644 --- a/frontend/src/pages/GeneralSettings/ApiKeys/ApiKeyRow/index.jsx +++ b/frontend/src/pages/GeneralSettings/ApiKeys/ApiKeyRow/index.jsx @@ -46,26 +46,24 @@ export default function ApiKeyRow({ apiKey }) { <>
+ {apiKey.secret} - {apiKey.createdBy?.username || "--"} - {apiKey.createdAt} + {apiKey.createdBy?.username || "--"}{apiKey.createdAt} diff --git a/frontend/src/pages/GeneralSettings/ApiKeys/index.jsx b/frontend/src/pages/GeneralSettings/ApiKeys/index.jsx index 590f00d0ae3..b3bffdfcf16 100644 --- a/frontend/src/pages/GeneralSettings/ApiKeys/index.jsx +++ b/frontend/src/pages/GeneralSettings/ApiKeys/index.jsx @@ -96,7 +96,7 @@ function ApiKeysContainer() { } return ( - +
- {isMultiUser && ( - )} - - diff --git a/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/index.jsx b/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/index.jsx index ea48a609971..fdb4f071e11 100644 --- a/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/index.jsx +++ b/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/index.jsx @@ -81,21 +81,21 @@ export default function BrowserExtensionApiKeys() { ) : error ? (
Error: {error}
) : ( -
diff --git a/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/BrowserExtensionApiKeyRow/index.jsx b/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/BrowserExtensionApiKeyRow/index.jsx index 85c9181ad53..902cd15f5dd 100644 --- a/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/BrowserExtensionApiKeyRow/index.jsx +++ b/frontend/src/pages/GeneralSettings/BrowserExtensionApiKey/BrowserExtensionApiKeyRow/index.jsx @@ -58,48 +58,50 @@ export default function BrowserExtensionApiKeyRow({ return (
- {connectionString} -
- +
+
+ {connectionString} +
+ - + +
+ {apiKey.user ? apiKey.user.username : "N/A"} + {new Date(apiKey.createdAt).toLocaleString()} +
+
- {isMultiUser && ( - )} - - diff --git a/frontend/src/pages/GeneralSettings/Chats/ChatRow/index.jsx b/frontend/src/pages/GeneralSettings/Chats/ChatRow/index.jsx index 7e1c928c060..52cb02dcd7a 100644 --- a/frontend/src/pages/GeneralSettings/Chats/ChatRow/index.jsx +++ b/frontend/src/pages/GeneralSettings/Chats/ChatRow/index.jsx @@ -45,31 +45,31 @@ export default function ChatRow({ chat, onDelete }) { return ( <> - - + - - + - - +
+ Extension Connection String + Created By + Created At + Actions
+
{chat.id} + {chat.user?.username} {chat.workspace?.name}{chat.workspace?.name} {truncate(chat.prompt, 40)} {truncate(parseText(chat.response), 40)} {chat.createdAt} + {chat.createdAt} diff --git a/frontend/src/pages/GeneralSettings/Chats/index.jsx b/frontend/src/pages/GeneralSettings/Chats/index.jsx index a612e6d06d5..68d981c1e2a 100644 --- a/frontend/src/pages/GeneralSettings/Chats/index.jsx +++ b/frontend/src/pages/GeneralSettings/Chats/index.jsx @@ -175,7 +175,7 @@ export default function WorkspaceChats() { {t("recorded.description")}

-
+
- - +
+ - + - - +
{t("recorded.table.id")} diff --git a/frontend/src/pages/GeneralSettings/EmbedChats/ChatRow/index.jsx b/frontend/src/pages/GeneralSettings/EmbedChats/ChatRow/index.jsx index 75996fa22d5..4b25eb6db2c 100644 --- a/frontend/src/pages/GeneralSettings/EmbedChats/ChatRow/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedChats/ChatRow/index.jsx @@ -35,8 +35,8 @@ export default function ChatRow({ chat, onDelete }) { return ( <> -
+

{truncate(chat.session_id, 20)}

-
{truncate(chat.prompt, 40)} {truncate(JSON.parse(chat.response)?.text, 40)} {chat.createdAt} + {chat.createdAt} diff --git a/frontend/src/pages/GeneralSettings/EmbedChats/index.jsx b/frontend/src/pages/GeneralSettings/EmbedChats/index.jsx index 6fb95325a85..f04ad108696 100644 --- a/frontend/src/pages/GeneralSettings/EmbedChats/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedChats/index.jsx @@ -194,7 +194,7 @@ function ChatsContainer() { return ( <> - +
- - - @@ -129,8 +127,12 @@ function ActiveDomains({ domainList }) { const domains = JSON.parse(domainList); return (
- {domains.map((domain) => { - return

{domain}

; + {domains.map((domain, index) => { + return ( +

+ {domain} +

+ ); })}
); diff --git a/frontend/src/pages/GeneralSettings/EmbedConfigs/index.jsx b/frontend/src/pages/GeneralSettings/EmbedConfigs/index.jsx index 68fb15c01cc..5decb6b1ae7 100644 --- a/frontend/src/pages/GeneralSettings/EmbedConfigs/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedConfigs/index.jsx @@ -83,7 +83,7 @@ function EmbedContainer() { } return ( -
diff --git a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/index.jsx b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/index.jsx index 222ca3fdc10..4579884e4b7 100644 --- a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/index.jsx @@ -1,5 +1,5 @@ import { useRef, useState } from "react"; -import { DotsThreeOutline, LinkSimple } from "@phosphor-icons/react"; +import { DotsThreeOutline, LinkSimple, Trash } from "@phosphor-icons/react"; import showToast from "@/utils/toast"; import { useModal } from "@/hooks/useModal"; import ModalWrapper from "@/components/ModalWrapper"; @@ -63,11 +63,11 @@ export default function EmbedRow({ embed }) { <>
{embed.workspace.name} + {nFormatter(embed._count.embed_chats)} + + - <> - - - - + + +
+