diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a523b9f9..ac6ffd4f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -35,7 +35,10 @@ jobs: - name: tools run: | apt-get update -qq && apt-get install -y -qq tmux >/dev/null - npm install -g pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null + # Job-local prefix: the node toolcache is shared between jobs running at the same time + # (PR + push of one commit), and two global installs into it collide (ENOTEMPTY/EEXIST). + npm install -g --prefix "$RUNNER_TEMP/tools" pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null + echo "$RUNNER_TEMP/tools/bin" >> "$GITHUB_PATH" - id: install name: install run: bash .gitea/peppa-check.sh install 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 &&

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

} - - - -
- - -