Add bulk migration manual search selection dialog

This commit is contained in:
schroda
2026-06-18 19:07:38 +02:00
parent 9afbbfcf1f
commit c68c2605d1
3 changed files with 25 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (**Migration**) Change migration match exclude/include icons
- (**Migration**) Show the exclude/include button only for an entry with a selected match
- (**Migration**) Allow resuming a migration only in a secure context (localhost or https)
- (**Migration**) Show dialog on manual search selection to optionally open the search result entry instead of selecting it
- (**Source/Extension**) Rename language "All" to "Multi"
- (**Reader**) Simplify changing settings in desktop sidebar
- (**Reader**) Ignore tap zone clicks while window does not have focus

View File

@@ -32,6 +32,7 @@ import { MANGA_ACTION_TO_TRANSLATION } from '@/features/manga/Manga.constants.ts
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
import { assertIsDefined } from '@/base/Asserts.ts';
import { usePress } from '@/base/hooks/usePress.ts';
import { Confirmation } from '@/base/AppAwaitableComponent.ts';
const getMangaLinkTo = (mode: MangaCardMode, mangaId: number): string => {
switch (mode) {
@@ -105,8 +106,23 @@ export const MangaCard = memo((props: MangaCardProps) => {
if (isMigrateSelectMode) {
if (isMigrationSelectBulkMode) {
assertIsDefined(onMigrateSelect);
onMigrateSelect({ ...manga, missingChapters: undefined });
Confirmation.show({
title: t`Bulk migration manual search`,
message: `Select "${manga.title}" as the migration destination?`,
actions: {
confirm: {
title: t`Select`,
},
extra: {
show: true,
title: t`Show entry`,
link: AppRoutes.manga.path(id),
},
},
}).then(() => {
assertIsDefined(onMigrateSelect);
onMigrateSelect({ ...manga, missingChapters: undefined });
});
return;
}

View File

@@ -667,6 +667,10 @@ msgstr "Browser"
msgid "Build time"
msgstr "Build time"
#: src/features/manga/components/cards/MangaCard.tsx
msgid "Bulk migration manual search"
msgstr "Bulk migration manual search"
#: src/features/settings/Settings.constants.ts
msgid "Bundled"
msgstr "Bundled"
@@ -3093,6 +3097,7 @@ msgstr "See the official <0>MUI documentation</0> for how to customize the theme
#: src/features/chapter/components/actions/ChapterActionMenuItems.tsx
#: src/features/chapter/components/cards/ChapterCard.tsx
#: src/features/manga/components/cards/MangaCard.tsx
#: src/features/manga/components/MangaActionMenuItems.tsx
#: src/features/manga/components/MangaOptionButton.tsx
#: src/features/migration/components/migration-entry/MigrationMatchedEntry.tsx
@@ -3210,6 +3215,7 @@ msgstr "Show all duplicated entries in your library"
msgid "Show continue reading button"
msgstr "Show continue reading button"
#: src/features/manga/components/cards/MangaCard.tsx
#: src/features/manga/hooks/useManageMangaLibraryState.tsx
#: src/features/migration/components/MigrationOptionsDialog.tsx
msgid "Show entry"