Optionally perform advanced search during bulk migration

This commit is contained in:
schroda
2026-05-08 17:39:14 +02:00
parent 3d514d357a
commit 55a620c63a
4 changed files with 105 additions and 47 deletions
@@ -30,6 +30,7 @@ export const MigrationBulkSearchOptionsDialog = ({
const [selectHighestChapterNumberSource, setSelectHighestChapterNumberSource] = useState(false);
const [ignoreOutdatedMatches, setIgnoreOutdatesMatches] = useState(false);
const [performAdvancedSearch, setPerformAdvancedSearch] = useState(false);
return (
<Dialog open={isVisible} fullWidth onClose={onDismiss} onTransitionExited={onExitComplete}>
@@ -77,6 +78,27 @@ export const MigrationBulkSearchOptionsDialog = ({
{t`These options are slow and dangerous and may lead to restrictions from sources`}
</Typography>
</Stack>
<CheckboxInput
label={
<Stack
sx={{
// Padding comes from the MUI Checkbox component
pt: '9px',
}}
>
<Typography>{t`Advanced search mode`}</Typography>
<Typography
variant="body2"
color="textSecondary"
>{t`Breaks down the title into keywords for a wider search`}</Typography>
</Stack>
}
sx={{
alignItems: 'start',
}}
checked={performAdvancedSearch}
onChange={(_, checked) => setPerformAdvancedSearch(checked)}
/>
<CheckboxInput
label={
<Stack
@@ -107,6 +129,7 @@ export const MigrationBulkSearchOptionsDialog = ({
onSubmit({
selectHighestChapterNumberSource,
ignoreOutdatedMatches,
performAdvancedSearch,
})
}
>