diff --git a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.theme.ts b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.theme.ts index db662ebc..117a2cde 100644 --- a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.theme.ts +++ b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.theme.ts @@ -9,16 +9,18 @@ export const projectCardTheme = tv({ 'flex', 'flex-col', 'group', + 'cursor-pointer', ], upperContent: ['px-4', 'py-4', 'flex', 'items-start', 'gap-3', 'relative'], - content: ['flex', 'flex-col', 'gap-1', 'flex-1'], + content: ['flex', 'flex-col', 'gap-1', 'flex-1', 'overflow-hidden'], title: [ 'text-sm', 'font-medium', 'text-elements-high-em', 'tracking-[-0.006em]', + 'truncate', ], - description: ['text-xs', 'text-elements-low-em'], + description: ['text-xs', 'text-elements-low-em', 'truncate'], icons: ['flex', 'items-center', 'gap-1'], lowerContent: [ 'transition-colors', diff --git a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx index 1c91e51d..5a0ff9b5 100644 --- a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx +++ b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx @@ -1,12 +1,18 @@ +import { + Menu, + MenuHandler, + MenuItem, + MenuList, +} from '@material-tailwind/react'; import React, { ComponentPropsWithoutRef, MouseEvent, useCallback, } from 'react'; -import { ProjectCardTheme, projectCardTheme } from './ProjectCard.theme'; +import { useNavigate } from 'react-router-dom'; import { Project } from 'gql-client'; +import { Avatar } from 'components/shared/Avatar'; import { Button } from 'components/shared/Button'; -import { WavyBorder } from 'components/shared/WavyBorder'; import { BranchIcon, ClockIcon, @@ -14,16 +20,11 @@ import { HorizontalDotIcon, WarningDiamondIcon, } from 'components/shared/CustomIcon'; +import { Tooltip } from 'components/shared/Tooltip'; +import { WavyBorder } from 'components/shared/WavyBorder'; import { relativeTimeMs } from 'utils/time'; -import { useNavigate } from 'react-router-dom'; -import { Avatar } from 'components/shared/Avatar'; import { getInitials } from 'utils/geInitials'; -import { - Menu, - MenuHandler, - MenuItem, - MenuList, -} from '@material-tailwind/react'; +import { ProjectCardTheme, projectCardTheme } from './ProjectCard.theme'; export interface ProjectCardProps extends ComponentPropsWithoutRef<'div'>, @@ -72,7 +73,9 @@ export const ProjectCard = ({ /> {/* Title and website */}
{project.name}
+{project.name}
+{project.deployments[0]?.domain?.name ?? 'No domain'}
diff --git a/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx b/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx index 14af57e6..5b96ce37 100644 --- a/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx +++ b/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx @@ -3,17 +3,17 @@ import { Octokit } from 'octokit'; import assert from 'assert'; import { useDebounce } from 'usehooks-ts'; -import { Button, Typography } from '@material-tailwind/react'; - import { ProjectRepoCard } from 'components/projects/create/ProjectRepoCard'; import { GitOrgDetails, GitRepositoryDetails } from 'types'; import { ChevronGrabberHorizontal, GithubIcon, + RefreshIcon, SearchIcon, } from 'components/shared/CustomIcon'; import { Select, SelectOption } from 'components/shared/Select'; import { Input } from 'components/shared/Input'; +import { Button } from 'components/shared/Button'; const DEFAULT_SEARCHED_REPO = ''; const REPOS_PER_PAGE = 5; @@ -160,18 +160,16 @@ export const RepositoryList = ({ octokit }: RepositoryListProps) => { ))}No repository found
+ } + size="sm" + onClick={handleResetFilters} + > + Reset filters +