From aecd9363ad3d4d8916837c859856a7b4ba8d34b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=81=D0=B5=D0=BB=D1=8C?= Date: Sat, 14 Nov 2026 23:04:42 +0500 Subject: [PATCH] PEP-86: the Home page shows only the user's own projects Co-Authored-By: Claude Fable 5.2 --- apps/web/components/ProgressOverview.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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) => ( - - ))} -
-
- )}
); }