Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: enchance firecrawl user experience (#5958)

Joel52e59cf4df31
diff --git a/web/app/components/datasets/create/website/firecrawl/index.tsx b/web/app/components/datasets/create/website/firecrawl/index.tsx
index bdd99b6dcd3..55a9f6b7ef7 100644
--- a/web/app/components/datasets/create/website/firecrawl/index.tsx
+++ b/web/app/components/datasets/create/website/firecrawl/index.tsx
@@ -118,6 +118,7 @@ const FireCrawl: FC<Props> = ({
...res,
total: Math.min(res.total, parseFloat(crawlOptions.limit as string)),
})
+ onCheckedCrawlResultChange(res.data || []) // default select the crawl result
await sleep(2500)
return await waitForCrawlFinished(jobId)
}
@@ -162,6 +163,7 @@ const FireCrawl: FC<Props> = ({
}
else {
setCrawlResult(data)
+ onCheckedCrawlResultChange(data.data || []) // default select the crawl result
setCrawlErrorMessage('')
}
}
diff --git a/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx b/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx
index 63ad8df0d89..19ec75c6c64 100644
--- a/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx
+++ b/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx
@@ -77,7 +77,7 @@ const DataSourceWebsite: FC<Props> = () => {
logo: ({ className }: { className: string }) => (
<div className={cn(className, 'flex items-center justify-center w-5 h-5 bg-white border border-gray-100 text-xs font-medium text-gray-500 rounded ml-3')}>🔥</div>
),
- name: 'FireCrawl',
+ name: 'Firecrawl',
isActive: true,
}))}
onRemove={handleRemove(DataSourceProvider.fireCrawl)}
diff --git a/web/app/components/header/account-setting/data-source-page/panel/index.tsx b/web/app/components/header/account-setting/data-source-page/panel/index.tsx
index 2c27005d1d2..95475059e8e 100644
--- a/web/app/components/header/account-setting/data-source-page/panel/index.tsx
+++ b/web/app/components/header/account-setting/data-source-page/panel/index.tsx
@@ -46,7 +46,7 @@ const Panel: FC<Props> = ({
<div className='text-sm font-medium text-gray-800'>{t(`common.dataSource.${type}.title`)}</div>
{isWebsite && (
<div className='ml-1 leading-[18px] px-1.5 rounded-md bg-white border border-gray-100 text-xs font-medium text-gray-700'>
- <span className='text-gray-500'>{t('common.dataSource.website.with')}</span> 🔥 FireCrawl
+ <span className='text-gray-500'>{t('common.dataSource.website.with')}</span> 🔥 Firecrawl
</div>
)}
</div>
diff --git a/web/i18n/en-US/dataset-creation.ts b/web/i18n/en-US/dataset-creation.ts
index b2090c33395..23e1aab89f5 100644
--- a/web/i18n/en-US/dataset-creation.ts
+++ b/web/i18n/en-US/dataset-creation.ts
@@ -42,7 +42,7 @@ const translation = {
notionSyncTitle: 'Notion is not connected',
notionSyncTip: 'To sync with Notion, connection to Notion must be established first.',
connect: 'Go to connect',
- button: 'next',
+ button: 'Next',
emptyDatasetCreation: 'I want to create an empty Knowledge',
modal: {
title: 'Create an empty Knowledge',