diff --git a/client/src/components/Agents/ErrorDisplay.tsx b/client/src/components/Agents/ErrorDisplay.tsx index dcb9a9a4a9..5ae84b01ea 100644 --- a/client/src/components/Agents/ErrorDisplay.tsx +++ b/client/src/components/Agents/ErrorDisplay.tsx @@ -208,11 +208,7 @@ export const ErrorDisplay: React.FC = ({ error, onRetry, cont

{title}

-

+

{message}

= ({ error, onRetry, cont onClick={onRetry} variant="outline" size="sm" - className={cn( - 'border-status-error text-status-error hover:bg-status-error-subtle', - )} + className={cn('border-status-error text-status-error hover:bg-status-error-subtle')} aria-describedby="error-message error-suggestion" aria-label={`Retry action. ${message}`} > diff --git a/client/src/components/Auth/AuthLayout.tsx b/client/src/components/Auth/AuthLayout.tsx index eb346386ee..57fa4e5d86 100644 --- a/client/src/components/Auth/AuthLayout.tsx +++ b/client/src/components/Auth/AuthLayout.tsx @@ -39,7 +39,10 @@ function AuthLayout({

{localize('com_auth_error_invalid_reset_token')}{' '} - + {localize('com_auth_click_here')} {' '} {localize('com_auth_to_try_again')} diff --git a/client/src/components/Auth/SocialLoginRender.tsx b/client/src/components/Auth/SocialLoginRender.tsx index b4f2ac18ba..702c0d840f 100644 --- a/client/src/components/Auth/SocialLoginRender.tsx +++ b/client/src/components/Auth/SocialLoginRender.tsx @@ -123,7 +123,9 @@ function SocialLoginRender({ {startupConfig.emailLoginEnabled && ( <>
-
Or
+
+ {localize('com_auth_or')} +
diff --git a/client/src/components/Auth/VerifyEmail.tsx b/client/src/components/Auth/VerifyEmail.tsx index 96c3720740..1d28384857 100644 --- a/client/src/components/Auth/VerifyEmail.tsx +++ b/client/src/components/Auth/VerifyEmail.tsx @@ -36,7 +36,7 @@ function RequestPasswordReset() { setVerificationStatus(true); countdownRedirect(); }, - onError: (error: unknown) => { + onError: (_error: unknown) => { setHeaderText(localize('com_auth_email_verification_failed') + ' 😢'); setShowResendLink(true); setVerificationStatus(true); @@ -74,7 +74,7 @@ function RequestPasswordReset() { setShowResendLink(true); setVerificationStatus(true); } - }, [token, email, verificationStatus, verifyEmailMutation]); + }, [token, email, verificationStatus, verifyEmailMutation, localize]); const VerificationSuccess = () => (
diff --git a/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx b/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx index 3c517db99b..9f6b78f91c 100644 --- a/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx +++ b/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx @@ -2,22 +2,22 @@ import { DotsIcon, TrashIcon } from '@librechat/client'; export default function Template() { return ( -
+
- - - - - - - -
+ Name + Date + Size +
+
File Transfer: Node to FastAPI
+
June 11, 2023
+
11 mb
+
@@ -51,7 +51,7 @@ export default function Template() { target="_blank" rel="noreferrer" aria-label="View source chat" - className="text-text-secondary hover:text-text-primary" + className="text-gray-500 hover:text-gray-600 dark:hover:text-gray-400" > diff --git a/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx b/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx index 5025912a2f..b5676cfa7f 100644 --- a/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx +++ b/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx @@ -199,7 +199,10 @@ export function SearchResults({ results, localize, searchValue }: SearchResultsP {modelName}
{isGlobal && ( -
-
+
diff --git a/client/src/components/Files/FileList/FileListItem.tsx b/client/src/components/Files/FileList/FileListItem.tsx index 314fda511e..e7ee5d1d29 100644 --- a/client/src/components/Files/FileList/FileListItem.tsx +++ b/client/src/components/Files/FileList/FileListItem.tsx @@ -10,18 +10,18 @@ type FileListItemProps = { export default function FileListItem({ file, deleteFile, width = '400px' }: FileListItemProps) { return ( -
+
{file.filename} -

{file.object}

+

{file.object}

-
+

({file.bytes / 1000}KB)

{file.createdAt?.toString()}

diff --git a/client/src/components/Files/FileList/UploadFileModal.tsx b/client/src/components/Files/FileList/UploadFileModal.tsx index 924eef38a8..7be59184a5 100644 --- a/client/src/components/Files/FileList/UploadFileModal.tsx +++ b/client/src/components/Files/FileList/UploadFileModal.tsx @@ -18,11 +18,11 @@ const UploadFileModal = ({ open, onOpenChange }) => { - + Upoad a File @@ -33,7 +33,7 @@ const UploadFileModal = ({ open, onOpenChange }) => {
Please upload square file, size less than 100KB
-
+
@@ -43,15 +43,13 @@ const UploadFileModal = ({ open, onOpenChange }) => {
- +
-
diff --git a/client/src/components/Files/VectorStore/VectorStorePreview.tsx b/client/src/components/Files/VectorStore/VectorStorePreview.tsx index beb12d0d32..d75a827425 100644 --- a/client/src/components/Files/VectorStore/VectorStorePreview.tsx +++ b/client/src/components/Files/VectorStore/VectorStorePreview.tsx @@ -98,7 +98,7 @@ export default function VectorStorePreview() { const params = useParams(); return ( -
+
VECTOR STORE @@ -127,59 +127,57 @@ export default function VectorStorePreview() {
- +   ID - {vectorStore._id} + {vectorStore._id}
- +  Usage this  month
-

- 0 KB hours +

+ 0 KB hours   Free until end of 2024

- +  Size - {vectorStore.bytes} bytes + {vectorStore.bytes} bytes
- +  Last active - {vectorStore.lastActive} + {vectorStore.lastActive}
- +  Expiration policy - {vectorStore.expirationPolicy} + {vectorStore.expirationPolicy}
- +  Expires - {vectorStore.expires} + {vectorStore.expires}
- +  Created At - - {vectorStore.createdAt.toString()} - + {vectorStore.createdAt.toString()}
@@ -202,7 +200,7 @@ export default function VectorStorePreview() {
{file.createdAt?.toString()}
-
-            {error.message}
-          
+
{error.message}
{showCode && (
diff --git a/client/src/components/Nav/SettingsTabs/ApiKeys/Create.tsx b/client/src/components/Nav/SettingsTabs/ApiKeys/Create.tsx index c233f33957..2cb0d7ae7b 100644 --- a/client/src/components/Nav/SettingsTabs/ApiKeys/Create.tsx +++ b/client/src/components/Nav/SettingsTabs/ApiKeys/Create.tsx @@ -63,11 +63,7 @@ export default function Create({ onCreated, onCancel }: CreateProps) { placeholder={localize('com_ui_api_key_name_placeholder')} /> {nameError && ( - )} diff --git a/client/src/components/Nav/SettingsTabs/ApiKeys/Reveal.tsx b/client/src/components/Nav/SettingsTabs/ApiKeys/Reveal.tsx index 9815c7773f..62347e6360 100644 --- a/client/src/components/Nav/SettingsTabs/ApiKeys/Reveal.tsx +++ b/client/src/components/Nav/SettingsTabs/ApiKeys/Reveal.tsx @@ -18,13 +18,8 @@ export default function Reveal({ createdKey, onDone }: RevealProps) { return (
-
diff --git a/client/src/components/SidePanel/MCPBuilder/MCPStatusBadge.tsx b/client/src/components/SidePanel/MCPBuilder/MCPStatusBadge.tsx index 6170ba8736..74f36f62cc 100644 --- a/client/src/components/SidePanel/MCPBuilder/MCPStatusBadge.tsx +++ b/client/src/components/SidePanel/MCPBuilder/MCPStatusBadge.tsx @@ -38,10 +38,7 @@ export default function MCPStatusBadge({
{localize('com_nav_mcp_status_initializing')} @@ -61,10 +58,7 @@ export default function MCPStatusBadge({
{localize('com_nav_mcp_status_connecting')} @@ -79,10 +73,7 @@ export default function MCPStatusBadge({ return (