diff --git a/apps/web/components/ProgressOverview.tsx b/apps/web/components/ProgressOverview.tsx index 88eddb60..d74a196d 100644 --- a/apps/web/components/ProgressOverview.tsx +++ b/apps/web/components/ProgressOverview.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import type { ProgressOverview as Overview, ProjectProgress } from "@peppa/core"; import { AgentBadge } from "@/components/AgentBadge"; -import { Disclosure, Empty, Key } from "@/components/common"; +import { Empty, Key } from "@/components/common"; import { cn } from "@/lib/utils"; const PARTS = [ @@ -85,9 +85,9 @@ function ProjectRow({ p }: { p: ProjectProgress }) { ); } -/** PEP-77: progress of all stories and projects on the Home page. */ +/** PEP-77: progress of the user's own projects on the Home page (other people's projects — on «Проекты», for a superadmin). */ export function ProgressOverview({ data }: { data: Overview }) { - if (!data.mine.length && !data.others.length) return Проектов пока нет — прогресс появится с первой стори.; + if (!data.mine.length) return Проектов пока нет — прогресс появится с первой стори.; const t = data.totals; return (
@@ -108,15 +108,6 @@ export function ProgressOverview({ data }: { data: Overview }) { ))} - {data.others.length > 0 && ( - -
    - {data.others.map((p) => ( - - ))} -
-
- )}
); }