diff --git a/desktop/src/features/projects/ui/ProjectsView.tsx b/desktop/src/features/projects/ui/ProjectsView.tsx index be8a06068..53e433722 100644 --- a/desktop/src/features/projects/ui/ProjectsView.tsx +++ b/desktop/src/features/projects/ui/ProjectsView.tsx @@ -2,7 +2,6 @@ import { CircleDot, FolderGit2, GitCommit, - GitFork, GitPullRequest, MoreHorizontal, TerminalSquare, @@ -40,8 +39,6 @@ import { import { hasLocalCheckout } from "@/features/projects/lib/projectLocalRepos"; import { formatExactTimestamp, - getActivityLabel, - getClonePathLabel, getProjectUpdatedAt, isProjectMine, isProjectOwnedByCurrentUser, @@ -98,30 +95,6 @@ import { UserAvatar } from "@/shared/ui/UserAvatar"; const MANY_PROJECTS_THRESHOLD = 12; -const CLONE_PATH_TAIL_CHARS = 14; - -function ClonePathLabel({ project }: { project: Project }) { - const label = getClonePathLabel(project); - const fullUrl = project.cloneUrls[0] ?? label; - const splitAt = Math.max(0, label.length - CLONE_PATH_TAIL_CHARS); - const head = label.slice(0, splitAt); - const tail = label.slice(splitAt); - - return ( - - - - {head} - {tail} - - - - {fullUrl} - - - ); -} - function ProjectUpdatedLabel({ profiles, project, @@ -547,33 +520,43 @@ function ProjectListRow({ data-testid={`project-row-${project.dtag}`} > -
-
-
- - - {project.name} - - -
-

- {project.description || "A shared space for internal git work."} -

-
- - +
+
+ + + +
+
+ + {project.name} + + +
+

+ {project.description || "A shared space for internal git work."} +

-
-

- {getActivityLabel(summary)} -

+
+
+ +
+ +
+
+
+ +