diff --git a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx index 1f4ead65353..0e378cd8e2e 100644 --- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx @@ -107,7 +107,7 @@ export default function CheckCode() { onClick={() => router.back()} className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden" > - + {t(($) => $.back, { ns: 'login' })} diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx index 7e09f107e72..f586ae17452 100644 --- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx +++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx @@ -158,7 +158,7 @@ export default function CheckCode() { onClick={() => router.back()} className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden" > - + {t(($) => $.back, { ns: 'login' })} diff --git a/web/app/(shareLayout)/webapp-signin/normalForm.tsx b/web/app/(shareLayout)/webapp-signin/normalForm.tsx index 4232354bb4c..bfa8906f023 100644 --- a/web/app/(shareLayout)/webapp-signin/normalForm.tsx +++ b/web/app/(shareLayout)/webapp-signin/normalForm.tsx @@ -64,7 +64,7 @@ const NormalForm = () => {
-
+
@@ -84,7 +84,7 @@ const NormalForm = () => {
-
+
@@ -104,7 +104,7 @@ const NormalForm = () => {
-
+
@@ -196,7 +196,7 @@ const NormalForm = () => { {allMethodsAreDisabled && ( <>
-
+

diff --git a/web/app/account/oauth/authorize/page.tsx b/web/app/account/oauth/authorize/page.tsx index 7853316aa0c..bbdf7f76188 100644 --- a/web/app/account/oauth/authorize/page.tsx +++ b/web/app/account/oauth/authorize/page.tsx @@ -198,7 +198,7 @@ export default function OAuthAuthorize() {

-
{userProfile.name}
+
{userProfile.name}
{userProfile.email}
diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsx index 5edb0c22261..654a16c50e0 100644 --- a/web/app/components/app/configuration/config-var/index.tsx +++ b/web/app/components/app/configuration/config-var/index.tsx @@ -338,7 +338,7 @@ const ConfigVar: FC = ({ promptVariables, readonly, onPromptVar {hasVar && (
= ({ <>
-
+
diff --git a/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx b/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx index c5bb3d37915..c8d89dce08c 100644 --- a/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx +++ b/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx @@ -88,7 +88,7 @@ export function CredentialField({
-
+

{t(($) => $['studio.noCredentialsYet'])}

diff --git a/web/app/components/base/chat/chat-with-history/header/index.tsx b/web/app/components/base/chat/chat-with-history/header/index.tsx index 6fdbc6f8ce0..de5123af87e 100644 --- a/web/app/components/base/chat/chat-with-history/header/index.tsx +++ b/web/app/components/base/chat/chat-with-history/header/index.tsx @@ -86,7 +86,7 @@ const Header = () => {
- +

{customTitle || copy.title}

diff --git a/web/app/components/base/form/components/base/base-field.tsx b/web/app/components/base/form/components/base/base-field.tsx index 7d847bfe4b4..231053e78db 100644 --- a/web/app/components/base/form/components/base/base-field.tsx +++ b/web/app/components/base/form/components/base/base-field.tsx @@ -401,7 +401,7 @@ const BaseField = ({ > = ({
- +
{t(($) => $['stepTwo.highQualityTip'], { ns: 'datasetCreation' })} diff --git a/web/app/components/datasets/create/website/base/crawled-result.tsx b/web/app/components/datasets/create/website/base/crawled-result.tsx index 8568d87409d..f9e1f53c274 100644 --- a/web/app/components/datasets/create/website/base/crawled-result.tsx +++ b/web/app/components/datasets/create/website/base/crawled-result.tsx @@ -76,7 +76,7 @@ const CrawledResult: FC = ({ ? t(($) => $[`${I18N_PREFIX}.resetAll`], { ns: 'datasetCreation' }) : t(($) => $[`${I18N_PREFIX}.selectAll`], { ns: 'datasetCreation' }) } - labelClassName="system-[13px] leading-[16px] font-medium text-text-secondary" + labelClassName="leading-[16px] font-medium text-text-secondary" />
{t(($) => $[`${I18N_PREFIX}.scrapTimeInfo`], { diff --git a/web/app/components/datasets/create/website/base/text-input.tsx b/web/app/components/datasets/create/website/base/text-input.tsx index d3ab1d3b09f..0f00ab8b850 100644 --- a/web/app/components/datasets/create/website/base/text-input.tsx +++ b/web/app/components/datasets/create/website/base/text-input.tsx @@ -46,7 +46,7 @@ const Input: FC = ({ value, onChange, placeholder = '', isNumber = false {...otherOption} value={value} onChange={handleChange} - className="focus:bg-components-inout-border-active flex h-8 w-full rounded-lg border border-transparent bg-components-input-bg-normal p-2 system-xs-regular text-components-input-text-filled caret-[#295eff] placeholder:text-components-input-text-placeholder hover:border hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border focus:border-components-input-border-active focus:shadow-xs focus:shadow-shadow-shadow-3 focus-visible:outline-hidden" + className="flex h-8 w-full rounded-lg border border-transparent bg-components-input-bg-normal p-2 system-xs-regular text-components-input-text-filled caret-[#295eff] placeholder:text-components-input-text-placeholder hover:border hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border focus:border-components-input-border-active focus:shadow-xs focus:shadow-shadow-shadow-3 focus-visible:outline-hidden" placeholder={placeholder} /> ) diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx index 09a6d733fe7..93403b8625f 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx @@ -20,7 +20,7 @@ const OptionCard = ({ label, selected, nodeData, onClick }: OptionCardProps) => 'flex cursor-pointer items-center gap-2 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-3 shadow-shadow-shadow-3', selected ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs inset-ring-[0.5px] inset-ring-components-option-card-option-selected-border' - : 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs', + : 'hover:border-components-option-card-option-border-hover hover:shadow-xs', )} onClick={onClick} > diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx index ab7d83a450f..c10ec958f00 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx @@ -211,10 +211,15 @@ describe('FileList', () => { const fileList = [createMockOnlineDriveFile()] const props = createDefaultProps({ isLoading: true, fileList }) - const { container } = render() + const { rerender } = render() - // Assert - Should show spinner icon at the bottom - expect(container.querySelector('.animation-spin')).toBeInTheDocument() + expect(screen.getByRole('status', { name: 'appApi.loading' })).toBeInTheDocument() + expect(screen.getByRole('checkbox', { name: 'test-file.txt' })).toBeInTheDocument() + + rerender() + + expect(screen.queryByRole('status', { name: 'appApi.loading' })).not.toBeInTheDocument() + expect(screen.getByRole('checkbox', { name: 'test-file.txt' })).toBeInTheDocument() }) }) diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx index c10cdafa2b0..051aff77cdb 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx @@ -96,7 +96,7 @@ const Breadcrumbs = ({ return (
{showSearchResult && ( -
+
{t(($) => $['onlineDrive.breadcrumbs.searchResult'], { ns: 'datasetPipeline', searchResultsLength, @@ -105,7 +105,7 @@ const Breadcrumbs = ({
)} {!showSearchResult && showBucketListTitle && ( -
+
{t(($) => $['onlineDrive.breadcrumbs.allBuckets'], { ns: 'datasetPipeline' })}
)} diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx index ed77e0a4fb5..993f9b3fd0f 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx @@ -105,7 +105,7 @@ const List = ({ aria-live="polite" aria-label={t(($) => $.loading, { ns: 'appApi' })} > - +
)}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx index a1b9a2edff4..21100e0d30c 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx @@ -31,7 +31,7 @@ const FilePreview = ({ file, hidePreview }: FilePreviewProps) => {
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
-
{`${fileName}.${file.extension || ''}`}
+
{`${fileName}.${file.extension || ''}`}
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
-
{currentPage?.page_name}
+
{currentPage?.page_name}
{currentPage.type} diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx index 447a9779141..623cd257405 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx @@ -20,7 +20,7 @@ const WebsitePreview = ({ currentWebsite, hidePreview }: WebsitePreviewProps) =>
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
-
{currentWebsite.title}
+
{currentWebsite.title}
diff --git a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx index 56ed1f085f4..56aaa357eb0 100644 --- a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx +++ b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx @@ -121,7 +121,7 @@ const ExternalKnowledgeAPICard: React.FC = ({ return ( <>
diff --git a/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx b/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx index 1b353ab1527..bf5793699ce 100644 --- a/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx +++ b/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx @@ -50,7 +50,7 @@ const ModifyExternalRetrievalModal: React.FC } return ( -
+
{t(($) => $.settingTitle, { ns: 'datasetHitTesting' })} diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx index d095af2710f..0cd7ac09d5a 100644 --- a/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx +++ b/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx @@ -68,7 +68,7 @@ const CredentialSelector = ({
{credentials.map((credential) => ( diff --git a/web/app/components/plugins/install-plugin/install-bundle/index.tsx b/web/app/components/plugins/install-plugin/install-bundle/index.tsx index 3df9f9f90ef..129205b6009 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/index.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/index.tsx @@ -71,7 +71,7 @@ const InstallBundle: FC = ({ 'w-full max-w-120 overflow-hidden! text-left align-middle', cn( modalClassName, - 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] min-w-140 flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', + 'flex max-h-[calc(100dvh-48px)] min-w-140 flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', ), )} > diff --git a/web/app/components/plugins/install-plugin/install-from-github/index.tsx b/web/app/components/plugins/install-plugin/install-from-github/index.tsx index 3be2c3c797d..c599227ff1b 100644 --- a/web/app/components/plugins/install-plugin/install-from-github/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-github/index.tsx @@ -185,7 +185,7 @@ const InstallFromGitHub: React.FC = ({ 'w-140 overflow-hidden! text-left align-middle', cn( modalClassName, - 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', + 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', ), )} > diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx index 825484b0d4b..4c48e75c7c0 100644 --- a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx @@ -93,7 +93,7 @@ const InstallFromLocalPackage: React.FC = ({ 'w-140 overflow-hidden! text-left align-middle', cn( modalClassName, - 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', + 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', ), )} > diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx index 4617eb682c0..0d9ecf84e7b 100644 --- a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx @@ -89,7 +89,7 @@ const InstallFromMarketplace: React.FC = ({ 'w-140 overflow-hidden! text-left align-middle', cn( modalClassName, - 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', + 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0', ), )} > diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx index 48aecf54a94..c8f948fff02 100644 --- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx +++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx @@ -27,7 +27,7 @@ const OptionCard = ({ label, value, selected, nodeData, onClick }: OptionCardPro 'flex cursor-pointer flex-col gap-1 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-2.5 shadow-shadow-shadow-3', selected ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs inset-ring-[0.5px] inset-ring-components-option-card-option-selected-border' - : 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs', + : 'hover:border-components-option-card-option-border-hover hover:shadow-xs', )} onClick={handleClickCard} > diff --git a/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx b/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx index 12cd59f647c..362190468f7 100644 --- a/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx +++ b/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx @@ -47,7 +47,6 @@ const ResultPreview = ({ isRunning, outputs, error, onSwitchToDetail }: ResultTe
$['result.resultPreview.footerTip'], { ns: 'pipeline', count: RAG_PIPELINE_PREVIEW_CHUNK_NUM, diff --git a/web/app/components/tools/edit-custom-collection-modal/test-api.tsx b/web/app/components/tools/edit-custom-collection-modal/test-api.tsx index 2759df58f85..f5a20945aea 100644 --- a/web/app/components/tools/edit-custom-collection-modal/test-api.tsx +++ b/web/app/components/tools/edit-custom-collection-modal/test-api.tsx @@ -156,7 +156,7 @@ const TestApi: FC = ({ positionCenter, customCollection, tool, onHide }) }) } type="text" - className="!hover:border-transparent !hover:bg-transparent !focus:border-transparent !focus:bg-transparent border-transparent! bg-transparent!" + className="border-transparent! bg-transparent!" /> @@ -179,7 +179,7 @@ const TestApi: FC = ({ positionCenter, customCollection, tool, onHide })
{t(($) => $['test.testResult'], { ns: 'tools' })}
-
+
{result || ( diff --git a/web/app/components/workflow/block-selector/tabs.tsx b/web/app/components/workflow/block-selector/tabs.tsx index 885b2b24782..31d660f12fc 100644 --- a/web/app/components/workflow/block-selector/tabs.tsx +++ b/web/app/components/workflow/block-selector/tabs.tsx @@ -273,7 +273,7 @@ function BlockSelectorPanels({ ))} {
-
+
{t(($) => $['changeHistory.title'], { ns: 'workflow' })}
- - {t(($) => $['debug.variableInspect.edited'], { ns: 'workflow' })} - + {t(($) => $['debug.variableInspect.edited'], { ns: 'workflow' })} )} {!isTruncated && diff --git a/web/app/signin/normal-form.tsx b/web/app/signin/normal-form.tsx index 52848170cd8..7db9b968331 100644 --- a/web/app/signin/normal-form.tsx +++ b/web/app/signin/normal-form.tsx @@ -125,7 +125,7 @@ function NormalForm() {
-
+
@@ -145,7 +145,7 @@ function NormalForm() {
-
+
@@ -165,7 +165,7 @@ function NormalForm() {
-
+
@@ -287,7 +287,7 @@ function NormalForm() { {allMethodsAreDisabled && ( <>
-
+

diff --git a/web/app/signup/check-code/page.tsx b/web/app/signup/check-code/page.tsx index 8ab5c895e77..cafddd4495b 100644 --- a/web/app/signup/check-code/page.tsx +++ b/web/app/signup/check-code/page.tsx @@ -122,7 +122,7 @@ export default function CheckCode() { onClick={() => router.back()} className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden" > - + {t(($) => $.back, { ns: 'login' })}