diff --git a/lib/tool_shed/webapp/frontend/src/components/pages/RepositoriesByCategory.vue b/lib/tool_shed/webapp/frontend/src/components/pages/RepositoriesByCategory.vue index 868415b47241..899341171af9 100644 --- a/lib/tool_shed/webapp/frontend/src/components/pages/RepositoriesByCategory.vue +++ b/lib/tool_shed/webapp/frontend/src/components/pages/RepositoriesByCategory.vue @@ -30,7 +30,7 @@ const categoryName = computed(() => { const query = graphql(/* GraphQL */ ` query repositoriesByCategory($categoryId: String, $cursor: String) { - relayRepositoriesForCategory(encodedId: $categoryId, sort: UPDATE_TIME_DESC, first: 10, after: $cursor) { + relayRepositoriesForCategory(encodedId: $categoryId, sort: NAME_ASC, first: 10, after: $cursor) { edges { cursor node { diff --git a/lib/tool_shed/webapp/frontend/src/gql/gql.ts b/lib/tool_shed/webapp/frontend/src/gql/gql.ts index 0be807e10175..8faa4df3e4c2 100644 --- a/lib/tool_shed/webapp/frontend/src/gql/gql.ts +++ b/lib/tool_shed/webapp/frontend/src/gql/gql.ts @@ -19,7 +19,7 @@ const documents = { types.RecentRepositoryUpdatesDocument, "\n query repositoriesByOwner($username: String, $cursor: String) {\n relayRepositoriesForOwner(username: $username, sort: UPDATE_TIME_DESC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n": types.RepositoriesByOwnerDocument, - "\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: UPDATE_TIME_DESC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n": + "\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: NAME_ASC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n": types.RepositoriesByCategoryDocument, "\n fragment RepositoryListItemFragment on RelayRepository {\n encodedId\n name\n user {\n username\n }\n description\n type\n updateTime\n homepageUrl\n remoteRepositoryUrl\n }\n": types.RepositoryListItemFragmentFragmentDoc, @@ -65,8 +65,8 @@ export function graphql( * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql( - source: "\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: UPDATE_TIME_DESC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n" -): (typeof documents)["\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: UPDATE_TIME_DESC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n"] + source: "\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: NAME_ASC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n" +): (typeof documents)["\n query repositoriesByCategory($categoryId: String, $cursor: String) {\n relayRepositoriesForCategory(encodedId: $categoryId, sort: NAME_ASC, first: 10, after: $cursor) {\n edges {\n cursor\n node {\n ...RepositoryListItemFragment\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n"] /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/lib/tool_shed/webapp/frontend/src/gql/graphql.ts b/lib/tool_shed/webapp/frontend/src/gql/graphql.ts index 0c63d3f99ba0..e7a02dc13d62 100644 --- a/lib/tool_shed/webapp/frontend/src/gql/graphql.ts +++ b/lib/tool_shed/webapp/frontend/src/gql/graphql.ts @@ -20,6 +20,27 @@ export type Scalars = { DateTime: any } +export type BooleanFilter = { + eq?: InputMaybe + in?: InputMaybe>> + nEq?: InputMaybe + notIn?: InputMaybe>> +} + +export type DefaultDateTimeScalarFilter = { + eq?: InputMaybe + in?: InputMaybe>> + nEq?: InputMaybe + notIn?: InputMaybe>> +} + +export type IdFilter = { + eq?: InputMaybe + in?: InputMaybe>> + nEq?: InputMaybe + notIn?: InputMaybe>> +} + /** An object with an ID */ export type Node = { /** The ID of the object */ @@ -61,6 +82,7 @@ export type QueryNodeArgs = { export type QueryRelayCategoriesArgs = { after?: InputMaybe before?: InputMaybe + filter?: InputMaybe first?: InputMaybe last?: InputMaybe sort?: InputMaybe>> @@ -69,6 +91,7 @@ export type QueryRelayCategoriesArgs = { export type QueryRelayRepositoriesArgs = { after?: InputMaybe before?: InputMaybe + filter?: InputMaybe first?: InputMaybe last?: InputMaybe sort?: InputMaybe>> @@ -78,6 +101,7 @@ export type QueryRelayRepositoriesForCategoryArgs = { after?: InputMaybe before?: InputMaybe encodedId?: InputMaybe + filter?: InputMaybe first?: InputMaybe id?: InputMaybe last?: InputMaybe @@ -87,6 +111,7 @@ export type QueryRelayRepositoriesForCategoryArgs = { export type QueryRelayRepositoriesForOwnerArgs = { after?: InputMaybe before?: InputMaybe + filter?: InputMaybe first?: InputMaybe last?: InputMaybe sort?: InputMaybe>> @@ -96,6 +121,7 @@ export type QueryRelayRepositoriesForOwnerArgs = { export type QueryRelayRevisionsArgs = { after?: InputMaybe before?: InputMaybe + filter?: InputMaybe first?: InputMaybe last?: InputMaybe sort?: InputMaybe>> @@ -104,6 +130,7 @@ export type QueryRelayRevisionsArgs = { export type QueryRelayUsersArgs = { after?: InputMaybe before?: InputMaybe + filter?: InputMaybe first?: InputMaybe last?: InputMaybe sort?: InputMaybe>> @@ -138,6 +165,17 @@ export type RelayCategoryEdge = { node?: Maybe } +export type RelayCategoryFilter = { + and?: InputMaybe>> + createTime?: InputMaybe + deleted?: InputMaybe + description?: InputMaybe + id?: InputMaybe + name?: InputMaybe + or?: InputMaybe>> + updateTime?: InputMaybe +} + /** An enumeration. */ export enum RelayCategorySortEnum { CreateTimeAsc = "CREATE_TIME_ASC", @@ -187,6 +225,20 @@ export type RelayRepositoryEdge = { node?: Maybe } +export type RelayRepositoryFilter = { + and?: InputMaybe>> + createTime?: InputMaybe + description?: InputMaybe + homepageUrl?: InputMaybe + id?: InputMaybe + longDescription?: InputMaybe + name?: InputMaybe + or?: InputMaybe>> + remoteRepositoryUrl?: InputMaybe + type?: InputMaybe + updateTime?: InputMaybe +} + export type RelayRepositoryMetadata = Node & { __typename?: "RelayRepositoryMetadata" changesetRevision: Scalars["String"] @@ -217,6 +269,12 @@ export type RelayRepositoryMetadataEdge = { node?: Maybe } +export type RelayRepositoryMetadataFilter = { + and?: InputMaybe>> + id?: InputMaybe + or?: InputMaybe>> +} + /** An enumeration. */ export enum RelayRepositoryMetadataSortEnum { IdAsc = "ID_ASC", @@ -269,6 +327,13 @@ export type RelayUserEdge = { node?: Maybe } +export type RelayUserFilter = { + and?: InputMaybe>> + id?: InputMaybe + or?: InputMaybe>> + username?: InputMaybe +} + /** An enumeration. */ export enum RelayUserSortEnum { IdAsc = "ID_ASC", @@ -327,6 +392,16 @@ export type SimpleUser = { username: Scalars["String"] } +export type StringFilter = { + eq?: InputMaybe + ilike?: InputMaybe + in?: InputMaybe>> + like?: InputMaybe + nEq?: InputMaybe + notIn?: InputMaybe>> + notlike?: InputMaybe +} + export type RecentlyCreatedRepositoriesQueryVariables = Exact<{ [key: string]: never }> export type RecentlyCreatedRepositoriesQuery = { @@ -760,7 +835,7 @@ export const RepositoriesByCategoryDocument = { { kind: "Argument", name: { kind: "Name", value: "sort" }, - value: { kind: "EnumValue", value: "UPDATE_TIME_DESC" }, + value: { kind: "EnumValue", value: "NAME_ASC" }, }, { kind: "Argument",