Skip to content

Commit 08d8ef8

Browse files
authored
Revert "Create Team Info in Team Settings page" (codesandbox#4058)
1 parent 6fe4a0d commit 08d8ef8

File tree

13 files changed

+223
-606
lines changed

13 files changed

+223
-606
lines changed

packages/app/src/app/graphql/schema.graphql

Lines changed: 84 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# source: https://codesandbox.io/api/graphql
2-
# timestamp: Thu Apr 30 2020 19:12:48 GMT+0200 (Central European Summer Time)
2+
# timestamp: Wed Apr 29 2020 14:46:25 GMT+0200 (Central European Summer Time)
33

44
schema {
55
query: RootQuery
@@ -163,84 +163,81 @@ The metadata of a reference
163163
union ReferenceMetadata = CodeReferenceMetadata
164164

165165
type RootMutation {
166-
revokeSandboxInvitation(invitationId: ID!, sandboxId: ID!): Invitation!
166+
"""
167+
Clear notification unread count
168+
"""
169+
clearNotificationCount: User
167170

168171
"""
169-
Create a team
172+
Remove someone from a team
170173
"""
171-
createTeam(name: String!): Team!
174+
removeFromTeam(teamId: ID!, userId: ID!): Team!
172175

173176
"""
174-
Delete sandboxes
177+
Unbookmark a template
175178
"""
176-
deleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
177-
createSandboxInvitation(
178-
authorization: Authorization!
179-
email: String!
180-
sandboxId: ID!
181-
): Invitation!
179+
unbookmarkTemplate(teamId: ID, templateId: ID!): Template
182180

183181
"""
184-
Make templates from sandboxes
182+
Accept an invitation to a team
185183
"""
186-
makeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
187-
setSandboxesPrivacy(privacy: Int, sandboxIds: [ID!]!): [Sandbox!]!
188-
resolveComment(commentId: ID!, sandboxId: ID!): Comment!
184+
acceptTeamInvitation(teamId: ID!): Team!
189185

190186
"""
191-
Rename a collection and all subfolders
187+
Change authorization of a collaborator
192188
"""
193-
renameCollection(
194-
newPath: String!
195-
newTeamId: ID
196-
path: String!
197-
teamId: ID
198-
): [Collection!]!
189+
changeCollaboratorAuthorization(
190+
authorization: Authorization!
191+
sandboxId: ID!
192+
username: String!
193+
): Collaborator!
199194

200195
"""
201-
Convert templates back to sandboxes
196+
Leave a team
202197
"""
203-
unmakeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
198+
leaveTeam(teamId: ID!): String!
204199

205200
"""
206-
Unbookmark a template
201+
Add a collaborator
207202
"""
208-
unbookmarkTemplate(teamId: ID, templateId: ID!): Template
203+
addCollaborator(
204+
authorization: Authorization!
205+
sandboxId: ID!
206+
username: String!
207+
): Collaborator!
209208

210209
"""
211-
Delete a collection and all subfolders
210+
Set the description of the team
212211
"""
213-
deleteCollection(path: String!, teamId: ID): [Collection!]!
212+
setTeamDescription(description: String!, teamId: ID!): Team!
213+
redeemSandboxInvitation(invitationToken: String!, sandboxId: ID!): Invitation!
214214

215215
"""
216-
Leave a team
216+
Redeem an invite token from a team
217217
"""
218-
leaveTeam(teamId: ID!): String!
218+
redeemTeamInviteToken(inviteToken: String!): Team!
219+
revokeSandboxInvitation(invitationId: ID!, sandboxId: ID!): Invitation!
219220

220221
"""
221-
Revoke an invitation to a team
222+
Reject an invitation to a team
222223
"""
223-
revokeTeamInvitation(teamId: ID!, userId: ID!): Team!
224-
permanentlyDeleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
224+
rejectTeamInvitation(teamId: ID!): String!
225225

226226
"""
227-
Change authorization of a collaborator
227+
bookmark a template
228228
"""
229-
changeCollaboratorAuthorization(
230-
authorization: Authorization!
231-
sandboxId: ID!
232-
username: String!
233-
): Collaborator!
229+
bookmarkTemplate(teamId: ID, templateId: ID!): Template
234230

235231
"""
236-
Reject an invitation to a team
232+
Delete a collection and all subfolders
237233
"""
238-
rejectTeamInvitation(teamId: ID!): String!
234+
deleteCollection(path: String!, teamId: ID): [Collection!]!
235+
permanentlyDeleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
239236

240237
"""
241-
Soft delete a comment. Note: all child comments will also be deleted.
238+
Invite someone to a team
242239
"""
243-
deleteComment(commentId: ID!, sandboxId: ID!): Comment!
240+
inviteToTeam(teamId: ID!, username: String!): Team!
244241

245242
"""
246243
Add sandboxes to a collection
@@ -250,86 +247,88 @@ type RootMutation {
250247
sandboxIds: [ID]!
251248
teamId: ID
252249
): Collection!
253-
createComment(
254-
codeReference: CodeReference
255-
content: String!
256-
id: ID
257-
parentCommentId: ID
258-
sandboxId: ID!
259-
): Comment!
260-
redeemSandboxInvitation(invitationToken: String!, sandboxId: ID!): Invitation!
261-
unresolveComment(commentId: ID!, sandboxId: ID!): Comment!
262-
263-
"""
264-
Remove a collaborator
265-
"""
266-
removeCollaborator(sandboxId: ID!, username: String!): Collaborator!
267250

268251
"""
269-
Set the description of the team
252+
Rename a collection and all subfolders
270253
"""
271-
setTeamDescription(description: String!, teamId: ID!): Team!
254+
renameCollection(
255+
newPath: String!
256+
newTeamId: ID
257+
path: String!
258+
teamId: ID
259+
): [Collection!]!
272260
renameSandbox(id: ID!, title: String!): Sandbox!
261+
changeSandboxInvitationAuthorization(
262+
authorization: Authorization!
263+
invitationId: ID!
264+
sandboxId: ID!
265+
): Invitation!
266+
unresolveComment(commentId: ID!, sandboxId: ID!): Comment!
273267

274268
"""
275-
Invite someone to a team
269+
Make templates from sandboxes
276270
"""
277-
inviteToTeam(teamId: ID!, username: String!): Team!
271+
makeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
278272

279273
"""
280-
Add a collaborator
274+
Invite someone to a team via email
281275
"""
282-
addCollaborator(
276+
inviteToTeamViaEmail(email: String!, teamId: ID!): String!
277+
createSandboxInvitation(
283278
authorization: Authorization!
279+
email: String!
284280
sandboxId: ID!
285-
username: String!
286-
): Collaborator!
281+
): Invitation!
287282

288283
"""
289-
Remove someone from a team
284+
Remove a collaborator
290285
"""
291-
removeFromTeam(teamId: ID!, userId: ID!): Team!
286+
removeCollaborator(sandboxId: ID!, username: String!): Collaborator!
287+
setSandboxesPrivacy(privacy: Int, sandboxIds: [ID!]!): [Sandbox!]!
292288

293289
"""
294-
Invite someone to a team via email
290+
Create a collection
295291
"""
296-
inviteToTeamViaEmail(email: String!, teamId: ID!): String!
297-
changeSandboxInvitationAuthorization(
298-
authorization: Authorization!
299-
invitationId: ID!
292+
createCollection(path: String!, teamId: ID): Collection!
293+
createComment(
294+
codeReference: CodeReference
295+
content: String!
296+
id: ID
297+
parentCommentId: ID
300298
sandboxId: ID!
301-
): Invitation!
299+
): Comment!
302300
updateComment(commentId: ID!, content: String, sandboxId: ID!): Comment!
303301

304302
"""
305-
Clear notification unread count
303+
Convert templates back to sandboxes
306304
"""
307-
clearNotificationCount: User
305+
unmakeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
308306

309307
"""
310-
Mark all notifications as read
308+
Soft delete a comment. Note: all child comments will also be deleted.
311309
"""
312-
markAllNotificationsAsRead: User
310+
deleteComment(commentId: ID!, sandboxId: ID!): Comment!
313311

314312
"""
315-
bookmark a template
313+
Create a team
316314
"""
317-
bookmarkTemplate(teamId: ID, templateId: ID!): Template
315+
createTeam(name: String!): Team!
318316

319317
"""
320-
Redeem an invite token from a team
318+
Delete sandboxes
321319
"""
322-
redeemTeamInviteToken(inviteToken: String!): Team!
320+
deleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
323321

324322
"""
325-
Create a collection
323+
Revoke an invitation to a team
326324
"""
327-
createCollection(path: String!, teamId: ID): Collection!
325+
revokeTeamInvitation(teamId: ID!, userId: ID!): Team!
328326

329327
"""
330-
Accept an invitation to a team
328+
Mark all notifications as read
331329
"""
332-
acceptTeamInvitation(teamId: ID!): Team!
330+
markAllNotificationsAsRead: User
331+
resolveComment(commentId: ID!, sandboxId: ID!): Comment!
333332
}
334333

335334
type RootQuery {

0 commit comments

Comments
 (0)