Skip to content

Commit 2830cbb

Browse files
refactor(dashboard): remove unused SEARCH_SANDBOXES_QUERY
1 parent 38566f0 commit 2830cbb

2 files changed

Lines changed: 0 additions & 49 deletions

File tree

packages/app/src/app/graphql/types.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5851,41 +5851,6 @@ export type RecentSandboxesQuery = {
58515851
} | null;
58525852
};
58535853

5854-
export type SearchSandboxesQueryVariables = Exact<{ [key: string]: never }>;
5855-
5856-
export type SearchSandboxesQuery = {
5857-
__typename?: 'RootQueryType';
5858-
me: {
5859-
__typename?: 'CurrentUser';
5860-
id: any;
5861-
sandboxes: Array<{
5862-
__typename?: 'Sandbox';
5863-
id: string;
5864-
alias: string | null;
5865-
title: string | null;
5866-
description: string | null;
5867-
insertedAt: string;
5868-
updatedAt: string;
5869-
removedAt: string | null;
5870-
privacy: number;
5871-
screenshotUrl: string | null;
5872-
teamId: any | null;
5873-
source: { __typename?: 'Source'; template: string | null };
5874-
customTemplate: { __typename?: 'Template'; id: any | null } | null;
5875-
forkedTemplate: {
5876-
__typename?: 'Template';
5877-
id: any | null;
5878-
color: string | null;
5879-
} | null;
5880-
collection: {
5881-
__typename?: 'Collection';
5882-
path: string;
5883-
teamId: any | null;
5884-
} | null;
5885-
}>;
5886-
} | null;
5887-
};
5888-
58895854
export type DeletedSandboxesQueryVariables = Exact<{ [key: string]: never }>;
58905855

58915856
export type DeletedSandboxesQuery = {

packages/app/src/app/pages/Dashboard/queries.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -257,19 +257,6 @@ export const RECENT_SANDBOXES_CONTENT_QUERY = gql`
257257
${RECENT_SANDBOX_FRAGMENT}
258258
`;
259259

260-
export const SEARCH_SANDBOXES_QUERY = gql`
261-
query SearchSandboxes {
262-
me {
263-
id
264-
265-
sandboxes(orderBy: { field: "updated_at", direction: DESC }) {
266-
...Sandbox
267-
}
268-
}
269-
}
270-
${SANDBOX_FRAGMENT}
271-
`;
272-
273260
export const DELETED_SANDBOXES_CONTENT_QUERY = gql`
274261
query DeletedSandboxes {
275262
me {
@@ -380,7 +367,6 @@ export function deleteSandboxes(selectedSandboxes, collections = []) {
380367
'DeletedSandboxes',
381368
'PathedSandboxes',
382369
'RecentSandboxes',
383-
'SearchSandboxes',
384370
],
385371
update: cache => {
386372
if (collections) {

0 commit comments

Comments
 (0)