Update version mapping
Re-enable "Sort browse migration manga selection by title"
Reverts 30a6b73648
This commit is contained in:
@@ -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]!;
|
||||
|
||||
@@ -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 } =
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
[
|
||||
{
|
||||
"uiVersion": "PREVIEW",
|
||||
"serverVersion": "r2099"
|
||||
"serverVersion": "r2217"
|
||||
},
|
||||
{
|
||||
"tag": "OLD-PREVIEW",
|
||||
"uiVersion": "r3293",
|
||||
"serverVersion": "r2221"
|
||||
},
|
||||
{
|
||||
"tag": "v20260509.01",
|
||||
|
||||
Reference in New Issue
Block a user