Sidebar and edit updates
This commit is contained in:
parent
d73b194d1f
commit
f13530f043
32 changed files with 3057 additions and 1114 deletions
13
apps/link/app/_graphql/createTicketMutation.ts
Normal file
13
apps/link/app/_graphql/createTicketMutation.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { gql } from "graphql-request";
|
||||
|
||||
export const createTicketMutation = gql`
|
||||
mutation CreateTicket($ticketId: ID!, $input: TicketCreateInput!) {
|
||||
ticketCreate(input: $input) {
|
||||
ticket {
|
||||
id
|
||||
priority {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}`;
|
||||
20
apps/link/app/_graphql/searchQuery.ts
Normal file
20
apps/link/app/_graphql/searchQuery.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { gql } from 'graphql-request';
|
||||
|
||||
export const searchQuery = gql`
|
||||
query search($search: String!, $limit: Int = 10, $onlyIn: EnumSearchableModels = Ticket) {
|
||||
search(search: $search, limit: $limit, onlyIn: $onlyIn) {
|
||||
... on Ticket {
|
||||
id
|
||||
number
|
||||
internalId
|
||||
title
|
||||
state {
|
||||
id
|
||||
name
|
||||
}
|
||||
stateColorCode
|
||||
note
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue