From b5170723629b4f87d4cc2b4c1b35c409768e07de 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 00:44:55 +0500 Subject: [PATCH] =?UTF-8?q?UI:=20stories=20only=20=E2=80=94=20goals=20remo?= =?UTF-8?q?ved=20from=20the=20web=20(project=20page,=20board=20cards,=20ta?= =?UTF-8?q?sk=20page)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Goals stay in the DB and MCP for now (agent context, Bugsink); PEP-66 turns them into epic labels. Co-Authored-By: Claude Opus 5.5 --- apps/web/app/(app)/actions.ts | 13 +------------ apps/web/app/(app)/p/[key]/page.tsx | 28 +++------------------------- apps/web/app/(app)/t/[key]/page.tsx | 4 ---- apps/web/components/Board.tsx | 4 +--- apps/web/lib/queries.ts | 5 ++--- 5 files changed, 7 insertions(+), 47 deletions(-) diff --git a/apps/web/app/(app)/actions.ts b/apps/web/app/(app)/actions.ts index 2aca86d1..2e57b35b 100644 --- a/apps/web/app/(app)/actions.ts +++ b/apps/web/app/(app)/actions.ts @@ -1,7 +1,6 @@ "use server"; import { - createGoal, createTask, getQuestion, getSession, @@ -68,22 +67,12 @@ export async function answerQuestion(f: FormData) { }); } -export async function addGoal(f: FormData) { - const user = await requireUser(); - await attempt(f, async () => { - const p = await projectForUser(db, user.id, Number(str(f, "projectId"))); - if (!str(f, "title")) throw new PeppaError("Нужно название цели"); - await createGoal(db, p.id, str(f, "title"), str(f, "description") || undefined); - }); -} - export async function addTask(f: FormData) { const user = await requireUser(); await attempt(f, async () => { const p = await projectForUser(db, user.id, Number(str(f, "projectId"))); if (!str(f, "title")) throw new PeppaError("Нужно название задачи"); - const goalId = str(f, "goalId") ? Number(str(f, "goalId")) : undefined; - const ref = await createTask(db, { projectId: p.id, goalId, title: str(f, "title"), description: str(f, "description") || undefined }); + const ref = await createTask(db, { projectId: p.id, title: str(f, "title"), description: str(f, "description") || undefined }); return `/t/${ref.key}`; }); } diff --git a/apps/web/app/(app)/p/[key]/page.tsx b/apps/web/app/(app)/p/[key]/page.tsx index a4125674..51a33231 100644 --- a/apps/web/app/(app)/p/[key]/page.tsx +++ b/apps/web/app/(app)/p/[key]/page.tsx @@ -10,14 +10,14 @@ import { Empty, Flash, Key, Notice, PageHeader, Section } from "@/components/com import { IncidentsSection } from "@/components/Incidents"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; -import { Input, NativeSelect, Textarea } from "@/components/ui/input"; +import { Input, Textarea } from "@/components/ui/input"; import { SettingsDialog } from "@/components/SettingsDialog"; import { Workspace } from "@/components/Workspace"; import { requireUser } from "@/lib/auth"; import { cn } from "@/lib/utils"; import { db } from "@/lib/db"; import { board, projectForUserByKey, projectSessions } from "@/lib/queries"; -import { addGoal, addProjectMember, addTask, deployProdAction, grantRepoAccessToMembers, removeProjectMember } from "../../actions"; +import { addProjectMember, addTask, deployProdAction, grantRepoAccessToMembers, removeProjectMember } from "../../actions"; const RELEASE_STATUS: Record = { deploying: { label: "выкатывается", tone: "info" }, @@ -61,7 +61,7 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr const tab = TABS.find((t) => t.id === tabParam)?.id ?? "board"; const p = await projectForUserByKey(user.id, key).catch(() => null); if (!p) notFound(); - const [{ goals, tasks }, sessions, team, repo, incidentSettings, sources, incidents, releases, current] = await Promise.all([ + const [{ tasks }, sessions, team, repo, incidentSettings, sources, incidents, releases, current] = await Promise.all([ board(p.id), projectSessions(p.id), listMembers(db, p), @@ -81,13 +81,11 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr const missingAccess = team.members.some((m) => noRepoAccess(m.login)); const isOwner = p.ownerId === user.id; const back = tab === "board" ? `/p/${p.key}` : `/p/${p.key}?tab=${tab}`; - const goalTitle = new Map(goals.map((g) => [g.id, g.title])); const cards: Card[] = tasks.map((t) => ({ key: `${p.key}-${t.number}`, title: t.title, status: t.status, column: columnOf(t.status), - goal: t.goalId ? (goalTitle.get(t.goalId) ?? null) : null, })); const aside = ( @@ -167,20 +165,6 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr )} {isOwner &&

Участник видит доску и входящие, двигает карточки и отвечает агентам; получает доступ на запись к репозиторию.

} - - -
    - {goals.map((g) => ( -
  • ◎ {g.title}
  • - ))} -
-
- - -