From 7c2b0785d61734fa3b6a5ebdce970881e1827452 Mon Sep 17 00:00:00 2001 From: younglim Date: Tue, 26 May 2026 19:37:59 +0800 Subject: [PATCH] feat: make intelligent crawler the default scan type Add "Website crawler (Intelligent)" as the first scan type option, move the old website crawl to third position as "Website crawler (Legacy)". Co-Authored-By: Claude Opus 4.6 (1M context) --- public/electron/scanManager.js | 2 +- src/MainWindow/HomePage/InitScanForm.jsx | 4 ++-- src/common/constants.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/electron/scanManager.js b/public/electron/scanManager.js index 26e2d9a..52d9c70 100644 --- a/public/electron/scanManager.js +++ b/public/electron/scanManager.js @@ -81,7 +81,7 @@ const getScanOptions = (details) => { options.push('none') } - if (!includeSubdomains && scanType === 'website') { + if (!includeSubdomains && (scanType === 'website' || scanType === 'intelligent')) { options.push('-s') options.push('same-hostname') } diff --git a/src/MainWindow/HomePage/InitScanForm.jsx b/src/MainWindow/HomePage/InitScanForm.jsx index d21b875..a8109f3 100644 --- a/src/MainWindow/HomePage/InitScanForm.jsx +++ b/src/MainWindow/HomePage/InitScanForm.jsx @@ -388,9 +388,9 @@ const InitScanForm = ({ isFileOptionChecked ? scanTypeOptions.filter( (option) => - option !== scanTypeOptions[2] && option !== scanTypeOptions[3] + option !== scanTypeOptions[3] && option !== scanTypeOptions[4] ) - : scanTypeOptions.filter((option) => option !== scanTypeOptions[3]) + : scanTypeOptions.filter((option) => option !== scanTypeOptions[4]) } fileTypesOptions={fileTypesOptions} viewportOptions={viewportOptions} diff --git a/src/common/constants.js b/src/common/constants.js index f8642b1..ebb3a4d 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -4,8 +4,9 @@ import boxRightArrow from '../assets/box-arrow-up-right-purple.svg' import deviceDescriptors from './deviceDescriptorsSource.json'; export const scanTypes = { - 'Website crawl': 'website', + 'Website crawler (Intelligent)': 'intelligent', 'Sitemap crawl': 'sitemap', + 'Website crawler (Legacy)': 'website', 'Custom flow': 'custom', 'Local file': 'localfile', }