Update version mapping

Re-enable "Sort browse migration manga selection by title"

Reverts 30a6b73648
This commit is contained in:
schroda
2026-06-28 12:50:23 +02:00
parent ca5c246fd7
commit 70d18dd372
3 changed files with 18 additions and 15 deletions

View File

@@ -258,7 +258,6 @@ export class Mangas {
(chapter) => chapter.mangaId, (chapter) => chapter.mangaId,
); );
// TODO - Filter for scanlators directly in getChapterIdsWithState once fixed on the server
const filteredChaptersToConsiderByMangaId = mapValues((chapters) => { const filteredChaptersToConsiderByMangaId = mapValues((chapters) => {
const { mangaId } = chapters![0]!; const { mangaId } = chapters![0]!;
const manga = mangaByMangaId[mangaId]![0]!; const manga = mangaByMangaId[mangaId]![0]!;

View File

@@ -32,6 +32,7 @@ import { Mangas } from '@/features/manga/services/Mangas.ts';
import { STABLE_EMPTY_ARRAY } from '@/base/Base.constants.ts'; import { STABLE_EMPTY_ARRAY } from '@/base/Base.constants.ts';
import { MigrationContinueButton } from '@/features/migration/components/MigrationContinueButton.tsx'; import { MigrationContinueButton } from '@/features/migration/components/MigrationContinueButton.tsx';
import { GET_MIGRATABLE_SOURCE_MANGAS } from '@/lib/graphql/manga/MangaQuery.ts'; import { GET_MIGRATABLE_SOURCE_MANGAS } from '@/lib/graphql/manga/MangaQuery.ts';
import { MangaOrderBy, SortOrder } from '@/lib/graphql/generated/graphql-base.types.ts';
const getSourceError = (error: unknown): unknown => { const getSourceError = (error: unknown): unknown => {
const message = getErrorMessage(error); const message = getErrorMessage(error);
@@ -79,25 +80,23 @@ export const MigrationSelectMangas = () => {
sourceId, sourceId,
inLibrary: true, inLibrary: true,
}, },
// TODO(release) - enable again once minimum server version gets updated order: [
// order: [ {
// { by: MangaOrderBy.Title,
// by: MangaOrderBy.Title, byType: SortOrder.Asc,
// byType: SortOrder.Asc, },
// }, {
// { by: MangaOrderBy.InLibraryAt,
// by: MangaOrderBy.InLibraryAt, byType: SortOrder.Desc,
// byType: SortOrder.Desc, },
// }, ],
// ],
}, },
{ {
skip: !sourceIds, skip: !sourceIds,
}, },
); );
const tmpMangas = migratableSourceMangasData?.mangas.nodes ?? STABLE_EMPTY_ARRAY; const mangas = migratableSourceMangasData?.mangas.nodes ?? STABLE_EMPTY_ARRAY;
const mangas = useMemo(() => tmpMangas.toSorted((a, b) => a.title.localeCompare(b.title)), [tmpMangas]);
const mangaIds = useMemo(() => Mangas.getIds(mangas), [mangas]); const mangaIds = useMemo(() => Mangas.getIds(mangas), [mangas]);
const { selectedItemIds, handleSelection, handleSelectAll, areAllItemsSelected, areNoItemsSelected } = const { selectedItemIds, handleSelection, handleSelectAll, areAllItemsSelected, areNoItemsSelected } =

View File

@@ -1,7 +1,12 @@
[ [
{ {
"uiVersion": "PREVIEW", "uiVersion": "PREVIEW",
"serverVersion": "r2099" "serverVersion": "r2217"
},
{
"tag": "OLD-PREVIEW",
"uiVersion": "r3293",
"serverVersion": "r2221"
}, },
{ {
"tag": "v20260509.01", "tag": "v20260509.01",