+
+
+
{TOOLS.map(([name, what]) => (
-
- | {name} |
- {what} |
+
+ | {name} |
+ {what} |
))}
+
+
- CI/CD
-
- Каждый PR агента проверяет Gitea Actions: install, lint,{" "}
- typecheck, test, build. Команды —
- в .peppa/project.json → checks (заполняет агент на первой задаче), workflow приходит из
- шаблона; в старый проект — командой peppa ci connect KEY (PR от Пеппы). Результат виден в
+
+
+ Каждый PR агента проверяет Gitea Actions: install, lint,{" "}
+ typecheck, test, build. Команды —
+ в .peppa/project.json → checks (заполняет агент на первой задаче), workflow приходит из
+ шаблона; в старый проект — командой peppa ci connect KEY (PR от Пеппы). Результат виден в
карточке задачи («Проверки: 4 из 4 пройдены»). Красная проверка уходит агенту с хвостом лога, после 3 красных
прогонов подряд Пеппа спросит вас. В ревью задача попадает и «Принять» мержит PR только с зелёными проверками и без
- конфликтов. PR, меняющий конвейер (.gitea/, checks,{" "}
- deploy), сам не мержится никогда.
+ конфликтов. PR, меняющий конвейер (.gitea/, checks,{" "}
+ deploy), сам не мержится никогда.
-
- Деплой — deploy в project.json и Dockerfile (заготовки в{" "}
- deploy/): PR получает preview slug-prN.telecom.quest (удаляется при
- закрытии), мерж выкатывает staging slug-staging.telecom.quest, прод{" "}
- slug-prod.telecom.quest — по кнопке «Выкатить в прод» (страница проекта, Telegram, MCP{" "}
- deploy). После каждого деплоя — проверка /healthz до 2 минут; не
+
+ Деплой — deploy в project.json и Dockerfile (заготовки в{" "}
+ deploy/): PR получает preview slug-prN.telecom.quest (удаляется при
+ закрытии), мерж выкатывает staging slug-staging.telecom.quest, прод{" "}
+ slug-prod.telecom.quest — по кнопке «Выкатить в прод» (страница проекта, Telegram, MCP{" "}
+ deploy). После каждого деплоя — проверка /healthz до 2 минут; не
прошла — откат на предыдущий образ и сообщение вам. Релизы — на странице проекта.
+
-
Telegram
-
+
+
Привяжите свой Telegram в Настройках: бот присылает вопросы агентов из ваших и общих проектов и «готово к ревью» с
кнопками; ответ реплаем уходит прямо в сессию агента. Новые ошибки из прода приходят туда же — по политике
проекта: сообщением, задачей или с кнопками «В бэклог / В работу / Игнорировать».
-
+
+
);
}
diff --git a/apps/web/app/(app)/p/[key]/page.tsx b/apps/web/app/(app)/p/[key]/page.tsx
index f77a7464..1ff408b1 100644
--- a/apps/web/app/(app)/p/[key]/page.tsx
+++ b/apps/web/app/(app)/p/[key]/page.tsx
@@ -1,25 +1,50 @@
import { notFound } from "next/navigation";
-import { AutoRefresh } from "@/components/AutoRefresh";
-import { Flash, Notice, SessionCard } from "@/components/ui";
-import { Board, type Card } from "@/components/Board";
-import { columnOf, currentReleases, describeRepo, listReleases, type Release } from "@peppa/runner";
-import { requireUser } from "@/lib/auth";
-import { board, projectForUserByKey, projectSessions } from "@/lib/queries";
+import { ExternalLink, Plus, Rocket, Target } from "lucide-react";
+import { columnOf, currentReleases, describeRepo, listReleases, bugsinkWebhookBase, type Release } from "@peppa/runner";
import { getIncidentSettings, listErrorSources, listIncidents, listMembers, repoAudience, repoVisibilityLabel } from "@peppa/core";
-import { bugsinkWebhookBase } from "@peppa/runner";
+import { AutoRefresh } from "@/components/AutoRefresh";
+import { PanelSection } from "@/components/ActivityAside";
+import { Board, type Card } from "@/components/Board";
+import { Hidden, SessionCard } from "@/components/cards";
+import { Disclosure, Empty, Flash, Key, Notice, PageHeader, Section } from "@/components/common";
import { IncidentsSection } from "@/components/Incidents";
-import { db } from "@/lib/db";
-import { addGoal, addProjectMember, addTask, deployProdAction, grantRepoAccessToMembers, removeProjectMember } from "../../actions";
+import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
+import { Input, Textarea } from "@/components/ui/input";
import { Workspace } from "@/components/Workspace";
+import { requireUser } from "@/lib/auth";
+import { db } from "@/lib/db";
+import { board, projectForUserByKey, projectSessions } from "@/lib/queries";
+import { addGoal, addProjectMember, addTask, deployProdAction, grantRepoAccessToMembers, removeProjectMember } from "../../actions";
-const RELEASE_STATUS: Record = {
- deploying: "⏳ выкатывается",
- healthy: "✅ работает",
- rolled_back: "↩️ откат",
- failed: "❌ не поднялся",
- removed: "🗑 удалён",
+const RELEASE_STATUS: Record = {
+ deploying: { label: "выкатывается", tone: "info" },
+ healthy: { label: "работает", tone: "ok" },
+ rolled_back: { label: "откат", tone: "warn" },
+ failed: { label: "не поднялся", tone: "danger" },
+ removed: { label: "удалён", tone: "muted" },
};
+function EnvLine({ name, r }: { name: string; r: Release | null | undefined }) {
+ return (
+
+
{name}
+ {r ? (
+
+ {r.sha.slice(0, 7)}
+ {r.host && (
+
+ {r.host}
+
+ )}
+
+ ) : (
+
нет
+ )}
+
+ );
+}
+
export default async function ProjectPage({ params, searchParams }: { params: Promise<{ key: string }>; searchParams: Promise<{ error?: string; created?: string }> }) {
const user = await requireUser();
const { key } = await params;
@@ -53,83 +78,197 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr
column: columnOf(t.status),
goal: t.goalId ? (goalTitle.get(t.goalId) ?? null) : null,
}));
+
+ const aside = (
+
+
+
+ - Где
+ -
+ {repo.fullName}
+
+ - Пространство
+ -
+ {p.giteaOwner}
+ {repo.ownerKind && ` — ${repo.ownerKind === "org" ? "организация" : "личное"}`}
+
+ - Видимость
+ - {repoVisibilityLabel(repo.private)}
+ - Кто видит
+ - {repoAudience(repo)}
+ - Рабочая копия
+ - {p.workspacePath}
+
+
+
+
+
+
+ -
+ {team.owner?.login ?? "—"}
+ владелец · агенты работают на его подписке Claude
+
+ {team.members.map((m) => (
+ -
+
+ {m.login}
+ участник{noRepoAccess(m.login) && " · нет доступа к репозиторию"}
+
+ {(isOwner || m.id === user.id) && (
+
+ )}
+
+ ))}
+ {team.invites.map((login) => (
+ -
+
+ {login}
+ приглашён · появится после первого входа в Пеппу
+
+ {isOwner && (
+
+ )}
+
+ ))}
+
+ {isOwner && (
+
+ )}
+ {isOwner && missingAccess && (
+
+ )}
+ {isOwner && Участник видит доску и входящие, двигает карточки и отвечает агентам; получает доступ на запись к репозиторию.
}
+
+
+ );
+
return (
-
+
{created && !error && (
- Репозиторий создан: {repo.fullName} ({repoVisibilityLabel(repo.private)}).{" "}
- Открыть в Gitea
+ Репозиторий создан: {repo.fullName} ({repoVisibilityLabel(repo.private)}).
+
)}
-
- {p.key} {p.name}
-
-
- {repo.fullName} · {repoVisibilityLabel(repo.private)}
-
+ Проекты}
+ title={
+ <>
+ {p.key} {p.name}
+ >
+ }
+ >
+ {repo.fullName} · {repoVisibilityLabel(repo.private)}
+
- {groups.map(({ goal }) => (
-
- + Задача{goal ? ` · 🎯 ${goal.title}` : " без цели"}
-
);
}
diff --git a/apps/web/app/(app)/page.tsx b/apps/web/app/(app)/page.tsx
index 46337a96..4a9d6330 100644
--- a/apps/web/app/(app)/page.tsx
+++ b/apps/web/app/(app)/page.tsx
@@ -1,12 +1,12 @@
-import Link from "next/link";
import { listUserProjects } from "@peppa/core";
import { AutoRefresh } from "@/components/AutoRefresh";
-import { Flash, ProjectList, QuestionCard, SessionCard } from "@/components/ui";
+import { ActivityAside } from "@/components/ActivityAside";
+import { ProjectList, QuestionCard, SessionCard } from "@/components/cards";
+import { Empty, Flash, MoreLink, PageHeader, Section } from "@/components/common";
+import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { activeSessions, inbox } from "@/lib/queries";
-import { Workspace } from "@/components/Workspace";
-import { ActivityAside } from "@/components/ActivityAside";
export default async function Home({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
const user = await requireUser();
@@ -16,23 +16,16 @@ export default async function Home({ searchParams }: { searchParams: Promise<{ e
}>
- Главная
-
- Вопросы агентов {items.length > 0 && {items.length}}
- {items.length === 0 ? Агентам от тебя ничего не нужно.
: items.map((q) => )}
-
-
-
- Активные раннеры все раннеры →
-
- {sessions.length === 0 ? Сейчас ничего не запущено.
: sessions.map((s) => )}
-
-
-
- Мои проекты все проекты →
-
+ {items.length ? "Агенты ждут твоего решения — ответь здесь, в Telegram или через MCP." : "Всё идёт само: агентам от тебя ничего не нужно."}
+
+ {items.length === 0 ? Агентам от тебя ничего не нужно. : items.map((q) => )}
+
+ все раннеры}>
+ {sessions.length === 0 ? Сейчас ничего не запущено. : sessions.map((s) => )}
+
+
+
);
}
diff --git a/apps/web/app/(app)/projects/new/page.tsx b/apps/web/app/(app)/projects/new/page.tsx
index 520a6fa6..d216fda7 100644
--- a/apps/web/app/(app)/projects/new/page.tsx
+++ b/apps/web/app/(app)/projects/new/page.tsx
@@ -1,10 +1,22 @@
import { giteaForUser, type GiteaOrg } from "@peppa/core";
import { loadEnv } from "@peppa/shared";
-import { Flash } from "@/components/ui";
+import { Flash, PageHeader } from "@/components/common";
+import { Hidden } from "@/components/cards";
+import { Button } from "@/components/ui/button";
+import { Input, Label, NativeSelect } from "@/components/ui/input";
+import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { createProjectAction } from "../../actions";
-import { Workspace } from "@/components/Workspace";
+
+function Choice({ name, value, checked, children }: { name: string; value: string; checked?: boolean; children: React.ReactNode }) {
+ return (
+
+ );
+}
export default async function NewProject({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
const user = await requireUser();
@@ -19,64 +31,56 @@ export default async function NewProject({ searchParams }: { searchParams: Promi
}
return (
-
+
);
}
diff --git a/apps/web/app/(app)/projects/page.tsx b/apps/web/app/(app)/projects/page.tsx
index 4fc5d361..d5cddd57 100644
--- a/apps/web/app/(app)/projects/page.tsx
+++ b/apps/web/app/(app)/projects/page.tsx
@@ -1,9 +1,12 @@
import Link from "next/link";
+import { Plus } from "lucide-react";
import { listUserProjects } from "@peppa/core";
-import { Flash, ProjectList } from "@/components/ui";
+import { ProjectList } from "@/components/cards";
+import { Flash, PageHeader } from "@/components/common";
+import { Button } from "@/components/ui/button";
+import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
-import { Workspace } from "@/components/Workspace";
export default async function Projects({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
const user = await requireUser();
@@ -12,12 +15,19 @@ export default async function Projects({ searchParams }: { searchParams: Promise
return (
-
- Проекты{" "}
-
- Новый проект
-
-
+
+
+
+ Новый проект
+
+
+ }
+ >
+ Свои и общие проекты: доска задач, релизы, ошибки из прода, участники.
+
);
diff --git a/apps/web/app/(app)/runners/page.tsx b/apps/web/app/(app)/runners/page.tsx
index 7f90ce4b..9644c1b3 100644
--- a/apps/web/app/(app)/runners/page.tsx
+++ b/apps/web/app/(app)/runners/page.tsx
@@ -1,10 +1,12 @@
import Link from "next/link";
import { listUserSessions, RUNNER_FILTERS, type RunnerFilter } from "@peppa/core";
import { AutoRefresh } from "@/components/AutoRefresh";
-import { Flash, SessionCard } from "@/components/ui";
+import { SessionCard } from "@/components/cards";
+import { Empty, Flash, PageHeader } from "@/components/common";
+import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
-import { Workspace } from "@/components/Workspace";
+import { cn } from "@/lib/utils";
const FILTERS: Array<{ key: RunnerFilter | undefined; label: string }> = [
{ key: undefined, label: "Все" },
@@ -26,16 +28,22 @@ export default async function Runners({ searchParams }: { searchParams: Promise<
- Раннеры
- Агенты в tmux по задачам твоих и общих проектов. Подключиться к раннеру — команда tmux attach на машине Пеппы.
-
);
}
diff --git a/apps/web/app/(app)/settings/page.tsx b/apps/web/app/(app)/settings/page.tsx
index 13c3717c..7cf42ad8 100644
--- a/apps/web/app/(app)/settings/page.tsx
+++ b/apps/web/app/(app)/settings/page.tsx
@@ -1,10 +1,30 @@
+import { ExternalLink } from "lucide-react";
import { connectedApps } from "@peppa/core";
-import { ago, Flash } from "@/components/ui";
+import { pendingClaudeSetup } from "@peppa/runner";
+import { Hidden } from "@/components/cards";
+import { ago, Empty, Flash, Notice, PageHeader, Section } from "@/components/common";
+import { Button } from "@/components/ui/button";
+import { Card } from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Workspace } from "@/components/Workspace";
import { publicOrigin, requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
-import { pendingClaudeSetup } from "@peppa/runner";
import { cancelClaude, connectClaude, disconnectClaude, pairTelegram, revokeConnectedApp, submitClaudeCode, unpairTelegramAction } from "../actions";
-import { Workspace } from "@/components/Workspace";
+
+const back = { back: "/settings" };
+
+/** A connected thing: title + details on the left, actions on the right. */
+function Row({ title, children, actions }: { title: React.ReactNode; children?: React.ReactNode; actions?: React.ReactNode }) {
+ return (
+
+
+
{title}
+ {children &&
{children}
}
+
+ {actions && {actions}
}
+
+ );
+}
export default async function Settings({ searchParams }: { searchParams: Promise<{ error?: string; claude?: string }> }) {
const user = await requireUser();
@@ -14,106 +34,118 @@ export default async function Settings({ searchParams }: { searchParams: Promise
const origin = await publicOrigin();
return (
-
-
- Настройки
- Claude
- {claude === "connected" && Claude подключён ✅
}
- {setup ? (
-
-
- 1. Откройте ссылку на любом устройстве и войдите в аккаунт Claude (нужна подписка):
-
-
Войти в Claude ↗
-
2. Claude покажет код — вставьте его сюда:
-
-
-
- ) : user.claudeTokenEnc ? (
-
-
-
Claude подключён
-
-
-
-
- ) : (
-
-
- Агенты ваших проектов запускаются как Claude Code. Подключите свой аккаунт Claude — Пеппа получит годовой
- токен через claude setup-token, вход делаете вы сами по ссылке.
+
+ ) : (
+
+
+
+
+ }
+ >
+ Агенты ваших проектов запускаются как Claude Code. Подключите свой аккаунт Claude — Пеппа получит годовой токен через{" "}
+ claude setup-token, вход делаете вы сами по ссылке.
+
+ )}
+
+
+ {user.telegramChatId ? (
+
+
+
+
+ }
+ >
+ Вопросы агентов из ваших и общих проектов приходят в этот чат.
+
+ ) : (
+
+
+
+
+ }
+ >
+ Бот присылает вопросы агентов и «готово к ревью» с кнопками. Нажмите кнопку — откроется бот, в нём нажмите Start.
+
+ )}
+
+
+ Адрес сервера — подключите его как MCP-коннектор с авторизацией OAuth. Клиент зарегистрируется сам, вы подтвердите доступ на экране Пеппы.
+ {origin}/mcp
+
+ Как подключить и что спрашивать — в Помощи.
-
-
- )}
-
Telegram
- {user.telegramChatId ? (
-
-
-
Telegram привязан{user.telegramUsername ? ` (@${user.telegramUsername})` : ""}
-
Вопросы агентов из ваших и общих проектов приходят в этот чат.
-
-
-
- ) : (
-
-
- Бот присылает вопросы агентов и «готово к ревью» с кнопками. Нажмите кнопку — откроется бот, в нём нажмите Start.
-
-
-
- )}
-
MCP для ChatGPT и других клиентов
-
- Адрес сервера — подключите его как MCP-коннектор с авторизацией OAuth. Клиент
- зарегистрируется сам, вы подтвердите доступ на экране Пеппы.
-
-
{origin}/mcp
-
Как подключить и что спрашивать — в Помощи.
-
Подключённые приложения
- {apps.length === 0 ? (
-
Нет подключённых приложений.
- ) : (
- apps.map((a) => (
-
-
-
{a.name}
-
с {a.since.toLocaleDateString("ru-RU")} · последний запрос {ago(a.lastUsedAt)}
-
-
-
- ))
- )}
-
+
+
+ {apps.length === 0 ? (
+ Нет подключённых приложений.
+ ) : (
+ apps.map((a) => (
+
+
+
+
+ }
+ >
+ с {a.since.toLocaleDateString("ru-RU")} · последний запрос {ago(a.lastUsedAt)}
+
+ ))
+ )}
+
+
);
}
diff --git a/apps/web/app/(app)/t/[key]/page.tsx b/apps/web/app/(app)/t/[key]/page.tsx
index 93f4e933..c95764ca 100644
--- a/apps/web/app/(app)/t/[key]/page.tsx
+++ b/apps/web/app/(app)/t/[key]/page.tsx
@@ -1,15 +1,22 @@
import Link from "next/link";
import { notFound } from "next/navigation";
-import { AutoRefresh } from "@/components/AutoRefresh";
-import { ago, Badge, Flash, QuestionCard, SessionCard } from "@/components/ui";
-import { requireUser } from "@/lib/auth";
-import { openspecArtifacts, taskActivity, taskForUser } from "@/lib/queries";
-import { db } from "@/lib/db";
+import { eq } from "drizzle-orm";
+import { CircleCheck, CircleX, GitPullRequest, Hourglass, Play } from "lucide-react";
import { goals } from "@peppa/db";
import { taskCiSummary } from "@peppa/core";
-import { eq } from "drizzle-orm";
-import { startTaskSession } from "../../actions";
+import { AutoRefresh } from "@/components/AutoRefresh";
+import { PanelSection } from "@/components/ActivityAside";
+import { Hidden, QuestionCard, SessionCard } from "@/components/cards";
+import { ago, Disclosure, Empty, Flash, PageHeader, Section, StatusBadge } from "@/components/common";
+import { Button } from "@/components/ui/button";
+import { Input, NativeSelect } from "@/components/ui/input";
import { Workspace } from "@/components/Workspace";
+import { requireUser } from "@/lib/auth";
+import { db } from "@/lib/db";
+import { openspecArtifacts, taskActivity, taskForUser } from "@/lib/queries";
+import { startTaskSession } from "../../actions";
+
+const CI_ICON = { success: , failure: , pending: };
export default async function TaskPage({ params, searchParams }: { params: Promise<{ key: string }>; searchParams: Promise<{ error?: string }> }) {
const user = await requireUser();
@@ -23,82 +30,108 @@ export default async function TaskPage({ params, searchParams }: { params: Promi
const artifacts = openspecArtifacts(project, task.openspecChange);
const ci = await taskCiSummary(db, ref);
const back = `/t/${ref.key}`;
+
+ const aside = (
+
+
+
+ {CI_ICON[ci.state as keyof typeof CI_ICON]}
+ {ci.runUrl ?
{ci.label} : ci.label}
+ {ci.sha &&
{ci.sha.slice(0, 7)}}
+
+ {task.ciAttempts > 0 && красных подряд: {task.ciAttempts}
}
+ {ci.failed.map((f) => (
+
+
+ {f.check}
+ {f.runUrl && лог}
+
+ }
+ >
+ {f.logTail && {f.logTail.split("\n").slice(-60).join("\n")}}
+
+ ))}
+
+
+ {events.length === 0 ? (
+ Событий нет.
+ ) : (
+
+ {events.map((e) => (
+ -
+ {ago(e.createdAt)} {e.type}{" "}
+ {e.type === "progress" ? (e.payload as { text: string }).text : e.type === "task_updated" ? JSON.stringify((e.payload as { to: unknown }).to) : ""}
+
+ ))}
+
+ )}
+
+
+ );
+
return (
-
+
-
- {project.name}
- {goal && <> · 🎯 {goal.title}>}
-
-
- {ref.key} {task.title}
-
- {task.prUrl && PR
}
-
- Проверки
-
- {ci.state === "success" ? "✅ " : ci.state === "failure" ? "❌ " : ci.state === "pending" ? "⏳ " : ""}
- {ci.runUrl ? {ci.label} : ci.label}
- {ci.sha && · {ci.sha.slice(0, 7)}}
- {task.ciAttempts > 0 && · красных подряд: {task.ciAttempts}}
-
- {ci.failed.map((f) => (
-
-
- ❌ {f.check} {f.runUrl && лог}
-
- {f.logTail && {f.logTail.split("\n").slice(-60).join("\n")}}
-
- ))}
-
- {task.description || Без описания}
+
+ {project.name}
+ {goal && · ◎ {goal.title}}
+ >
+ }
+ title={
+ <>
+ {ref.key} {task.title}
+ >
+ }
+ actions={
+ task.prUrl && (
+
+ )
+ }
+ />
+ {task.description || Без описания}
-
+
-
- Вопросы
- {questions.length === 0 ? Вопросов не было.
: questions.map((q) => )}
-
+
+ {questions.length === 0 ? Вопросов не было. : questions.map((q) => )}
+
-
- OpenSpec {task.openspecChange && {task.openspecChange}}
+ OpenSpec {task.openspecChange && {task.openspecChange}}>}>
{artifacts?.length ? (
artifacts.map((a) => (
-
- {a.name}
- {a.text}
-
+ {a.name}}>
+ {a.text}
+
))
) : (
- Change ещё не создан.
+ Change ещё не создан.
)}
-
-
-
- События
-
- {events.map((e) => (
- -
- {ago(e.createdAt)} {e.type}{" "}
- {e.type === "progress" ? (e.payload as { text: string }).text : e.type === "task_updated" ? JSON.stringify((e.payload as { to: unknown }).to) : ""}
-
- ))}
-
-
+
);
}
diff --git a/apps/web/app/app.css b/apps/web/app/app.css
index bc13d895..f150bd47 100644
--- a/apps/web/app/app.css
+++ b/apps/web/app/app.css
@@ -1,5 +1,4 @@
@import "tailwindcss";
-@import "./legacy.css" layer(base);
/* Theme tokens (shadcn/ui naming): light in :root, dark — the default — in .dark (PEP-38). */
@custom-variant dark (&:where(.dark, .dark *));
diff --git a/apps/web/app/legacy.css b/apps/web/app/legacy.css
deleted file mode 100644
index 3cfee729..00000000
--- a/apps/web/app/legacy.css
+++ /dev/null
@@ -1,132 +0,0 @@
-/* Pre-PEP-38 page styles, imported into the `base` layer so Tailwind utilities win. Removed page by page in stage 2. */
-
-a { color: var(--primary); text-decoration: none; }
-a:hover { text-decoration: underline; }
-h1 { font-size: 1.5rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
-h2 { font-size: 1.1rem; margin: 28px 0 10px; }
-.mono, code, pre { font-family: var(--font-mono); font-size: 0.9em; }
-.muted { color: var(--muted-foreground); }
-.empty { color: var(--muted-foreground); padding: 12px 0; }
-
-h2 .more { font-size: 0.85rem; font-weight: 400; margin-left: 8px; }
-.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
-.filters a { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--foreground); background: var(--card); }
-.filters a:hover { text-decoration: none; border-color: var(--muted-foreground); }
-.filters a.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
-.session header.row { flex-wrap: wrap; row-gap: 2px; }
-.session header .mono { white-space: nowrap; }
-.session .title { flex: 1 1 12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.narrow { max-width: 560px; }
-.crumbs { margin: 0 0 4px; color: var(--muted-foreground); }
-.desc { white-space: pre-wrap; }
-
-.card {
- background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
- padding: 14px 16px; margin: 10px 0;
-}
-.q { border-left: 4px solid var(--info); }
-.q-approval { border-left-color: var(--primary); }
-.q-permission { border-left-color: var(--warn); }
-.q-attention { border-left-color: var(--ok); }
-.q.answered { opacity: 0.7; border-left-color: var(--border); }
-.kind { font-weight: 600; }
-.qtext { white-space: pre-wrap; margin: 8px 0; max-height: 18em; overflow: auto; }
-.attach { display: block; color: var(--muted-foreground); margin: 6px 0; overflow-x: auto; }
-.count { background: var(--primary); color: var(--primary-foreground); border-radius: 999px; font-size: 0.8rem; padding: 1px 9px; }
-
-.row { display: flex; gap: 8px; align-items: center; }
-.row.wrap { flex-wrap: wrap; }
-.grow { flex: 1; min-width: 0; }
-.row > input[type=text] { flex: 1; min-width: 0; }
-.stack { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
-label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
-label.inline { flex-direction: row; align-items: center; font-weight: 400; }
-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; }
-.answer { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
-
-input[type=text], textarea, select {
- font: inherit; color: var(--foreground); background: var(--background);
- border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; width: 100%;
-}
-input.short { width: 8em; }
-textarea { resize: vertical; }
-input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
-
-button, .button {
- font: inherit; cursor: pointer; border-radius: 8px; padding: 7px 14px;
- border: 1px solid var(--border); background: var(--card); color: var(--foreground); white-space: nowrap;
- display: inline-block;
-}
-button:hover, .button:hover { border-color: var(--muted-foreground); text-decoration: none; }
-.primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
-.danger { color: var(--danger); }
-button.link { border: 0; background: none; padding: 0; color: var(--muted-foreground); }
-
-.badge {
- font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 2px 9px;
- background: var(--muted); color: var(--muted-foreground); white-space: nowrap;
-}
-.s-in_progress, .s-running { color: var(--info); }
-.s-awaiting_approval, .s-waiting_input, .s-proposing { color: var(--primary); }
-.s-review, .s-done { color: var(--ok); }
-.s-blocked, .s-failed, .s-stalled, .s-rate_limited { color: var(--danger); }
-
-.notice { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
-.flash { background: color-mix(in srgb, var(--danger) 12%, var(--card)); border: 1px solid var(--danger); border-radius: var(--radius); padding: 10px 14px; }
-
-ul.tasks, ul.projects, ul.events { list-style: none; padding: 0; margin: 0; }
-ul.tasks li, ul.projects li {
- display: flex; gap: 10px; align-items: center; justify-content: space-between;
- padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin: 6px 0;
-}
-ul.tasks li a, ul.projects li a { color: var(--foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
-ul.events li { padding: 3px 0; border-bottom: 1px dashed var(--border); overflow-wrap: anywhere; }
-details { margin: 8px 0; }
-summary { cursor: pointer; color: var(--primary); }
-pre.md {
- white-space: pre-wrap; background: var(--muted); border-radius: 8px; padding: 12px;
- max-height: 32em; overflow: auto;
-}
-
-.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
-.board.busy { opacity: 0.6; pointer-events: none; }
-.col { background: color-mix(in srgb, var(--border) 35%, var(--background)); border-radius: var(--radius); padding: 8px; min-height: 120px; }
-.col.over { outline: 2px dashed var(--primary); }
-.col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 4px 8px; color: var(--muted-foreground); }
-.hint { font-size: 0.75rem; margin: -4px 4px 8px; }
-.tcard { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin: 6px 0; cursor: grab; display: flex; flex-direction: column; gap: 6px; }
-.tcard a { color: var(--foreground); }
-.tcard .goal { font-size: 0.75rem; flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.small { font-size: 0.78rem; padding: 3px 8px; }
-details.add { margin: 4px 0; }
-.login { max-width: 420px; margin: 18vh auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
-.login h1 { font-size: 2rem; justify-content: center; }
-
-@media (max-width: 640px) {
- .session form.grow { flex-basis: 100%; }
- ul.tasks li { flex-direction: column; align-items: flex-start; }
- .board { grid-template-columns: 1fr; }
-}
-
-.consent { text-align: left; align-items: stretch; }
-.consent h1 { justify-content: flex-start; }
-.scopes { margin: 0; padding-left: 20px; }
-.mcp-url { display: block; padding: 10px 12px; background: var(--muted); border-radius: 8px; overflow-x: auto; }
-
-.ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
-
-.help ul { padding-left: 20px; }
-.help li { margin: 4px 0; }
-.say { margin: 6px 0; font-style: italic; }
-table.tools { width: 100%; border-collapse: collapse; }
-table.tools td { border-top: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
-table.tools td.mono { white-space: nowrap; }
-@media (max-width: 640px) { table.tools td.mono { white-space: normal; overflow-wrap: anywhere; } }
-
-ul.members { list-style: none; padding: 0; margin: 0 0 10px; }
-ul.members li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
-
-
-dl.repo { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
-dl.repo dt { color: var(--muted-foreground); }
-dl.repo dd { margin: 0; }
diff --git a/apps/web/app/login/page.tsx b/apps/web/app/login/page.tsx
index 667e146d..cceff97a 100644
--- a/apps/web/app/login/page.tsx
+++ b/apps/web/app/login/page.tsx
@@ -1,7 +1,9 @@
import { redirect } from "next/navigation";
import { currentUser, safeNext } from "@/lib/auth";
-import { Flash } from "@/components/ui";
+import { Brand } from "@/components/Brand";
+import { Flash } from "@/components/common";
import { Footer } from "@/components/Footer";
+import { Button } from "@/components/ui/button";
export const dynamic = "force-dynamic";
@@ -9,12 +11,16 @@ export default async function Login({ searchParams }: { searchParams: Promise<{
const { error, next } = await searchParams;
if (await currentUser()) redirect(safeNext(next));
return (
-
- 🐷 Peppa
- Софтвейр-фабрика: проекты в Gitea, задачи по OpenSpec, агенты Claude Code и Codex.
-
- Войти через Gitea
-
+
+
+
+
Софтвейр-фабрика: проекты в Gitea, задачи по OpenSpec, агенты Claude Code и Codex.
+
+
+
+
);
}
diff --git a/apps/web/app/oauth/authorize/page.tsx b/apps/web/app/oauth/authorize/page.tsx
index ce003176..086ce7fd 100644
--- a/apps/web/app/oauth/authorize/page.tsx
+++ b/apps/web/app/oauth/authorize/page.tsx
@@ -3,6 +3,9 @@ import { redirect } from "next/navigation";
import { currentUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { approve, deny } from "./actions";
+import { Brand } from "@/components/Brand";
+import { Button } from "@/components/ui/button";
+import { Card } from "@/components/ui/card";
export const dynamic = "force-dynamic";
@@ -29,33 +32,35 @@ export default async function Authorize({ searchParams }: { searchParams: Promis
}
const host = p.redirect_uri ? new URL(p.redirect_uri).host : "";
return (
-
- 🐷 Peppa
- {error || !client ? (
- Запрос авторизации некорректен: {error}
- ) : (
- <>
-
- {client.name} ({host}) просит доступ к Пеппе от имени {user.login}.
-
-
- - видеть ваши проекты, цели, задачи и вопросы агентов;
- - создавать задачи и двигать карточки — перенос в «В работе» запускает агента;
- - отвечать на вопросы агентов и принимать ревью.
-
- Отозвать доступ можно в «Настройки → Подключённые приложения».
-
-
-
-
- >
- )}
+
+
+
+ {error || !client ? (
+ Запрос авторизации некорректен: {error}
+ ) : (
+ <>
+
+ {client.name} ({host}) просит доступ к Пеппе от имени {user.login}.
+
+
+ - видеть ваши проекты, цели, задачи и вопросы агентов;
+ - создавать задачи и двигать карточки — перенос в «В работе» запускает агента;
+ - отвечать на вопросы агентов и принимать ревью.
+
+ Отозвать доступ можно в «Настройки → Подключённые приложения».
+
+
+
+
+ >
+ )}
+
);
}
diff --git a/apps/web/components/ActivityAside.tsx b/apps/web/components/ActivityAside.tsx
index f078ea1e..d7a274b5 100644
--- a/apps/web/components/ActivityAside.tsx
+++ b/apps/web/components/ActivityAside.tsx
@@ -1,5 +1,5 @@
import Link from "next/link";
-import { ago } from "@/components/ui";
+import { ago } from "@/components/common";
import { requireUser } from "@/lib/auth";
import { activeSessions, inbox } from "@/lib/queries";
import { SESSION_STATUS, TONE_BG } from "@/lib/status";
diff --git a/apps/web/components/Board.tsx b/apps/web/components/Board.tsx
index cdd94f94..32b17faa 100644
--- a/apps/web/components/Board.tsx
+++ b/apps/web/components/Board.tsx
@@ -3,6 +3,9 @@
import Link from "next/link";
import { useState, useTransition } from "react";
import { moveTaskCard } from "@/app/(app)/actions";
+import { Button } from "@/components/ui/button";
+import { Badge } from "@/components/ui/badge";
+import { cn } from "@/lib/utils";
export type Column = "backlog" | "in_progress" | "review" | "done";
export interface Card {
@@ -13,13 +16,18 @@ export interface Card {
goal: string | null;
}
-const COLUMNS: Array<{ id: Column; title: string; hint: string }> = [
- { id: "backlog", title: "Бэклог", hint: "" },
- { id: "in_progress", title: "В работе", hint: "сюда — запустить агента" },
- { id: "review", title: "Ревью", hint: "" },
- { id: "done", title: "Готово", hint: "" },
+const COLUMNS: Array<{ id: Column; title: string; hint: string; dot: string }> = [
+ { id: "backlog", title: "Бэклог", hint: "", dot: "bg-muted-foreground" },
+ { id: "in_progress", title: "В работе", hint: "сюда — запустить агента", dot: "bg-info" },
+ { id: "review", title: "Ревью", hint: "", dot: "bg-ok" },
+ { id: "done", title: "Готово", hint: "", dot: "bg-ok" },
];
-const STATUS: Record = { proposing: "proposal", awaiting_approval: "ждёт PM", blocked: "блок", in_progress: "агент" };
+const STATUS: Record = {
+ proposing: { label: "proposal", tone: "primary" },
+ awaiting_approval: { label: "ждёт PM", tone: "primary" },
+ blocked: { label: "блок", tone: "danger" },
+ in_progress: { label: "агент", tone: "info" },
+};
const NEXT: Partial> = {
backlog: { to: "in_progress", label: "В работу →" },
review: { to: "done", label: "Принять ✓" },
@@ -37,48 +45,59 @@ export function Board({ cards, back }: { cards: Card[]; back: string }) {
start(() => moveTaskCard(f));
};
return (
-
- {COLUMNS.map((c) => (
-
{
- e.preventDefault();
- setOver(c.id);
- }}
- onDragLeave={() => setOver(null)}
- onDrop={(e) => {
- e.preventDefault();
- setOver(null);
- const key = e.dataTransfer.getData("text/plain");
- const card = cards.find((x) => x.key === key);
- if (card && card.column !== c.id) move(key, c.id);
- }}
- >
-
- {c.title} {cards.filter((x) => x.column === c.id).length}
-
- {c.hint && {c.hint}
}
- {cards
- .filter((x) => x.column === c.id)
- .map((card) => (
- e.dataTransfer.setData("text/plain", card.key)}>
-
- {card.key} {card.title}
+
+ {COLUMNS.map((c) => {
+ const list = cards.filter((x) => x.column === c.id);
+ return (
+
{
+ e.preventDefault();
+ setOver(c.id);
+ }}
+ onDragLeave={() => setOver(null)}
+ onDrop={(e) => {
+ e.preventDefault();
+ setOver(null);
+ const key = e.dataTransfer.getData("text/plain");
+ const card = cards.find((x) => x.key === key);
+ if (card && card.column !== c.id) move(key, c.id);
+ }}
+ >
+
+
+ {c.title}
+ {list.length}
+
+ {c.hint && {c.hint}
}
+ {list.map((card) => (
+ e.dataTransfer.setData("text/plain", card.key)}
+ className="flex cursor-grab flex-col gap-2 rounded-md border bg-card p-2.5 text-sm shadow-xs transition-colors hover:border-primary/40 active:cursor-grabbing"
+ >
+
+ {card.key} {card.title}
-
- {card.goal && 🎯 {card.goal}}
- {STATUS[card.status] && {STATUS[card.status]}}
- {NEXT[c.id] && (
-
- )}
-
+ {(card.goal || STATUS[card.status] || NEXT[c.id]) && (
+
+ {card.goal && ◎ {card.goal}}
+ {STATUS[card.status] && {STATUS[card.status]!.label}}
+ {NEXT[c.id] && (
+
+ )}
+
+ )}
))}
-
- ))}
+
+ );
+ })}
);
}
diff --git a/apps/web/components/Brand.tsx b/apps/web/components/Brand.tsx
new file mode 100644
index 00000000..f32319b5
--- /dev/null
+++ b/apps/web/components/Brand.tsx
@@ -0,0 +1,11 @@
+/** Peppa mark: pink tile with a glow + mono word. */
+export function Brand({ large = false }: { large?: boolean }) {
+ return (
+
+
+ P
+
+ peppa
+
+ );
+}
diff --git a/apps/web/components/Footer.tsx b/apps/web/components/Footer.tsx
index eab5f3be..5be0d18b 100644
--- a/apps/web/components/Footer.tsx
+++ b/apps/web/components/Footer.tsx
@@ -13,7 +13,7 @@ export function Footer() {
{commit && (
<>
{" · "}
-
+
{commit}
{dirty && +изменения}
diff --git a/apps/web/components/Incidents.tsx b/apps/web/components/Incidents.tsx
index 061bb3ba..84bb6ae5 100644
--- a/apps/web/components/Incidents.tsx
+++ b/apps/web/components/Incidents.tsx
@@ -1,14 +1,18 @@
// Project page section «Ошибки» (PEP-58): connect Bugsink, incident policy, incidents list.
+import { Bug, CircleCheck, EyeOff, Inbox, MapPin, Play } from "lucide-react";
import { INCIDENT_STATUS_RU, incidentPolicies, POLICY_RU, type ErrorSource, type Incident, type IncidentSettings } from "@peppa/core";
import { connectErrorTrackingAction, decideIncidentAction, resolveIncidentAction, saveIncidentSettings } from "@/app/(app)/actions";
-import { ago } from "./ui";
+import { Hidden } from "@/components/cards";
+import { ago, Disclosure, Empty, Key, Section } from "@/components/common";
+import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
+import { Input, Label, NativeSelect, Textarea } from "@/components/ui/input";
-const Hidden = ({ projectId, back }: { projectId: number; back: string }) => (
- <>
-
-
- >
-);
+const STATUS_TONE: Record = { new: "danger", open: "warn", pending: "warn", task: "info", ignored: "muted", resolved: "ok", regressed: "danger" };
+
+function Code({ children }: { children: React.ReactNode }) {
+ return {children};
+}
export function IncidentsSection(props: {
projectId: number;
@@ -24,138 +28,143 @@ export function IncidentsSection(props: {
const { projectId, back, settings: s } = props;
if (!s) {
return (
-
- Ошибки
- Ошибки фронта и бэка из прода (Bugsink, SDK Sentry) приходят сюда и становятся задачами по политике проекта.
+
+ Ошибки фронта и бэка из прода (Bugsink, SDK Sentry) приходят сюда и становятся задачами по политике проекта.
{props.isOwner ? (
) : (
- Не подключено — подключает владелец проекта.
+ Не подключено — подключает владелец проекта.
)}
-
+
);
}
const active = props.incidents.filter((i) => !["ignored", "resolved"].includes(i.status));
const rest = props.incidents.filter((i) => ["ignored", "resolved"].includes(i.status));
return (
-
-
- Ошибки политика: {POLICY_RU[s.policy]}
-
- {active.length === 0 ? Открытых ошибок нет.
: active.map((i) => )}
+ политика: {POLICY_RU[s.policy]}}>
+ {active.length === 0 ? Открытых ошибок нет. : active.map((i) => )}
{rest.length > 0 && (
-
- Исправленные и игнорируемые ({rest.length})
- {rest.map((i) => (
-
- ))}
-
+
+
+ {rest.map((i) => (
+
+ ))}
+
+
)}
-
- Настройки ошибок
-
+
+
{props.sources.map((src) => (
-
-
DSN {src.kind === "web" ? "фронта (web)" : "бэка (api)"}
-
{src.dsn}
+
+ DSN {src.kind === "web" ? "фронта (web)" : "бэка (api)"}
+ {src.dsn}
))}
-
- В коде: {"NEXT_PUBLIC_SENTRY_DSN"} / SENTRY_DSN из окружения, release = SHA деплоя, environment = prod, sendDefaultPii: false.
+
+ В коде: NEXT_PUBLIC_SENTRY_DSN / SENTRY_DSN из окружения, release = SHA деплоя,{" "}
+ environment = prod, sendDefaultPii: false.
{!s.webhookAuto && props.webhookUrl && (
-
-
Вебхук не настроен автоматически. В Bugsink: проект → Alerts → Custom webhook:
-
{props.webhookUrl}
-
Пока его нет, Пеппа опрашивает Bugsink раз в 2 минуты.
+
+ Вебхук не настроен автоматически. В Bugsink: проект → Alerts → Custom webhook:
+ {props.webhookUrl}
+ Пока его нет, Пеппа опрашивает Bugsink раз в 2 минуты.
)}
-