Skip to content

Commit 043ce98

Browse files
More polish (codesandbox#3850)
* fixes? * fix wobble text * add actiuve state to filter * small seo fixes * add all and open states * update optimitic id * fix using id Co-authored-by: Christian Alfoni <[email protected]>
1 parent bd145ca commit 043ce98

File tree

11 files changed

+363
-294
lines changed

11 files changed

+363
-294
lines changed

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

Lines changed: 84 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# source: http://server:4000/api/graphql
2-
# timestamp: Fri Apr 03 2020 11:58:51 GMT+0000 (Coordinated Universal Time)
1+
# source: https://codesandbox.stream/api/graphql
2+
# timestamp: Wed Apr 08 2020 10:19:39 GMT+0200 (Central European Summer Time)
33

44
schema {
55
query: RootQuery
@@ -162,160 +162,161 @@ union ReferenceMetadata = CodeReferenceMetadata
162162

163163
type RootMutation {
164164
"""
165-
Leave a team
165+
Unbookmark a template
166166
"""
167-
leaveTeam(teamId: ID!): String
167+
unbookmarkTemplate(teamId: ID, templateId: ID!): Template
168168

169169
"""
170-
Clear notification unread count
170+
bookmark a template
171171
"""
172-
clearNotificationCount: User
172+
bookmarkTemplate(teamId: ID, templateId: ID!): Template
173173

174174
"""
175-
Remove a collaborator
175+
Create a collection
176176
"""
177-
removeCollaborator(sandboxId: ID!, username: String!): Collaborator!
178-
createSandboxInvitation(
179-
authorization: Authorization!
180-
email: String!
181-
sandboxId: ID!
182-
): Invitation!
177+
createCollection(path: String!, teamId: ID): Collection!
183178

184179
"""
185-
Add sandboxes to a collection
180+
Rename a collection and all subfolders
186181
"""
187-
addToCollection(
188-
collectionPath: String!
189-
sandboxIds: [ID]!
182+
renameCollection(
183+
newPath: String!
184+
newTeamId: ID
185+
path: String!
190186
teamId: ID
191-
): Collection!
192-
renameSandbox(id: ID!, title: String!): Sandbox!
187+
): [Collection!]!
193188

194189
"""
195-
Revoke an invitation to a team
190+
Add a collaborator
196191
"""
197-
revokeTeamInvitation(teamId: ID!, userId: ID!): Team
198-
unresolveComment(commentId: ID!, sandboxId: ID!): Comment!
192+
addCollaborator(
193+
authorization: Authorization!
194+
sandboxId: ID!
195+
username: String!
196+
): Collaborator!
199197

200198
"""
201-
Soft delete a comment. Note: all child comments will also be deleted.
199+
Delete a collection and all subfolders
202200
"""
203-
deleteComment(commentId: ID!, sandboxId: ID!): Comment!
201+
deleteCollection(path: String!, teamId: ID): [Collection!]!
204202

205203
"""
206-
bookmark a template
204+
Accept an invitation to a team
207205
"""
208-
bookmarkTemplate(teamId: ID, templateId: ID!): Template
206+
acceptTeamInvitation(teamId: ID!): Team
207+
permanentlyDeleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
209208

210209
"""
211-
Set the description of the team
210+
Change authorization of a collaborator
212211
"""
213-
setTeamDescription(description: String!, teamId: ID!): Team
212+
changeCollaboratorAuthorization(
213+
authorization: Authorization!
214+
sandboxId: ID!
215+
username: String!
216+
): Collaborator!
217+
revokeSandboxInvitation(invitationId: ID!, sandboxId: ID!): Invitation!
218+
createComment(
219+
codeReference: CodeReference
220+
content: String!
221+
id: ID
222+
parentCommentId: ID
223+
sandboxId: ID!
224+
): Comment!
214225

215226
"""
216-
Accept an invitation to a team
227+
Mark all notifications as read
217228
"""
218-
acceptTeamInvitation(teamId: ID!): Team
229+
markAllNotificationsAsRead: User
219230

220231
"""
221-
Rename a collection and all subfolders
232+
Remove someone from a team
222233
"""
223-
renameCollection(
224-
newPath: String!
225-
newTeamId: ID
226-
path: String!
227-
teamId: ID
228-
): [Collection!]!
234+
removeFromTeam(teamId: ID!, userId: ID!): Team
235+
renameSandbox(id: ID!, title: String!): Sandbox!
229236

230237
"""
231-
Reject an invitation to a team
238+
Remove a collaborator
232239
"""
233-
rejectTeamInvitation(teamId: ID!): String
240+
removeCollaborator(sandboxId: ID!, username: String!): Collaborator!
241+
resolveComment(commentId: ID!, sandboxId: ID!): Comment!
234242

235243
"""
236-
Create a collection
244+
Convert templates back to sandboxes
237245
"""
238-
createCollection(path: String!, teamId: ID): Collection!
239-
updateComment(commentId: ID!, content: String, sandboxId: ID!): Comment!
246+
unmakeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
240247

241248
"""
242-
Make templates from sandboxes
249+
Revoke an invitation to a team
243250
"""
244-
makeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
251+
revokeTeamInvitation(teamId: ID!, userId: ID!): Team
245252

246253
"""
247-
Remove someone from a team
254+
Add sandboxes to a collection
248255
"""
249-
removeFromTeam(teamId: ID!, userId: ID!): Team
256+
addToCollection(
257+
collectionPath: String!
258+
sandboxIds: [ID]!
259+
teamId: ID
260+
): Collection!
250261

251262
"""
252-
Unbookmark a template
263+
Invite someone to a team
253264
"""
254-
unbookmarkTemplate(teamId: ID, templateId: ID!): Template
255-
resolveComment(commentId: ID!, sandboxId: ID!): Comment!
265+
inviteToTeam(teamId: ID!, username: String): Team
256266

257267
"""
258-
Change authorization of a collaborator
268+
Create a team
259269
"""
260-
changeCollaboratorAuthorization(
261-
authorization: Authorization!
262-
sandboxId: ID!
263-
username: String!
264-
): Collaborator!
265-
revokeSandboxInvitation(invitationId: ID!, sandboxId: ID!): Invitation!
270+
createTeam(name: String!): Team
271+
updateComment(commentId: ID!, content: String, sandboxId: ID!): Comment!
266272

267273
"""
268-
Mark all notifications as read
274+
Set the description of the team
269275
"""
270-
markAllNotificationsAsRead: User
276+
setTeamDescription(description: String!, teamId: ID!): Team
271277

272278
"""
273-
Delete a collection and all subfolders
279+
Make templates from sandboxes
274280
"""
275-
deleteCollection(path: String!, teamId: ID): [Collection!]!
276-
redeemSandboxInvitation(invitationToken: String!, sandboxId: ID!): Invitation!
281+
makeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
282+
unresolveComment(commentId: ID!, sandboxId: ID!): Comment!
277283

278284
"""
279-
Add a collaborator
285+
Clear notification unread count
280286
"""
281-
addCollaborator(
282-
authorization: Authorization!
283-
sandboxId: ID!
284-
username: String!
285-
): Collaborator!
287+
clearNotificationCount: User
286288

287289
"""
288-
Create a team
290+
Soft delete a comment. Note: all child comments will also be deleted.
289291
"""
290-
createTeam(name: String!): Team
292+
deleteComment(commentId: ID!, sandboxId: ID!): Comment!
291293

292294
"""
293-
Invite someone to a team
295+
Delete sandboxes
294296
"""
295-
inviteToTeam(teamId: ID!, username: String): Team
296-
setSandboxesPrivacy(privacy: Int, sandboxIds: [ID!]!): [Sandbox!]!
297+
deleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
297298

298299
"""
299-
Convert templates back to sandboxes
300+
Reject an invitation to a team
300301
"""
301-
unmakeSandboxesTemplates(sandboxIds: [ID!]!): [Template!]!
302+
rejectTeamInvitation(teamId: ID!): String
303+
setSandboxesPrivacy(privacy: Int, sandboxIds: [ID!]!): [Sandbox!]!
304+
createSandboxInvitation(
305+
authorization: Authorization!
306+
email: String!
307+
sandboxId: ID!
308+
): Invitation!
302309

303310
"""
304-
Delete sandboxes
311+
Leave a team
305312
"""
306-
deleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
313+
leaveTeam(teamId: ID!): String
307314
changeSandboxInvitationAuthorization(
308315
authorization: Authorization!
309316
invitationId: ID!
310317
sandboxId: ID!
311318
): Invitation!
312-
permanentlyDeleteSandboxes(sandboxIds: [ID!]!): [Sandbox!]!
313-
createComment(
314-
codeReference: CodeReference
315-
content: String!
316-
parentCommentId: ID
317-
sandboxId: ID!
318-
): Comment!
319+
redeemSandboxInvitation(invitationToken: String!, sandboxId: ID!): Invitation!
319320
}
320321

321322
type RootQuery {

0 commit comments

Comments
 (0)