Skip to content

Commit

Permalink
style: workspace item
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Vieira Marcelino authored and nathan-vm committed May 13, 2024
1 parent ac5c602 commit 3d02503
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
31 changes: 0 additions & 31 deletions frontend/src/context/workspaces/types/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
CardActions,
Button,
Grid,
Divider,
Tooltip,
Chip,
useTheme,
Expand Down Expand Up @@ -118,24 +117,6 @@ export const WorkspaceListItem: FC<{
size="small"
/>
</Grid>
<Grid item xs={1}>
<Divider orientation="vertical" sx={{ mr: "16px" }} />
</Grid>
<Grid item xs={6} md={3} sx={{ mr: "auto" }}>
<Typography sx={{ fontSize: 16, my: 0 }} color="text.secondary">
Status:
</Typography>
<Chip
label={
workspace.status === "accepted"
? "Collaborating"
: "Refused"
}
variant="outlined"
color="primary"
size="small"
/>
</Grid>
</Grid>
</CardContent>
</CardActionArea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
CardActions,
Button,
Grid,
Divider,
Tooltip,
Chip,
} from "@mui/material";
Expand Down Expand Up @@ -80,20 +79,6 @@ export const WorkspacePendingListItem: FC<{
size="small"
/>
</Grid>
<Grid item xs={1}>
<Divider orientation="vertical" sx={{ mr: "16px" }} />
</Grid>
<Grid item xs={6} md={3} sx={{ mr: "auto" }}>
<Typography sx={{ fontSize: 16, my: 0 }} color="text.secondary">
Status:
</Typography>
<Chip
label="Pending"
variant="outlined"
color="primary"
size="small"
/>
</Grid>
</Grid>
</CardContent>
<CardActions sx={{ width: "100%" }}>
Expand Down

0 comments on commit 3d02503

Please sign in to comment.