Sort browse migration manga selection by title

This commit is contained in:
schroda
2026-05-16 01:33:37 +02:00
parent c41b2ff64d
commit e944c6711e
5 changed files with 106 additions and 68 deletions

View File

@@ -624,7 +624,14 @@ export type GetMangasDuplicatesQueryVariables = Exact<{
export type GetMangasDuplicatesQuery = { __typename: 'Query', mangas: { __typename: 'MangaNodeList', totalCount: number, nodes: Array<{ __typename: 'MangaType', description: string | null, id: number, title: string, thumbnailUrl: string | null, thumbnailUrlLastFetched: string | null, inLibrary: boolean, initialized: boolean, sourceId: string, unreadCount: number, downloadCount: number, bookmarkCount: number, hasDuplicateChapters: boolean, chapters: { __typename: 'ChapterNodeList', totalCount: number } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } };
export type GetMigratableSourceMangasQueryVariables = Exact<{
sourceId: string;
after?: string | null | undefined;
before?: string | null | undefined;
condition?: Types.MangaConditionInput | null | undefined;
filter?: Types.MangaFilterInput | null | undefined;
first?: number | null | undefined;
last?: number | null | undefined;
offset?: number | null | undefined;
order?: Array<Types.MangaOrderInput> | Types.MangaOrderInput | null | undefined;
}>;

View File

@@ -239,8 +239,26 @@ export const GET_MANGAS_DUPLICATES = gql`
export const GET_MIGRATABLE_SOURCE_MANGAS = gql`
${MANGA_MIGRATION_FIELDS}
query GET_MIGRATABLE_SOURCE_MANGAS($sourceId: LongString!) {
mangas(condition: { sourceId: $sourceId, inLibrary: true }) {
query GET_MIGRATABLE_SOURCE_MANGAS(
$after: Cursor
$before: Cursor
$condition: MangaConditionInput
$filter: MangaFilterInput
$first: Int
$last: Int
$offset: Int
$order: [MangaOrderInput!]
) {
mangas(
after: $after
before: $before
condition: $condition
filter: $filter
first: $first
last: $last
offset: $offset
order: $order
) {
nodes {
...MANGA_MIGRATION_FIELDS
}