aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/pages')
-rw-r--r--webui/src/pages/bug/CommentForm.graphql4
-rw-r--r--webui/src/pages/bug/EditCommentForm.graphql4
-rw-r--r--webui/src/pages/bug/EditCommentForm.tsx2
-rw-r--r--webui/src/pages/bug/LabelChangeFragment.graphql2
-rw-r--r--webui/src/pages/bug/MessageCommentFragment.graphql2
-rw-r--r--webui/src/pages/bug/MessageCreateFragment.graphql2
-rw-r--r--webui/src/pages/bug/SetStatusFragment.graphql2
-rw-r--r--webui/src/pages/bug/SetTitleFragment.graphql2
-rw-r--r--webui/src/pages/bug/Timeline.tsx10
-rw-r--r--webui/src/pages/bug/TimelineQuery.graphql12
-rw-r--r--webui/src/pages/bug/labels/SetLabel.graphql4
-rw-r--r--webui/src/pages/new/NewBug.graphql4
-rw-r--r--webui/src/pages/new/NewBugPage.tsx2
13 files changed, 26 insertions, 26 deletions
diff --git a/webui/src/pages/bug/CommentForm.graphql b/webui/src/pages/bug/CommentForm.graphql
index f4b61850..37ed842a 100644
--- a/webui/src/pages/bug/CommentForm.graphql
+++ b/webui/src/pages/bug/CommentForm.graphql
@@ -1,5 +1,5 @@
-mutation AddComment($input: AddCommentInput!) {
- addComment(input: $input) {
+mutation AddComment($input: BugAddCommentInput!) {
+ bugAddComment(input: $input) {
operation {
id
}
diff --git a/webui/src/pages/bug/EditCommentForm.graphql b/webui/src/pages/bug/EditCommentForm.graphql
index 4765b75c..05da2824 100644
--- a/webui/src/pages/bug/EditCommentForm.graphql
+++ b/webui/src/pages/bug/EditCommentForm.graphql
@@ -1,8 +1,8 @@
#import "./MessageCommentFragment.graphql"
#import "./MessageCreateFragment.graphql"
-mutation EditComment($input: EditCommentInput!) {
- editComment(input: $input) {
+mutation EditComment($input: BugEditCommentInput!) {
+ bugEditComment(input: $input) {
bug {
id
timeline {
diff --git a/webui/src/pages/bug/EditCommentForm.tsx b/webui/src/pages/bug/EditCommentForm.tsx
index b265735b..3a3eaf2c 100644
--- a/webui/src/pages/bug/EditCommentForm.tsx
+++ b/webui/src/pages/bug/EditCommentForm.tsx
@@ -63,7 +63,7 @@ function EditCommentForm({ bug, comment, onCancel, onPostSubmit }: Props) {
},
},
}).then((result) => {
- const comments = result.data?.editComment.bug.timeline.comments as (
+ const comments = result.data?.bugEditComment.bug.timeline.comments as (
| AddCommentFragment
| CreateFragment
)[];
diff --git a/webui/src/pages/bug/LabelChangeFragment.graphql b/webui/src/pages/bug/LabelChangeFragment.graphql
index 82d41235..f00bf034 100644
--- a/webui/src/pages/bug/LabelChangeFragment.graphql
+++ b/webui/src/pages/bug/LabelChangeFragment.graphql
@@ -1,6 +1,6 @@
#import "../../components/fragments.graphql"
-fragment LabelChange on LabelChangeTimelineItem {
+fragment LabelChange on BugLabelChangeTimelineItem {
date
...authored
added {
diff --git a/webui/src/pages/bug/MessageCommentFragment.graphql b/webui/src/pages/bug/MessageCommentFragment.graphql
index c852b4b0..1482b05a 100644
--- a/webui/src/pages/bug/MessageCommentFragment.graphql
+++ b/webui/src/pages/bug/MessageCommentFragment.graphql
@@ -1,6 +1,6 @@
#import "../../components/fragments.graphql"
-fragment AddComment on AddCommentTimelineItem {
+fragment AddComment on BugAddCommentTimelineItem {
id
createdAt
...authored
diff --git a/webui/src/pages/bug/MessageCreateFragment.graphql b/webui/src/pages/bug/MessageCreateFragment.graphql
index 1f4647b6..14c0f0f1 100644
--- a/webui/src/pages/bug/MessageCreateFragment.graphql
+++ b/webui/src/pages/bug/MessageCreateFragment.graphql
@@ -1,6 +1,6 @@
#import "../../components/fragments.graphql"
-fragment Create on CreateTimelineItem {
+fragment Create on BugCreateTimelineItem {
id
createdAt
...authored
diff --git a/webui/src/pages/bug/SetStatusFragment.graphql b/webui/src/pages/bug/SetStatusFragment.graphql
index d8380409..2404e809 100644
--- a/webui/src/pages/bug/SetStatusFragment.graphql
+++ b/webui/src/pages/bug/SetStatusFragment.graphql
@@ -1,6 +1,6 @@
#import "../../components/fragments.graphql"
-fragment SetStatus on SetStatusTimelineItem {
+fragment SetStatus on BugSetStatusTimelineItem {
date
...authored
status
diff --git a/webui/src/pages/bug/SetTitleFragment.graphql b/webui/src/pages/bug/SetTitleFragment.graphql
index 2225dfd3..b226bff5 100644
--- a/webui/src/pages/bug/SetTitleFragment.graphql
+++ b/webui/src/pages/bug/SetTitleFragment.graphql
@@ -1,6 +1,6 @@
#import "../../components/fragments.graphql"
-fragment SetTitle on SetTitleTimelineItem {
+fragment SetTitle on BugSetTitleTimelineItem {
date
...authored
title
diff --git a/webui/src/pages/bug/Timeline.tsx b/webui/src/pages/bug/Timeline.tsx
index fc88edd7..b9601dc1 100644
--- a/webui/src/pages/bug/Timeline.tsx
+++ b/webui/src/pages/bug/Timeline.tsx
@@ -27,15 +27,15 @@ function Timeline({ bug, ops }: Props) {
<div className={classes.main}>
{ops.map((op, index) => {
switch (op.__typename) {
- case 'CreateTimelineItem':
+ case 'BugCreateTimelineItem':
return <Message key={index} op={op} bug={bug} />;
- case 'AddCommentTimelineItem':
+ case 'BugAddCommentTimelineItem':
return <Message key={index} op={op} bug={bug} />;
- case 'LabelChangeTimelineItem':
+ case 'BugLabelChangeTimelineItem':
return <LabelChange key={index} op={op} />;
- case 'SetTitleTimelineItem':
+ case 'BugSetTitleTimelineItem':
return <SetTitle key={index} op={op} />;
- case 'SetStatusTimelineItem':
+ case 'BugSetStatusTimelineItem':
return <SetStatus key={index} op={op} />;
}
diff --git a/webui/src/pages/bug/TimelineQuery.graphql b/webui/src/pages/bug/TimelineQuery.graphql
index 7c9badfd..057b798a 100644
--- a/webui/src/pages/bug/TimelineQuery.graphql
+++ b/webui/src/pages/bug/TimelineQuery.graphql
@@ -21,20 +21,20 @@ query Timeline($id: String!, $first: Int = 10, $after: String) {
}
}
-fragment TimelineItem on TimelineItem {
- ... on LabelChangeTimelineItem {
+fragment TimelineItem on BugTimelineItem {
+ ... on BugLabelChangeTimelineItem {
...LabelChange
}
- ... on SetStatusTimelineItem {
+ ... on BugSetStatusTimelineItem {
...SetStatus
}
- ... on SetTitleTimelineItem {
+ ... on BugSetTitleTimelineItem {
...SetTitle
}
- ... on AddCommentTimelineItem {
+ ... on BugAddCommentTimelineItem {
...AddComment
}
- ... on CreateTimelineItem {
+ ... on BugCreateTimelineItem {
...Create
}
}
diff --git a/webui/src/pages/bug/labels/SetLabel.graphql b/webui/src/pages/bug/labels/SetLabel.graphql
index 6f4ad510..e2e637a0 100644
--- a/webui/src/pages/bug/labels/SetLabel.graphql
+++ b/webui/src/pages/bug/labels/SetLabel.graphql
@@ -1,5 +1,5 @@
-mutation SetLabel($input: ChangeLabelInput) {
- changeLabels(input: $input) {
+mutation SetLabel($input: BugChangeLabelInput) {
+ bugChangeLabels(input: $input) {
results {
status
label {
diff --git a/webui/src/pages/new/NewBug.graphql b/webui/src/pages/new/NewBug.graphql
index ef024e41..664f0897 100644
--- a/webui/src/pages/new/NewBug.graphql
+++ b/webui/src/pages/new/NewBug.graphql
@@ -1,5 +1,5 @@
-mutation newBug($input: NewBugInput!) {
- newBug(input: $input) {
+mutation newBug($input: BugCreateInput!) {
+ bugCreate(input: $input) {
bug {
id
}
diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx
index 0852ef39..91e4905a 100644
--- a/webui/src/pages/new/NewBugPage.tsx
+++ b/webui/src/pages/new/NewBugPage.tsx
@@ -62,7 +62,7 @@ function NewBugPage() {
},
},
}).then(function (data) {
- const id = data.data?.newBug.bug.id;
+ const id = data.data?.bugCreate.bug.id;
navigate('/bug/' + id);
});