Skip to content

Commit

Permalink
Add notes to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Jan 30, 2021
1 parent 8c1a339 commit e90db23
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 120 deletions.
19 changes: 13 additions & 6 deletions ui/src/gql/timeSpan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const Trackers = gql`
value
}
oldStart
note
}
}
`;
Expand All @@ -27,6 +28,7 @@ export const TimeSpansInRange = gql`
value
}
oldStart
note
}
cursor {
startId
Expand All @@ -49,6 +51,7 @@ export const TimeSpans = gql`
value
}
oldStart
note
}
cursor {
startId
Expand All @@ -60,8 +63,8 @@ export const TimeSpans = gql`
`;

export const StartTimer = gql`
mutation StartTimer($start: Time!, $tags: [InputTimeSpanTag!]) {
createTimeSpan(start: $start, tags: $tags) {
mutation StartTimer($start: Time!, $tags: [InputTimeSpanTag!], $note: String!) {
createTimeSpan(start: $start, tags: $tags, note: $note) {
id
start
end
Expand All @@ -70,6 +73,7 @@ export const StartTimer = gql`
value
}
oldStart
note
}
}
`;
Expand All @@ -85,13 +89,14 @@ export const StopTimer = gql`
value
}
oldStart
note
}
}
`;

export const AddTimeSpan = gql`
mutation AddTimeSpan($start: Time!, $end: Time!, $tags: [InputTimeSpanTag!]) {
createTimeSpan(start: $start, end: $end, tags: $tags) {
mutation AddTimeSpan($start: Time!, $end: Time!, $tags: [InputTimeSpanTag!], $note: String!) {
createTimeSpan(start: $start, end: $end, tags: $tags, note: $note) {
id
start
end
Expand All @@ -100,13 +105,14 @@ export const AddTimeSpan = gql`
value
}
oldStart
note
}
}
`;

export const UpdateTimeSpan = gql`
mutation UpdateTimeSpan($id: Int!, $start: Time!, $end: Time, $tags: [InputTimeSpanTag!], $oldStart: Time) {
updateTimeSpan(id: $id, start: $start, end: $end, tags: $tags, oldStart: $oldStart) {
mutation UpdateTimeSpan($id: Int!, $start: Time!, $end: Time, $tags: [InputTimeSpanTag!], $oldStart: Time, $note: String!) {
updateTimeSpan(id: $id, start: $start, end: $end, tags: $tags, oldStart: $oldStart, note: $note) {
id
start
end
Expand All @@ -115,6 +121,7 @@ export const UpdateTimeSpan = gql`
value
}
oldStart
note
}
}
`;
Expand Down
Loading

0 comments on commit e90db23

Please sign in to comment.