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,
);
// TODO - Filter for scanlators directly in getChapterIdsWithState once fixed on the server
const filteredChaptersToConsiderByMangaId = mapValues((chapters) => {
const { mangaId } = chapters![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 { MigrationContinueButton } from '@/features/migration/components/MigrationContinueButton.tsx';
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 message = getErrorMessage(error);
@@ -79,25 +80,23 @@ export const MigrationSelectMangas = () => {
sourceId,
inLibrary: true,
},
// TODO(release) - enable again once minimum server version gets updated
// order: [
// {
// by: MangaOrderBy.Title,
// byType: SortOrder.Asc,
// },
// {
// by: MangaOrderBy.InLibraryAt,
// byType: SortOrder.Desc,
// },
// ],
order: [
{
by: MangaOrderBy.Title,
byType: SortOrder.Asc,
},
{
by: MangaOrderBy.InLibraryAt,
byType: SortOrder.Desc,
},
],
},
{
skip: !sourceIds,
},
);
const tmpMangas = migratableSourceMangasData?.mangas.nodes ?? STABLE_EMPTY_ARRAY;
const mangas = useMemo(() => tmpMangas.toSorted((a, b) => a.title.localeCompare(b.title)), [tmpMangas]);
const mangas = migratableSourceMangasData?.mangas.nodes ?? STABLE_EMPTY_ARRAY;
const mangaIds = useMemo(() => Mangas.getIds(mangas), [mangas]);
const { selectedItemIds, handleSelection, handleSelectAll, areAllItemsSelected, areNoItemsSelected } =