From 3d02503d6fd4f9fb905e7da916aa8dc492113400 Mon Sep 17 00:00:00 2001 From: Nathan Vieira Marcelino Date: Mon, 13 May 2024 10:55:53 -0300 Subject: [PATCH] style: workspace item --- .../context/workspaces/types/workspaces.ts | 31 ------------------- .../workspaces/WorkspaceListItem.tsx | 19 ------------ .../workspaces/WorkspacePendingListItem.tsx | 15 --------- 3 files changed, 65 deletions(-) diff --git a/frontend/src/context/workspaces/types/workspaces.ts b/frontend/src/context/workspaces/types/workspaces.ts index f7e5c482..253b33c2 100644 --- a/frontend/src/context/workspaces/types/workspaces.ts +++ b/frontend/src/context/workspaces/types/workspaces.ts @@ -4,7 +4,6 @@ export enum repositorySource { github = "github", } -// Workspace status enum with values (pending, accepted and rejected) export enum workspaceStatus { PENDING = "pending", ACCEPTED = "accepted", @@ -18,33 +17,3 @@ export interface WorkspaceSummary { status: workspaceStatus; github_access_token_filled: boolean; } - -export interface WorkspaceDetails { - id: string; - workspace_name: string; - github_access_token_filled: string; -} - -export interface IGetWorkspaceUsersResponse { - data: [ - { - user_id: number; - user_email: string; - user_permission: string; - status: workspaceStatus; - }, - ]; - metadata: PaginationMetadata; -} - -export interface IPostWorkspaceRepositoryPayload { - workspace_id: string; - source: repositorySource | string; - path: string; - version: string; - url: string; -} -export interface IPostWorkspaceRepositoryParams { - id: string; - data: IPostWorkspaceRepositoryPayload; -} diff --git a/frontend/src/features/workspaces/components/workspaces/WorkspaceListItem.tsx b/frontend/src/features/workspaces/components/workspaces/WorkspaceListItem.tsx index d64ef36e..a2b6f38c 100644 --- a/frontend/src/features/workspaces/components/workspaces/WorkspaceListItem.tsx +++ b/frontend/src/features/workspaces/components/workspaces/WorkspaceListItem.tsx @@ -12,7 +12,6 @@ import { CardActions, Button, Grid, - Divider, Tooltip, Chip, useTheme, @@ -118,24 +117,6 @@ export const WorkspaceListItem: FC<{ size="small" /> - - - - - - Status: - - - diff --git a/frontend/src/features/workspaces/components/workspaces/WorkspacePendingListItem.tsx b/frontend/src/features/workspaces/components/workspaces/WorkspacePendingListItem.tsx index 7b731abe..ac0dd298 100644 --- a/frontend/src/features/workspaces/components/workspaces/WorkspacePendingListItem.tsx +++ b/frontend/src/features/workspaces/components/workspaces/WorkspacePendingListItem.tsx @@ -9,7 +9,6 @@ import { CardActions, Button, Grid, - Divider, Tooltip, Chip, } from "@mui/material"; @@ -80,20 +79,6 @@ export const WorkspacePendingListItem: FC<{ size="small" /> - - - - - - Status: - - -