PEP-38: console foundation — Tailwind v4, shadcn/ui components, dark theme, three-panel layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b07beb5d0f
commit
28fbde4add
@ -6,7 +6,7 @@
|
||||
Текущее состояние и порядок работ: `docs/HANDOFF.md`.
|
||||
|
||||
## Структура
|
||||
- `apps/web` — Next.js платформа (порт 3100, https://peppa.telecom.quest): вход через Gitea OAuth2 (`/auth/start` → `/auth/callback`, подписанная cookie `peppa_session`), всё за входом через route group `(app)`; меню Главная (вопросы, активные раннеры, проекты) · Проекты · Раннеры (`/runners`, `core.listUserSessions`) · Помощь, проект (цели → задачи), задача (артефакты OpenSpec из рабочей копии, вопросы, сессии), новый проект. Server actions в `app/(app)/actions.ts` — тонкие обёртки над core/runner с проверкой владельца. После правок: `next build` + `launchctl kickstart -k gui/$(id -u)/quest.telecom.peppa.web`
|
||||
- `apps/web` — Next.js платформа (порт 3100, https://peppa.telecom.quest): UI-пульт (PEP-38): Tailwind v4 + компоненты shadcn/ui в `components/ui/*` (исходники в репо), lucide-react, шрифты `geist`, токены темы в `app/app.css` (тёмная по умолчанию, cookie `peppa_theme`); раскладка — `Sidebar` слева (счётчики «ждут тебя» из `navCounts`), страница рисует центр и правую панель через `<Workspace aside>` (по умолчанию `ActivityAside`); демо-данные для проверки UI — `apps/web/scripts/mock-ui-seed.ts` в отдельную БД; вход через Gitea OAuth2 (`/auth/start` → `/auth/callback`, подписанная cookie `peppa_session`), всё за входом через route group `(app)`; меню Главная (вопросы, активные раннеры, проекты) · Проекты · Раннеры (`/runners`, `core.listUserSessions`) · Помощь, проект (цели → задачи), задача (артефакты OpenSpec из рабочей копии, вопросы, сессии), новый проект. Server actions в `app/(app)/actions.ts` — тонкие обёртки над core/runner с проверкой владельца. После правок: `next build` + `launchctl kickstart -k gui/$(id -u)/quest.telecom.peppa.web`
|
||||
- `apps/bot` — Telegram-бот (`peppa-bot`, launchd `quest.telecom.peppa.bot`): свой мини-клиент Bot API (`TELEGRAM_API_URL` для мока), long polling с сохранённым offset, `telegram_updates` фиксирует update до действия (без повторов после рестарта), durable outbox с ретраями (429 retry_after, 5xx), привязка у каждого пользователя своя: веб «Настройки → Telegram» (или `peppa telegram pair <login>`), вопросы проекта получают владелец и участники с привязкой, ответ принимается только от имеющих доступ к проекту (PEP-2). Отвечает только на конкретный вопрос (кнопки/реплай) и умеет resume/stop сессии из алерта
|
||||
- `packages/db` — Drizzle-схема и клиент (Postgres на 127.0.0.1:5433)
|
||||
- `packages/shared` — env, ключи задач (`PEP-42`)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import Link from "next/link";
|
||||
import { publicOrigin } from "@/lib/auth";
|
||||
import { Workspace } from "@/components/Workspace";
|
||||
|
||||
const TOOLS: Array<[string, string]> = [
|
||||
["list_projects", "мои проекты, ссылка на репозиторий в Gitea и сколько задач в каждой колонке"],
|
||||
@ -37,6 +38,7 @@ const CASES: Array<{ title: string; say: string; how: string }> = [
|
||||
export default async function Help() {
|
||||
const mcp = `${await publicOrigin()}/mcp`;
|
||||
return (
|
||||
<Workspace>
|
||||
<section className="narrow help">
|
||||
<h1>Помощь</h1>
|
||||
|
||||
@ -111,5 +113,6 @@ export default async function Help() {
|
||||
проекта: сообщением, задачей или с кнопками «В бэклог / В работу / Игнорировать».
|
||||
</p>
|
||||
</section>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,29 +1,18 @@
|
||||
import Link from "next/link";
|
||||
import type { ReactNode } from "react";
|
||||
import { requireUser } from "@/lib/auth";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Nav, SettingsLink } from "@/components/Nav";
|
||||
import { navCounts } from "@/lib/queries";
|
||||
import { Sidebar } from "@/components/Sidebar";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/** Console layout (PEP-38): navigation on the left, each page renders centre + right panel via <Workspace>. */
|
||||
export default async function AppLayout({ children }: { children: ReactNode }) {
|
||||
const user = await requireUser();
|
||||
const counts = await navCounts(user.id);
|
||||
return (
|
||||
<>
|
||||
<header className="top">
|
||||
<Link href="/" className="brand">🐷 Peppa</Link>
|
||||
<Nav />
|
||||
<div className="me">
|
||||
<SettingsLink />
|
||||
{user.avatarUrl && <img src={user.avatarUrl} alt="" width={24} height={24} />}
|
||||
<span>{user.login}</span>
|
||||
<form action="/logout" method="post">
|
||||
<button className="link">Выйти</button>
|
||||
</form>
|
||||
</div>
|
||||
</header>
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
</>
|
||||
<div className="min-h-dvh md:grid md:grid-cols-[232px_minmax(0,1fr)]">
|
||||
<Sidebar login={user.login} avatarUrl={user.avatarUrl} counts={counts} />
|
||||
<div className="flex min-w-0 flex-col pb-16 md:pb-0">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import { bugsinkWebhookBase } from "@peppa/runner";
|
||||
import { IncidentsSection } from "@/components/Incidents";
|
||||
import { db } from "@/lib/db";
|
||||
import { addGoal, addProjectMember, addTask, deployProdAction, grantRepoAccessToMembers, removeProjectMember } from "../../actions";
|
||||
import { Workspace } from "@/components/Workspace";
|
||||
|
||||
const RELEASE_STATUS: Record<Release["status"], string> = {
|
||||
deploying: "⏳ выкатывается",
|
||||
@ -53,7 +54,7 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr
|
||||
goal: t.goalId ? (goalTitle.get(t.goalId) ?? null) : null,
|
||||
}));
|
||||
return (
|
||||
<>
|
||||
<Workspace>
|
||||
<AutoRefresh />
|
||||
<Flash error={error} />
|
||||
{created && !error && (
|
||||
@ -225,6 +226,6 @@ export default async function ProjectPage({ params, searchParams }: { params: Pr
|
||||
<h2>Сессии</h2>
|
||||
{sessions.length === 0 ? <p className="empty">Сессий ещё не было.</p> : sessions.map((s) => <SessionCard key={s.id} s={s} back={back} />)}
|
||||
</section>
|
||||
</>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -5,13 +5,15 @@ import { Flash, ProjectList, QuestionCard, SessionCard } from "@/components/ui";
|
||||
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();
|
||||
const { error } = await searchParams;
|
||||
const [items, sessions, projects] = await Promise.all([inbox(user.id), activeSessions(user.id), listUserProjects(db, user.id)]);
|
||||
return (
|
||||
<>
|
||||
<Workspace aside={<ActivityAside questions={false} />}>
|
||||
<AutoRefresh />
|
||||
<Flash error={error} />
|
||||
<h1>Главная</h1>
|
||||
@ -31,6 +33,6 @@ export default async function Home({ searchParams }: { searchParams: Promise<{ e
|
||||
</h2>
|
||||
<ProjectList projects={projects} userId={user.id} />
|
||||
</section>
|
||||
</>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import { Flash } from "@/components/ui";
|
||||
import { requireUser } from "@/lib/auth";
|
||||
import { db } from "@/lib/db";
|
||||
import { createProjectAction } from "../../actions";
|
||||
import { Workspace } from "@/components/Workspace";
|
||||
|
||||
export default async function NewProject({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
|
||||
const user = await requireUser();
|
||||
@ -17,6 +18,7 @@ export default async function NewProject({ searchParams }: { searchParams: Promi
|
||||
giteaError = (e as Error).message;
|
||||
}
|
||||
return (
|
||||
<Workspace>
|
||||
<section className="narrow">
|
||||
<h1>Новый проект</h1>
|
||||
<Flash error={error ?? giteaError} />
|
||||
@ -75,5 +77,6 @@ export default async function NewProject({ searchParams }: { searchParams: Promi
|
||||
<button className="primary">Создать проект</button>
|
||||
</form>
|
||||
</section>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -3,13 +3,14 @@ import { listUserProjects } from "@peppa/core";
|
||||
import { Flash, ProjectList } from "@/components/ui";
|
||||
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();
|
||||
const { error } = await searchParams;
|
||||
const projects = await listUserProjects(db, user.id);
|
||||
return (
|
||||
<>
|
||||
<Workspace>
|
||||
<Flash error={error} />
|
||||
<h1>
|
||||
Проекты{" "}
|
||||
@ -18,6 +19,6 @@ export default async function Projects({ searchParams }: { searchParams: Promise
|
||||
</Link>
|
||||
</h1>
|
||||
<ProjectList projects={projects} userId={user.id} />
|
||||
</>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import { AutoRefresh } from "@/components/AutoRefresh";
|
||||
import { Flash, SessionCard } from "@/components/ui";
|
||||
import { requireUser } from "@/lib/auth";
|
||||
import { db } from "@/lib/db";
|
||||
import { Workspace } from "@/components/Workspace";
|
||||
|
||||
const FILTERS: Array<{ key: RunnerFilter | undefined; label: string }> = [
|
||||
{ key: undefined, label: "Все" },
|
||||
@ -22,7 +23,7 @@ export default async function Runners({ searchParams }: { searchParams: Promise<
|
||||
const shown = filter ? all.filter((s) => (RUNNER_FILTERS[filter] as string[]).includes(s.status)) : all;
|
||||
const back = filter ? `/runners?f=${filter}` : "/runners";
|
||||
return (
|
||||
<>
|
||||
<Workspace>
|
||||
<AutoRefresh />
|
||||
<Flash error={error} />
|
||||
<h1>Раннеры</h1>
|
||||
@ -35,6 +36,6 @@ export default async function Runners({ searchParams }: { searchParams: Promise<
|
||||
))}
|
||||
</nav>
|
||||
{shown.length === 0 ? <p className="empty">{filter ? "Таких раннеров нет." : "Раннеров пока не было: перенеси задачу в «В работе» на доске проекта."}</p> : shown.map((s) => <SessionCard key={s.id} s={s} back={back} showTitle />)}
|
||||
</>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ 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";
|
||||
|
||||
export default async function Settings({ searchParams }: { searchParams: Promise<{ error?: string; claude?: string }> }) {
|
||||
const user = await requireUser();
|
||||
@ -12,6 +13,7 @@ export default async function Settings({ searchParams }: { searchParams: Promise
|
||||
const apps = await connectedApps(db, user.id);
|
||||
const origin = await publicOrigin();
|
||||
return (
|
||||
<Workspace>
|
||||
<section className="narrow">
|
||||
<Flash error={error} />
|
||||
<h1>Настройки</h1>
|
||||
@ -112,5 +114,6 @@ export default async function Settings({ searchParams }: { searchParams: Promise
|
||||
))
|
||||
)}
|
||||
</section>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ import { goals } from "@peppa/db";
|
||||
import { taskCiSummary } from "@peppa/core";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { startTaskSession } from "../../actions";
|
||||
import { Workspace } from "@/components/Workspace";
|
||||
|
||||
export default async function TaskPage({ params, searchParams }: { params: Promise<{ key: string }>; searchParams: Promise<{ error?: string }> }) {
|
||||
const user = await requireUser();
|
||||
@ -23,7 +24,7 @@ export default async function TaskPage({ params, searchParams }: { params: Promi
|
||||
const ci = await taskCiSummary(db, ref);
|
||||
const back = `/t/${ref.key}`;
|
||||
return (
|
||||
<>
|
||||
<Workspace>
|
||||
<AutoRefresh />
|
||||
<Flash error={error} />
|
||||
<p className="crumbs">
|
||||
@ -98,6 +99,6 @@ export default async function TaskPage({ params, searchParams }: { params: Promi
|
||||
))}
|
||||
</ul>
|
||||
</section>
|
||||
</>
|
||||
</Workspace>
|
||||
);
|
||||
}
|
||||
|
||||
104
apps/web/app/app.css
Normal file
104
apps/web/app/app.css
Normal file
@ -0,0 +1,104 @@
|
||||
@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 *));
|
||||
|
||||
:root {
|
||||
--radius: 0.625rem;
|
||||
--background: oklch(0.985 0.002 265);
|
||||
--foreground: oklch(0.21 0.02 265);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.21 0.02 265);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.21 0.02 265);
|
||||
--primary: oklch(0.6 0.21 355);
|
||||
--primary-foreground: oklch(0.99 0 0);
|
||||
--secondary: oklch(0.955 0.005 265);
|
||||
--secondary-foreground: oklch(0.25 0.02 265);
|
||||
--muted: oklch(0.955 0.005 265);
|
||||
--muted-foreground: oklch(0.5 0.02 265);
|
||||
--accent: oklch(0.94 0.008 265);
|
||||
--accent-foreground: oklch(0.21 0.02 265);
|
||||
--destructive: oklch(0.58 0.22 27);
|
||||
--border: oklch(0.9 0.006 265);
|
||||
--input: oklch(0.88 0.008 265);
|
||||
--ring: oklch(0.6 0.21 355);
|
||||
--sidebar: oklch(0.97 0.004 265);
|
||||
--ok: oklch(0.55 0.15 150);
|
||||
--warn: oklch(0.62 0.15 65);
|
||||
--info: oklch(0.55 0.15 245);
|
||||
--danger: var(--destructive);
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.16 0.012 265);
|
||||
--foreground: oklch(0.95 0.006 265);
|
||||
--card: oklch(0.195 0.014 265);
|
||||
--card-foreground: oklch(0.95 0.006 265);
|
||||
--popover: oklch(0.2 0.014 265);
|
||||
--popover-foreground: oklch(0.95 0.006 265);
|
||||
--primary: oklch(0.72 0.19 352);
|
||||
--primary-foreground: oklch(0.17 0.03 352);
|
||||
--secondary: oklch(0.25 0.014 265);
|
||||
--secondary-foreground: oklch(0.93 0.006 265);
|
||||
--muted: oklch(0.235 0.014 265);
|
||||
--muted-foreground: oklch(0.69 0.018 265);
|
||||
--accent: oklch(0.26 0.016 265);
|
||||
--accent-foreground: oklch(0.96 0.006 265);
|
||||
--destructive: oklch(0.66 0.2 25);
|
||||
--border: oklch(1 0 0 / 9%);
|
||||
--input: oklch(1 0 0 / 13%);
|
||||
--ring: oklch(0.72 0.19 352);
|
||||
--sidebar: oklch(0.135 0.011 265);
|
||||
--ok: oklch(0.76 0.16 152);
|
||||
--warn: oklch(0.8 0.14 75);
|
||||
--info: oklch(0.74 0.12 240);
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
|
||||
--font-mono: var(--font-geist-mono), ui-monospace, "SF Mono", Menlo, monospace;
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-ok: var(--ok);
|
||||
--color-warn: var(--warn);
|
||||
--color-info: var(--info);
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground font-sans antialiased;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
::selection {
|
||||
@apply bg-primary/30;
|
||||
}
|
||||
}
|
||||
@ -1,11 +1,18 @@
|
||||
import type { ReactNode } from "react";
|
||||
import "./globals.css";
|
||||
import { cookies } from "next/headers";
|
||||
import { GeistSans } from "geist/font/sans";
|
||||
import { GeistMono } from "geist/font/mono";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { THEME_COOKIE } from "@/lib/theme";
|
||||
import "./app.css";
|
||||
|
||||
export const metadata = { title: "Peppa", description: "Софтвейр-фабрика: проекты, задачи и агенты" };
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
export default async function RootLayout({ children }: { children: ReactNode }) {
|
||||
// Dark by default; the cookie is read on the server so a light choice renders without a dark flash.
|
||||
const light = (await cookies()).get(THEME_COOKIE)?.value === "light";
|
||||
return (
|
||||
<html lang="ru">
|
||||
<html lang="ru" className={cn(GeistSans.variable, GeistMono.variable, !light && "dark")}>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@ -1,90 +1,38 @@
|
||||
:root {
|
||||
--bg: #f7f6f3;
|
||||
--surface: #ffffff;
|
||||
--text: #1f1d1a;
|
||||
--muted: #6f6a62;
|
||||
--border: #e4e0d8;
|
||||
--accent: #d6457a;
|
||||
--accent-text: #ffffff;
|
||||
--danger: #b4332b;
|
||||
--ok: #2f7d4f;
|
||||
--warn: #a8661b;
|
||||
--info: #3460a8;
|
||||
--code-bg: #f0ede7;
|
||||
--radius: 10px;
|
||||
color-scheme: light;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #151412;
|
||||
--surface: #1e1d1a;
|
||||
--text: #ece8e1;
|
||||
--muted: #a39d93;
|
||||
--border: #34312c;
|
||||
--accent: #ec6b9a;
|
||||
--accent-text: #1a0d12;
|
||||
--danger: #e0675e;
|
||||
--ok: #6cc28f;
|
||||
--warn: #e0a05a;
|
||||
--info: #7fa6ea;
|
||||
--code-bg: #26241f;
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
/* Pre-PEP-38 page styles, imported into the `base` layer so Tailwind utilities win. Removed page by page in stage 2. */
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
}
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
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: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }
|
||||
.muted { color: var(--muted); }
|
||||
.empty { color: var(--muted); padding: 12px 0; }
|
||||
.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; }
|
||||
|
||||
.top {
|
||||
display: flex; align-items: center; gap: 20px; padding: 10px 24px;
|
||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||
position: sticky; top: 0; z-index: 1;
|
||||
}
|
||||
.brand { font-weight: 700; color: var(--text); }
|
||||
.top nav { display: flex; gap: 16px; flex: 1; }
|
||||
.top nav a, .me > a { color: var(--muted); }
|
||||
.top nav a.active, .me > a.active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
|
||||
.top nav a:hover, .me > a:hover { color: var(--text); text-decoration: none; }
|
||||
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(--text); background: var(--surface); }
|
||||
.filters a:hover { text-decoration: none; border-color: var(--muted); }
|
||||
.filters a.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
|
||||
.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; }
|
||||
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); }
|
||||
.me img { border-radius: 50%; }
|
||||
main { max-width: 960px; margin: 0 auto; padding: 24px; }
|
||||
.narrow { max-width: 560px; }
|
||||
.crumbs { margin: 0 0 4px; color: var(--muted); }
|
||||
.crumbs { margin: 0 0 4px; color: var(--muted-foreground); }
|
||||
.desc { white-space: pre-wrap; }
|
||||
|
||||
.card {
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
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(--accent); }
|
||||
.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); margin: 6px 0; overflow-x: auto; }
|
||||
.count { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 0.8rem; padding: 1px 9px; }
|
||||
.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; }
|
||||
@ -97,57 +45,57 @@ fieldset { border: 1px solid var(--border); border-radius: var(--radius); paddin
|
||||
.answer { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
|
||||
|
||||
input[type=text], textarea, select {
|
||||
font: inherit; color: var(--text); background: var(--bg);
|
||||
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(--accent); outline-offset: 1px; }
|
||||
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(--surface); color: var(--text); white-space: nowrap;
|
||||
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); text-decoration: none; }
|
||||
.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
|
||||
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); }
|
||||
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(--code-bg); color: var(--muted); white-space: nowrap;
|
||||
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(--accent); }
|
||||
.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(--surface)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
|
||||
.flash { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid var(--danger); border-radius: var(--radius); padding: 10px 14px; }
|
||||
.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(--surface); border: 1px solid var(--border); border-radius: 8px; margin: 6px 0;
|
||||
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(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
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(--accent); }
|
||||
summary { cursor: pointer; color: var(--primary); }
|
||||
pre.md {
|
||||
white-space: pre-wrap; background: var(--code-bg); border-radius: 8px; padding: 12px;
|
||||
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(--bg)); border-radius: var(--radius); padding: 8px; min-height: 120px; }
|
||||
.col.over { outline: 2px dashed var(--accent); }
|
||||
.col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 4px 8px; color: var(--muted); }
|
||||
.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(--surface); 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(--text); }
|
||||
.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; }
|
||||
@ -155,10 +103,6 @@ details.add { margin: 4px 0; }
|
||||
.login h1 { font-size: 2rem; justify-content: center; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
main { padding: 16px; }
|
||||
.top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
|
||||
.top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
|
||||
.me span { display: none; }
|
||||
.session form.grow { flex-basis: 100%; }
|
||||
ul.tasks li { flex-direction: column; align-items: flex-start; }
|
||||
.board { grid-template-columns: 1fr; }
|
||||
@ -167,9 +111,9 @@ details.add { margin: 4px 0; }
|
||||
.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(--code-bg); border-radius: 8px; overflow-x: auto; }
|
||||
.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(--surface)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
|
||||
.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; }
|
||||
@ -182,8 +126,7 @@ table.tools td.mono { white-space: nowrap; }
|
||||
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); }
|
||||
|
||||
.foot { max-width: 960px; margin: 0 auto; padding: 16px 24px 32px; font-size: 0.8rem; text-align: center; }
|
||||
|
||||
dl.repo { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
|
||||
dl.repo dt { color: var(--muted); }
|
||||
dl.repo dt { color: var(--muted-foreground); }
|
||||
dl.repo dd { margin: 0; }
|
||||
64
apps/web/components/ActivityAside.tsx
Normal file
64
apps/web/components/ActivityAside.tsx
Normal file
@ -0,0 +1,64 @@
|
||||
import Link from "next/link";
|
||||
import { ago } from "@/components/ui";
|
||||
import { requireUser } from "@/lib/auth";
|
||||
import { activeSessions, inbox } from "@/lib/queries";
|
||||
import { SESSION_STATUS, TONE_BG } from "@/lib/status";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
/** Default right panel: what waits for the PM and what is running now. */
|
||||
export async function ActivityAside({ questions = true }: { questions?: boolean }) {
|
||||
const user = await requireUser();
|
||||
const [items, sessions] = await Promise.all([questions ? inbox(user.id) : [], activeSessions(user.id)]);
|
||||
return (
|
||||
<div className="flex flex-col gap-6">
|
||||
{questions && (
|
||||
<PanelSection title="Ждут тебя" count={items.length} href="/" more="на Главную">
|
||||
{items.length === 0 ? (
|
||||
<p className="text-sm text-muted-foreground">Агентам ничего не нужно.</p>
|
||||
) : (
|
||||
items.slice(0, 6).map((q) => (
|
||||
<Link key={q.id} href={q.taskKey ? `/t/${q.taskKey}` : "/"} className="block rounded-md border border-primary/25 bg-primary/5 px-3 py-2 text-sm text-foreground hover:border-primary/50 hover:no-underline">
|
||||
<span className="font-mono text-xs text-primary">{q.taskKey ?? `#${q.id}`}</span>{" "}
|
||||
<span className="line-clamp-2 text-muted-foreground">{q.text}</span>
|
||||
</Link>
|
||||
))
|
||||
)}
|
||||
</PanelSection>
|
||||
)}
|
||||
<PanelSection title="Активные раннеры" count={sessions.length} href="/runners" more="все">
|
||||
{sessions.length === 0 ? (
|
||||
<p className="text-sm text-muted-foreground">Сейчас ничего не запущено.</p>
|
||||
) : (
|
||||
sessions.slice(0, 12).map((s) => {
|
||||
const st = SESSION_STATUS[s.status] ?? { label: s.status, tone: "muted" as const };
|
||||
return (
|
||||
<Link key={s.id} href={`/runners?id=${s.id}`} className="flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground hover:bg-accent hover:no-underline">
|
||||
<span className={cn("size-2 shrink-0 rounded-full", TONE_BG[st.tone], s.status === "running" && "animate-pulse")} title={st.label} />
|
||||
<span className="shrink-0 font-mono text-xs">{s.taskKey ?? s.projectKey}</span>
|
||||
<span className="min-w-0 flex-1 truncate text-muted-foreground">{s.taskTitle}</span>
|
||||
<span className="shrink-0 font-mono text-[11px] text-muted-foreground">{ago(s.lastActivityAt)}</span>
|
||||
</Link>
|
||||
);
|
||||
})
|
||||
)}
|
||||
</PanelSection>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function PanelSection({ title, count, href, more, children }: { title: string; count?: number; href?: string; more?: string; children: React.ReactNode }) {
|
||||
return (
|
||||
<section className="flex flex-col gap-2">
|
||||
<h2 className="m-0 flex items-center gap-2 font-mono text-[11px] font-semibold tracking-wider text-muted-foreground uppercase">
|
||||
{title}
|
||||
{count != null && count > 0 && <span className="rounded bg-muted px-1.5 text-foreground tabular-nums">{count}</span>}
|
||||
{href && more && (
|
||||
<Link href={href} className="ml-auto font-sans text-xs font-normal tracking-normal normal-case text-muted-foreground hover:text-foreground">
|
||||
{more} →
|
||||
</Link>
|
||||
)}
|
||||
</h2>
|
||||
{children}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@ -8,7 +8,7 @@ export function Footer() {
|
||||
const date = process.env.NEXT_PUBLIC_PEPPA_COMMIT_DATE;
|
||||
const dirty = process.env.NEXT_PUBLIC_PEPPA_DIRTY;
|
||||
return (
|
||||
<footer className="foot muted">
|
||||
<footer className="px-4 py-6 text-center text-xs text-muted-foreground">
|
||||
Peppa v{version}
|
||||
{commit && (
|
||||
<>
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
const ITEMS = [
|
||||
{ href: "/", label: "Главная", match: (p: string) => p === "/" },
|
||||
{ href: "/projects", label: "Проекты", match: (p: string) => p.startsWith("/projects") || p.startsWith("/p/") || p.startsWith("/t/") },
|
||||
{ href: "/runners", label: "Раннеры", match: (p: string) => p.startsWith("/runners") },
|
||||
{ href: "/help", label: "Помощь", match: (p: string) => p.startsWith("/help") },
|
||||
];
|
||||
|
||||
export function Nav() {
|
||||
const path = usePathname();
|
||||
return (
|
||||
<nav>
|
||||
{ITEMS.map((i) => (
|
||||
<Link key={i.href} href={i.href} className={i.match(path) ? "active" : undefined} aria-current={i.match(path) ? "page" : undefined}>
|
||||
{i.label}
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
export function SettingsLink() {
|
||||
const active = usePathname().startsWith("/settings");
|
||||
return (
|
||||
<Link href="/settings" className={active ? "active" : undefined} aria-current={active ? "page" : undefined}>
|
||||
Настройки
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
77
apps/web/components/Sidebar.tsx
Normal file
77
apps/web/components/Sidebar.tsx
Normal file
@ -0,0 +1,77 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { Bot, FolderKanban, House, LifeBuoy, LogOut, Settings, type LucideIcon } from "lucide-react";
|
||||
import { ThemeToggle } from "@/components/ThemeToggle";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Item {
|
||||
href: string;
|
||||
label: string;
|
||||
icon: LucideIcon;
|
||||
match: (p: string) => boolean;
|
||||
count?: "questions" | "waitingRunners";
|
||||
}
|
||||
|
||||
const ITEMS: Item[] = [
|
||||
{ href: "/", label: "Главная", icon: House, match: (p) => p === "/", count: "questions" },
|
||||
{ href: "/projects", label: "Проекты", icon: FolderKanban, match: (p) => p.startsWith("/projects") || p.startsWith("/p/") || p.startsWith("/t/") },
|
||||
{ href: "/runners", label: "Раннеры", icon: Bot, match: (p) => p.startsWith("/runners"), count: "waitingRunners" },
|
||||
{ href: "/help", label: "Помощь", icon: LifeBuoy, match: (p) => p.startsWith("/help") },
|
||||
{ href: "/settings", label: "Настройки", icon: Settings, match: (p) => p.startsWith("/settings") },
|
||||
];
|
||||
const COUNT_TITLE = { questions: "вопросов ждут тебя", waitingRunners: "раннеров ждут тебя" };
|
||||
|
||||
/** Left panel on desktop; on phones a top bar plus a bottom tab bar (PEP-38): sections with «ждут тебя» counters, theme, user. */
|
||||
export function Sidebar({ login, avatarUrl, counts }: { login: string; avatarUrl: string | null; counts: Record<"questions" | "waitingRunners", number> }) {
|
||||
const path = usePathname();
|
||||
return (
|
||||
<header className="sticky top-0 z-30 flex h-14 items-center gap-2 border-b bg-sidebar px-3 md:h-dvh md:flex-col md:items-stretch md:gap-1 md:border-r md:border-b-0 md:px-3 md:py-4">
|
||||
<Link href="/" className="flex shrink-0 items-center gap-2 rounded-md px-1 text-foreground hover:no-underline md:mb-4 md:px-2">
|
||||
<span className="grid size-7 place-items-center rounded-md bg-primary font-mono text-sm font-bold text-primary-foreground shadow-[0_0_18px_-4px_var(--primary)]">P</span>
|
||||
<span className="font-mono text-[15px] font-semibold tracking-tight">peppa</span>
|
||||
<span className="hidden font-mono text-[11px] text-muted-foreground md:inline">фабрика</span>
|
||||
</Link>
|
||||
<nav
|
||||
aria-label="Разделы"
|
||||
className="fixed inset-x-0 bottom-0 z-30 grid grid-cols-5 border-t bg-sidebar/95 pb-[env(safe-area-inset-bottom)] backdrop-blur md:static md:flex md:flex-col md:gap-0.5 md:border-0 md:bg-transparent md:pb-0 md:backdrop-blur-none"
|
||||
>
|
||||
{ITEMS.map((i) => {
|
||||
const active = i.match(path);
|
||||
const n = i.count ? counts[i.count] : 0;
|
||||
return (
|
||||
<Link
|
||||
key={i.href}
|
||||
href={i.href}
|
||||
aria-current={active ? "page" : undefined}
|
||||
className={cn(
|
||||
"relative flex flex-col items-center gap-0.5 px-1 pt-2 pb-1.5 text-[10px] text-muted-foreground transition-colors hover:text-foreground hover:no-underline md:flex-row md:gap-2 md:rounded-md md:px-2.5 md:py-1.5 md:text-sm md:hover:bg-accent",
|
||||
active && "font-medium text-foreground md:bg-accent md:before:absolute md:before:inset-y-1.5 md:before:-left-3 md:before:w-0.5 md:before:rounded-full md:before:bg-primary",
|
||||
)}
|
||||
>
|
||||
<i.icon className={cn("size-5 md:size-4", active && "text-primary")} />
|
||||
<span>{i.label}</span>
|
||||
{n > 0 && (
|
||||
<span title={`${n} ${COUNT_TITLE[i.count!]}`} className="absolute top-1 left-[calc(50%+6px)] min-w-4 rounded-full bg-primary px-1 text-center font-mono text-[10px] font-semibold leading-4 text-primary-foreground tabular-nums md:static md:ml-auto md:min-w-5 md:px-1.5 md:text-[11px] md:leading-5">
|
||||
{n}
|
||||
</span>
|
||||
)}
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</nav>
|
||||
<div className="ml-auto flex shrink-0 items-center gap-1 md:mt-auto md:ml-0 md:border-t md:pt-3">
|
||||
{avatarUrl && <img src={avatarUrl} alt="" width={24} height={24} className="hidden size-6 rounded-full md:block" />}
|
||||
<span className="hidden min-w-0 flex-1 truncate text-sm md:block" title={login}>{login}</span>
|
||||
<ThemeToggle />
|
||||
<form action="/logout" method="post">
|
||||
<Button variant="ghost" size="icon-sm" aria-label="Выйти" title="Выйти">
|
||||
<LogOut />
|
||||
</Button>
|
||||
</form>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
19
apps/web/components/ThemeToggle.tsx
Normal file
19
apps/web/components/ThemeToggle.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
|
||||
import { Moon, Sun } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { THEME_COOKIE } from "@/lib/theme";
|
||||
|
||||
/** Dark ⇄ light; the choice lives in a cookie for a year (the root layout reads it). */
|
||||
export function ThemeToggle() {
|
||||
const toggle = () => {
|
||||
const dark = document.documentElement.classList.toggle("dark");
|
||||
document.cookie = `${THEME_COOKIE}=${dark ? "dark" : "light"}; path=/; max-age=31536000; samesite=lax`;
|
||||
};
|
||||
return (
|
||||
<Button variant="ghost" size="icon-sm" onClick={toggle} aria-label="Сменить тему" title="Сменить тему">
|
||||
<Sun className="hidden dark:block" />
|
||||
<Moon className="dark:hidden" />
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
27
apps/web/components/Workspace.tsx
Normal file
27
apps/web/components/Workspace.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { ActivityAside } from "@/components/ActivityAside";
|
||||
import { Footer } from "@/components/Footer";
|
||||
|
||||
/**
|
||||
* Centre + right panel of the console (PEP-38). The page decides what the right panel shows;
|
||||
* without `aside` it gets the default activity panel, `aside={null}` hides it.
|
||||
* Below xl the panel goes under the page content, the footer is always last.
|
||||
*/
|
||||
export function Workspace({ children, aside }: { children: ReactNode; aside?: ReactNode }) {
|
||||
const panel = aside === undefined ? <ActivityAside /> : aside;
|
||||
return (
|
||||
<div className="grid flex-1 xl:grid-cols-[minmax(0,1fr)_360px] xl:grid-rows-[1fr_auto]">
|
||||
<main className="min-w-0 px-4 py-5 md:px-8 md:py-7">
|
||||
<div className="mx-auto w-full max-w-5xl">{children}</div>
|
||||
</main>
|
||||
{panel && (
|
||||
<aside aria-label="Панель" className="min-w-0 border-t bg-sidebar/60 px-4 py-5 xl:sticky xl:top-0 xl:col-start-2 xl:row-span-2 xl:row-start-1 xl:h-dvh xl:overflow-y-auto xl:border-t-0 xl:border-l">
|
||||
{panel}
|
||||
</aside>
|
||||
)}
|
||||
<div className="xl:col-start-1">
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
29
apps/web/components/ui/badge.tsx
Normal file
29
apps/web/components/ui/badge.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import * as React from "react";
|
||||
import { cva, type VariantProps } from "class-variance-authority";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const badgeVariants = cva(
|
||||
"inline-flex w-fit shrink-0 items-center gap-1 whitespace-nowrap rounded-full border px-2 py-0.5 text-xs font-medium [&>svg]:size-3",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "border-transparent bg-primary text-primary-foreground",
|
||||
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
||||
outline: "border-border text-muted-foreground",
|
||||
primary: "border-primary/30 bg-primary/12 text-primary",
|
||||
ok: "border-ok/30 bg-ok/12 text-ok",
|
||||
warn: "border-warn/30 bg-warn/12 text-warn",
|
||||
info: "border-info/30 bg-info/12 text-info",
|
||||
danger: "border-destructive/30 bg-destructive/12 text-destructive",
|
||||
muted: "border-transparent bg-muted text-muted-foreground",
|
||||
},
|
||||
},
|
||||
defaultVariants: { variant: "secondary" },
|
||||
},
|
||||
);
|
||||
|
||||
function Badge({ className, variant, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants>) {
|
||||
return <span data-slot="badge" className={cn(badgeVariants({ variant }), className)} {...props} />;
|
||||
}
|
||||
|
||||
export { Badge, badgeVariants };
|
||||
42
apps/web/components/ui/button.tsx
Normal file
42
apps/web/components/ui/button.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import * as React from "react";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import { cva, type VariantProps } from "class-variance-authority";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const buttonVariants = cva(
|
||||
"inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent text-sm font-medium transition-colors outline-none hover:no-underline focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
||||
destructive: "border-destructive/40 bg-destructive/10 text-destructive hover:bg-destructive/20",
|
||||
outline: "border-border bg-card text-foreground shadow-xs hover:bg-accent",
|
||||
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||
ghost: "bg-transparent text-foreground hover:bg-accent",
|
||||
link: "h-auto border-0 bg-transparent p-0 text-primary underline-offset-4 hover:underline",
|
||||
},
|
||||
size: {
|
||||
default: "h-9 px-4 py-2",
|
||||
sm: "h-8 gap-1.5 px-3 text-[13px]",
|
||||
xs: "h-7 gap-1 rounded-md px-2 text-xs",
|
||||
lg: "h-10 px-6",
|
||||
icon: "size-9",
|
||||
"icon-sm": "size-8",
|
||||
},
|
||||
},
|
||||
defaultVariants: { variant: "outline", size: "default" },
|
||||
},
|
||||
);
|
||||
|
||||
function Button({
|
||||
className,
|
||||
variant,
|
||||
size,
|
||||
asChild = false,
|
||||
...props
|
||||
}: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & { asChild?: boolean }) {
|
||||
const Comp = asChild ? Slot : "button";
|
||||
return <Comp data-slot="button" className={cn(buttonVariants({ variant, size, className }))} {...props} />;
|
||||
}
|
||||
|
||||
export { Button, buttonVariants };
|
||||
24
apps/web/components/ui/card.tsx
Normal file
24
apps/web/components/ui/card.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Card({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return <div data-slot="card" className={cn("flex flex-col gap-3 rounded-lg border bg-card p-4 text-card-foreground", className)} {...props} />;
|
||||
}
|
||||
|
||||
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return <div data-slot="card-header" className={cn("flex flex-wrap items-center gap-x-2 gap-y-1", className)} {...props} />;
|
||||
}
|
||||
|
||||
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return <div data-slot="card-title" className={cn("font-semibold leading-tight", className)} {...props} />;
|
||||
}
|
||||
|
||||
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return <div data-slot="card-description" className={cn("text-sm text-muted-foreground", className)} {...props} />;
|
||||
}
|
||||
|
||||
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return <div data-slot="card-content" className={cn("text-sm", className)} {...props} />;
|
||||
}
|
||||
|
||||
export { Card, CardHeader, CardTitle, CardDescription, CardContent };
|
||||
24
apps/web/components/ui/input.tsx
Normal file
24
apps/web/components/ui/input.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const fieldClass =
|
||||
"w-full min-w-0 rounded-md border border-input bg-background/60 px-3 text-sm text-foreground shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/40 disabled:opacity-50";
|
||||
|
||||
function Input({ className, type = "text", ...props }: React.ComponentProps<"input">) {
|
||||
return <input type={type} data-slot="input" className={cn(fieldClass, "h-9 py-1", className)} {...props} />;
|
||||
}
|
||||
|
||||
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
||||
return <textarea data-slot="textarea" className={cn(fieldClass, "min-h-16 resize-y py-2", className)} {...props} />;
|
||||
}
|
||||
|
||||
/** Native select styled like the inputs: no client JS, works inside server-action forms. */
|
||||
function NativeSelect({ className, ...props }: React.ComponentProps<"select">) {
|
||||
return <select data-slot="select" className={cn(fieldClass, "h-9 py-1 pr-8", className)} {...props} />;
|
||||
}
|
||||
|
||||
function Label({ className, ...props }: React.ComponentProps<"label">) {
|
||||
return <label data-slot="label" className={cn("flex flex-col gap-1.5 text-sm font-medium", className)} {...props} />;
|
||||
}
|
||||
|
||||
export { Input, Textarea, NativeSelect, Label, fieldClass };
|
||||
8
apps/web/components/ui/separator.tsx
Normal file
8
apps/web/components/ui/separator.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import * as React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Separator({ className, ...props }: React.ComponentProps<"hr">) {
|
||||
return <hr data-slot="separator" className={cn("my-4 border-0 border-t border-border", className)} {...props} />;
|
||||
}
|
||||
|
||||
export { Separator };
|
||||
@ -2,6 +2,7 @@ import { getUser, isUserAllowed, sign, verify, type User } from "@peppa/core";
|
||||
import { loadEnv } from "@peppa/shared";
|
||||
import { cookies, headers } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
import { cache } from "react";
|
||||
import { db } from "./db";
|
||||
|
||||
export const SESSION_COOKIE = "peppa_session";
|
||||
@ -17,13 +18,14 @@ interface SessionPayload {
|
||||
exp: number;
|
||||
}
|
||||
|
||||
export async function currentUser(): Promise<User | null> {
|
||||
/** Memoized per request: the layout, the page and the side panel all ask for the user. */
|
||||
export const currentUser = cache(async (): Promise<User | null> => {
|
||||
const p = verify<SessionPayload>((await cookies()).get(SESSION_COOKIE)?.value);
|
||||
if (!p || p.exp < Date.now()) return null;
|
||||
const user = await getUser(db, p.uid);
|
||||
// Removed from the allowlist → the session stops working right away.
|
||||
return user && (await isUserAllowed(db, user)) ? user : null;
|
||||
}
|
||||
});
|
||||
|
||||
/** For pages and server actions: the logged-in user, or a redirect to /login. */
|
||||
export async function requireUser(): Promise<User> {
|
||||
|
||||
@ -3,7 +3,7 @@ import { join } from "node:path";
|
||||
import { listSessions, PeppaError, projectForUser, resolveTask, userProjectIds, type Project, type TaskRef } from "@peppa/core";
|
||||
import { events, goals, projects, questions, sessions, tasks } from "@peppa/db";
|
||||
import { formatTaskKey } from "@peppa/shared";
|
||||
import { and, asc, desc, eq, inArray, isNull } from "drizzle-orm";
|
||||
import { and, asc, count, desc, eq, inArray, isNull } from "drizzle-orm";
|
||||
import { db } from "./db";
|
||||
|
||||
export type InboxItem = Awaited<ReturnType<typeof inbox>>[number];
|
||||
@ -76,3 +76,12 @@ export function openspecArtifacts(p: Project, change: string | null): Array<{ na
|
||||
.map((f) => ({ name: f, text: readFileSync(join(dir, f), "utf8") }));
|
||||
}
|
||||
|
||||
|
||||
/** Counters of the side navigation (PEP-38): open PM questions and runners waiting for the PM. */
|
||||
export async function navCounts(userId: number): Promise<{ questions: number; waitingRunners: number }> {
|
||||
const ids = await userProjectIds(db, userId);
|
||||
if (!ids.length) return { questions: 0, waitingRunners: 0 };
|
||||
const [q] = await db.select({ n: count() }).from(questions).where(and(inArray(questions.projectId, ids), isNull(questions.answeredAt)));
|
||||
const [r] = await db.select({ n: count() }).from(sessions).where(and(inArray(sessions.projectId, ids), eq(sessions.status, "waiting_input")));
|
||||
return { questions: q?.n ?? 0, waitingRunners: r?.n ?? 0 };
|
||||
}
|
||||
|
||||
42
apps/web/lib/status.ts
Normal file
42
apps/web/lib/status.ts
Normal file
@ -0,0 +1,42 @@
|
||||
// Labels and colour tones of task and runner statuses, shared by badges, rows and the side panel.
|
||||
export type Tone = "primary" | "ok" | "warn" | "info" | "danger" | "muted";
|
||||
|
||||
export const TASK_STATUS: Record<string, { label: string; tone: Tone }> = {
|
||||
backlog: { label: "Бэклог", tone: "muted" },
|
||||
proposing: { label: "Proposal", tone: "primary" },
|
||||
awaiting_approval: { label: "Ждёт одобрения", tone: "primary" },
|
||||
in_progress: { label: "В работе", tone: "info" },
|
||||
review: { label: "Ревью", tone: "ok" },
|
||||
done: { label: "Готово", tone: "ok" },
|
||||
blocked: { label: "Блок", tone: "danger" },
|
||||
};
|
||||
|
||||
export const SESSION_STATUS: Record<string, { label: string; tone: Tone }> = {
|
||||
starting: { label: "запуск", tone: "info" },
|
||||
running: { label: "работает", tone: "info" },
|
||||
waiting_input: { label: "ждёт тебя", tone: "primary" },
|
||||
idle: { label: "простаивает", tone: "muted" },
|
||||
stalled: { label: "зависла?", tone: "warn" },
|
||||
rate_limited: { label: "лимит", tone: "warn" },
|
||||
done: { label: "завершена", tone: "ok" },
|
||||
failed: { label: "упала", tone: "danger" },
|
||||
};
|
||||
|
||||
/** Text colour per tone, e.g. for status dots. */
|
||||
export const TONE_TEXT: Record<Tone, string> = {
|
||||
primary: "text-primary",
|
||||
ok: "text-ok",
|
||||
warn: "text-warn",
|
||||
info: "text-info",
|
||||
danger: "text-destructive",
|
||||
muted: "text-muted-foreground",
|
||||
};
|
||||
|
||||
export const TONE_BG: Record<Tone, string> = {
|
||||
primary: "bg-primary",
|
||||
ok: "bg-ok",
|
||||
warn: "bg-warn",
|
||||
info: "bg-info",
|
||||
danger: "bg-destructive",
|
||||
muted: "bg-muted-foreground",
|
||||
};
|
||||
2
apps/web/lib/theme.ts
Normal file
2
apps/web/lib/theme.ts
Normal file
@ -0,0 +1,2 @@
|
||||
/** Cookie with the chosen theme: "light" or "dark" (default when missing). */
|
||||
export const THEME_COOKIE = "peppa_theme";
|
||||
6
apps/web/lib/utils.ts
Normal file
6
apps/web/lib/utils.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
@ -10,20 +10,28 @@
|
||||
"typecheck": "tsc -p ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "1.32.2",
|
||||
"@peppa/bugsink": "workspace:*",
|
||||
"@peppa/core": "workspace:*",
|
||||
"@peppa/db": "workspace:*",
|
||||
"@peppa/mcp": "workspace:*",
|
||||
"@peppa/runner": "workspace:*",
|
||||
"@peppa/shared": "workspace:*",
|
||||
"@radix-ui/react-slot": "1.5.0",
|
||||
"class-variance-authority": "0.7.1",
|
||||
"clsx": "2.1.1",
|
||||
"drizzle-orm": "0.45.4",
|
||||
"geist": "1.9.2",
|
||||
"lucide-react": "1.72.0",
|
||||
"next": "16.4.6",
|
||||
"react": "19.3.1",
|
||||
"react-dom": "19.3.1",
|
||||
"@peppa/core": "workspace:*",
|
||||
"@peppa/runner": "workspace:*",
|
||||
"drizzle-orm": "0.45.4",
|
||||
"@peppa/mcp": "workspace:*",
|
||||
"@modelcontextprotocol/sdk": "1.32.2"
|
||||
"tailwind-merge": "3.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "4.3.5",
|
||||
"@types/react": "19.3.0",
|
||||
"@types/react-dom": "19.3.0"
|
||||
"@types/react-dom": "19.3.0",
|
||||
"tailwindcss": "4.3.5"
|
||||
}
|
||||
}
|
||||
|
||||
1
apps/web/postcss.config.mjs
Normal file
1
apps/web/postcss.config.mjs
Normal file
@ -0,0 +1 @@
|
||||
export default { plugins: { "@tailwindcss/postcss": {} } };
|
||||
112
apps/web/scripts/mock-ui-seed.ts
Normal file
112
apps/web/scripts/mock-ui-seed.ts
Normal file
@ -0,0 +1,112 @@
|
||||
// Demo data for checking the web UI by eye (PEP-38): a user, two projects, goals, tasks on every board
|
||||
// column, runners in every status (one hit the usage limit and resumes later), open questions, releases.
|
||||
// Only for a throwaway database — refuses the production one:
|
||||
// DATABASE_URL=postgres://peppa:peppa@127.0.0.1:5433/peppa_ui tsx apps/web/scripts/mock-ui-seed.ts [login]
|
||||
import { mkdirSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { createDb, events, goals, projects, questions, releases, sessions, tasks, users } from "@peppa/db";
|
||||
import { eq } from "drizzle-orm";
|
||||
|
||||
const url = process.env.DATABASE_URL ?? "";
|
||||
if (!url || /\/peppa$/.test(url)) throw new Error("mock-ui-seed: point DATABASE_URL at a throwaway database, not the production one");
|
||||
const login = process.argv[2] ?? "mock-pm";
|
||||
const db = createDb(url);
|
||||
const ago = (min: number) => new Date(Date.now() - min * 60_000);
|
||||
const ws = join(tmpdir(), "peppa-mock-ui");
|
||||
|
||||
// Negative Gitea id = local account: allowed in without the allowlist.
|
||||
const [user] = await db.insert(users).values({ giteaId: -900001, login }).onConflictDoUpdate({ target: users.login, set: { login } }).returning();
|
||||
|
||||
async function project(key: string, name: string, slug: string) {
|
||||
mkdirSync(join(ws, slug), { recursive: true });
|
||||
const [p] = await db
|
||||
.insert(projects)
|
||||
.values({ key, name, slug, giteaOwner: login, giteaRepo: slug, workspacePath: join(ws, slug), ownerId: user!.id })
|
||||
.returning();
|
||||
return p!;
|
||||
}
|
||||
|
||||
const pay = await project("PAY", "Платёжный сервис", "mock-payments");
|
||||
const shop = await project("SHOP", "Витрина магазина", "mock-shop");
|
||||
const [g1, g2] = await db
|
||||
.insert(goals)
|
||||
.values([
|
||||
{ projectId: pay.id, title: "Оплата картой", description: "Карты РФ и СБП" },
|
||||
{ projectId: pay.id, title: "Стабильность", description: "Ошибки из прода" },
|
||||
])
|
||||
.returning();
|
||||
|
||||
type T = { title: string; status: (typeof tasks.$inferInsert)["status"]; goalId?: number; description?: string; prUrl?: string };
|
||||
async function addTasks(projectId: number, list: T[]) {
|
||||
const rows = await db
|
||||
.insert(tasks)
|
||||
.values(list.map((t, i) => ({ projectId, number: i + 1, ...t })))
|
||||
.returning();
|
||||
await db.update(projects).set({ nextTaskNumber: list.length + 1 }).where(eq(projects.id, projectId));
|
||||
return rows;
|
||||
}
|
||||
const pt = await addTasks(pay.id, [
|
||||
{ title: "Оплата картой через ЮKassa", status: "in_progress", goalId: g1!.id, description: "Подключить ЮKassa, вебхуки статуса платежа." },
|
||||
{ title: "Возвраты платежей", status: "awaiting_approval", goalId: g1!.id },
|
||||
{ title: "Оплата по СБП", status: "in_progress", goalId: g1!.id },
|
||||
{ title: "Чеки по 54-ФЗ", status: "review", goalId: g1!.id, prUrl: "https://git.telecom.quest/mock/mock-payments/pulls/4" },
|
||||
{ title: "TypeError в форме оплаты", status: "backlog", goalId: g2!.id },
|
||||
{ title: "Логи платежей в Bugsink", status: "done", goalId: g2!.id },
|
||||
{ title: "Рефакторинг конфигурации", status: "proposing" },
|
||||
]);
|
||||
const st = await addTasks(shop.id, [
|
||||
{ title: "Каталог с фильтрами", status: "in_progress" },
|
||||
{ title: "Корзина и промокоды", status: "blocked" },
|
||||
{ title: "Поиск по товарам", status: "backlog" },
|
||||
]);
|
||||
|
||||
type S = { task: (typeof pt)[number]; status: (typeof sessions.$inferInsert)["status"]; min: number; provider?: "claude" | "codex"; resumeAt?: Date; gen?: number };
|
||||
const runners: S[] = [
|
||||
{ task: pt[1]!, status: "waiting_input", min: 3 },
|
||||
{ task: pt[0]!, status: "running", min: 1 },
|
||||
{ task: pt[2]!, status: "rate_limited", min: 42, resumeAt: new Date(Date.now() + 95 * 60_000), gen: 2 },
|
||||
{ task: pt[3]!, status: "idle", min: 18 },
|
||||
{ task: st[0]!, status: "running", min: 0, provider: "codex" },
|
||||
{ task: st[1]!, status: "stalled", min: 27 },
|
||||
{ task: pt[5]!, status: "done", min: 600 },
|
||||
{ task: pt[4]!, status: "failed", min: 1500 },
|
||||
];
|
||||
const made = [];
|
||||
for (const [i, r] of runners.entries()) {
|
||||
const key = r.task.projectId === pay.id ? "pay" : "shop";
|
||||
const [s] = await db
|
||||
.insert(sessions)
|
||||
.values({
|
||||
projectId: r.task.projectId,
|
||||
taskId: r.task.id,
|
||||
tmuxName: `peppa-${key}-${r.task.number}-s${100 + i}`,
|
||||
provider: r.provider ?? "claude",
|
||||
status: r.status,
|
||||
generation: r.gen ?? 1,
|
||||
lastActivityAt: ago(r.min),
|
||||
resumeAt: r.resumeAt ?? null,
|
||||
limitResumes: r.resumeAt ? 1 : 0,
|
||||
startedAt: ago(r.min + 30),
|
||||
endedAt: r.status === "done" || r.status === "failed" ? ago(r.min) : null,
|
||||
})
|
||||
.returning();
|
||||
made.push(s!);
|
||||
}
|
||||
|
||||
await db.insert(questions).values([
|
||||
{ projectId: pay.id, taskId: pt[1]!.id, sessionId: made[0]!.id, kind: "approval", text: "Proposal pep-2-refunds: частичные возвраты через API ЮKassa, новая таблица refunds. Одобрить?" },
|
||||
{ projectId: pay.id, taskId: pt[0]!.id, sessionId: made[1]!.id, kind: "permission", text: "Bash: pnpm add @yookassa/sdk@3.1.0" },
|
||||
{ projectId: pay.id, taskId: pt[3]!.id, sessionId: made[3]!.id, kind: "attention", text: "PAY-4 готово к ревью: чеки уходят в АТОЛ, PR #4, проверки зелёные." },
|
||||
{ projectId: shop.id, taskId: st[1]!.id, kind: "question", text: "Промокоды суммируются со скидкой на товар?", options: ["Да", "Нет, берём большую"] },
|
||||
]);
|
||||
await db.insert(events).values([
|
||||
{ projectId: pay.id, taskId: pt[0]!.id, sessionId: made[1]!.id, type: "progress", payload: { text: "Вебхук статуса платежа готов, пишу тесты" } },
|
||||
{ projectId: pay.id, taskId: pt[0]!.id, type: "task_updated", payload: { to: { status: "in_progress" } } },
|
||||
]);
|
||||
await db.insert(releases).values([
|
||||
{ projectId: pay.id, env: "staging", sha: "a1b2c3d4e5f6", status: "healthy", host: "mock-payments-staging.telecom.quest", tasks: ["PAY-6"], deployedBy: "ci" },
|
||||
{ projectId: pay.id, env: "prod", sha: "9f8e7d6c5b4a", status: "healthy", host: "mock-payments-prod.telecom.quest", tasks: ["PAY-5"], deployedBy: login },
|
||||
]);
|
||||
console.log(`seeded: user ${login}, projects PAY and SHOP, ${made.length} runners`);
|
||||
process.exit(0);
|
||||
56
openspec/changes/pep-38-factory-console/design.md
Normal file
56
openspec/changes/pep-38-factory-console/design.md
Normal file
@ -0,0 +1,56 @@
|
||||
# Дизайн: пульт фабрики
|
||||
|
||||
## Стек
|
||||
- **Tailwind v4** через `@tailwindcss/postcss` (`postcss.config.mjs`), конфиг в CSS
|
||||
(`@theme inline`) — без `tailwind.config.js`.
|
||||
- **shadcn/ui** — копируем исходники нужных компонентов в `components/ui/` (button,
|
||||
badge, card, input, textarea, select, label, separator, kbd-подобные мелочи), без CLI и
|
||||
без сети: компоненты — обычный код репо, правим под себя. Radix только `react-slot`
|
||||
(для `asChild`); выпадашки/диалоги не нужны — формы остаются серверными (server
|
||||
actions), без клиентского JS там, где его не было.
|
||||
- **Иконки** — `lucide-react`.
|
||||
- **Шрифты** — `geist` (локальные woff2 через `next/font/local` внутри пакета): сборка не
|
||||
ходит в Google Fonts, CI работает без внешней сети.
|
||||
|
||||
## Тема
|
||||
CSS-переменные в стиле shadcn (`--background`, `--foreground`, `--card`, `--muted`,
|
||||
`--primary`, `--border`, …) + свои статусные (`--ok`, `--warn`, `--danger`, `--info`).
|
||||
`:root` — светлая, `.dark` — тёмная. Корневой layout читает cookie `peppa_theme` на
|
||||
сервере и ставит `class="dark"` на `<html>`, если cookie не `light` — тёмная по
|
||||
умолчанию, без мигания и без инлайн-скрипта. Переключатель в навигации меняет класс и
|
||||
пишет cookie на год.
|
||||
|
||||
Один яркий акцент — розовый Пеппы (`--primary`), остальное — нейтральные серо-синие
|
||||
поверхности; моноширинный шрифт для ключей задач, tmux-имён и строк раннеров.
|
||||
|
||||
## Раскладка
|
||||
`app/(app)/layout.tsx`: грид `[nav 232px] [страница]`. Страница сама решает, есть ли у
|
||||
неё правая панель: компонент `Workspace({ children, aside })` рисует центр и правую
|
||||
колонку (`xl:grid-cols-[minmax(0,1fr)_360px]`). Так правая панель зависит от данных
|
||||
страницы (выбранный раннер), без параллельных маршрутов Next.
|
||||
- Без `aside` страница получает панель по умолчанию `ActivityAside`: «ждут тебя»
|
||||
(сколько и ссылка на Главную) и активные раннеры коротким списком.
|
||||
- Ниже `xl` правая панель уходит под центр; ниже `md` сверху остаётся полоса с логотипом,
|
||||
темой и выходом, а разделы — панель вкладок внизу экрана (5 пунктов со счётчиками).
|
||||
- Счётчик «ждут тебя» в навигации — число открытых вопросов PM (`inbox`), считается в
|
||||
layout на каждый запрос (страницы и так `force-dynamic`), раннеры — число раннеров в
|
||||
`waiting_input`.
|
||||
|
||||
## Перенос (этап 2)
|
||||
Каждая страница переписывается на компоненты; классы старого CSS исчезают вместе с
|
||||
файлом. Функциональность и формы (server actions, скрытые поля `back`) — без изменений.
|
||||
Этап 1 подключает старый CSS как `@import "./legacy.css" layer(base)`: в слое `base` он
|
||||
проигрывает утилитам Tailwind, поэтому новые компоненты и старые страницы уживаются.
|
||||
|
||||
## Пульт раннеров (этап 3)
|
||||
- Фильтры — ссылки `?f=` со счётчиками (как в PEP-61), поиск — `?q=` (GET-форма, работает
|
||||
без JS) по ключу задачи, названию, проекту, tmux-имени и номеру.
|
||||
- Строка: цветная точка статуса, `KEY-N` моно, название, проект, агент, «N мин назад»;
|
||||
`waiting_input` подсвечен акцентом; `rate_limited` с `resume_at` в будущем —
|
||||
«остановлена · продолжит в HH:MM» (время в часовом поясе браузера: маленький клиентский
|
||||
компонент, сервер отдаёт ISO).
|
||||
- Выбор — `?id=<session>`; правая панель — детали: статус, задача, проект, агент,
|
||||
поколение, tmux attach, лимит (продолжит в, сколько авто-продолжений сегодня), открытые
|
||||
вопросы этого раннера с формой ответа, сообщение в сессию, остановить/resume и
|
||||
заглушка «Терминал — PEP-9». На мобильной ширине выбранный раннер показывается
|
||||
над списком.
|
||||
39
openspec/changes/pep-38-factory-console/proposal.md
Normal file
39
openspec/changes/pep-38-factory-console/proposal.md
Normal file
@ -0,0 +1,39 @@
|
||||
# PEP-38: Новый UI «пульт фабрики»
|
||||
|
||||
## Зачем
|
||||
Веб Пеппы вырос из одной страницы входящих: верхнее меню, страницы-простыни, свой CSS
|
||||
на 190 строк. PM хочет пульт: всё важное на одном экране — навигация со счётчиком «ждут
|
||||
тебя», список раннеров, детали выбранного раннера (позже — живой терминал, PEP-9).
|
||||
Референс — detachbox. Решение PM (2026-11-13): shadcn/ui + Tailwind, иконки lucide,
|
||||
тёмная тема по умолчанию.
|
||||
|
||||
## Что меняется
|
||||
- **Основа**: Tailwind CSS v4 и компоненты в стиле shadcn/ui (`apps/web/components/ui/*`,
|
||||
исходники в репо, без рантайм-библиотеки), lucide-react, шрифты Geist Sans/Mono
|
||||
(пакет `geist`, без загрузки из сети при сборке). Токены темы — CSS-переменные; тёмная
|
||||
тема по умолчанию, светлая — переключателем (cookie `peppa_theme`).
|
||||
- **Раскладка в три панели** на десктопе: слева навигация (Главная со счётчиком «ждут
|
||||
тебя», Проекты, Раннеры со счётчиком, Помощь, Настройки, пользователь), в центре
|
||||
страница, справа контекстная панель. На мобильной ширине — панель вкладок снизу,
|
||||
правая панель уходит под центр.
|
||||
- **Перенос всех страниц** (Главная, проекты, доска, задача, раннеры, настройки,
|
||||
помощь, ошибки PEP-58, релизы и проверки PEP-57, вход, экран согласия OAuth) на
|
||||
компоненты; старый `globals.css` удаляется.
|
||||
- **Пульт раннеров**: список в центре с фильтрами-счётчиками (ждут тебя / работают /
|
||||
упали / готово), поиском, цветными статусами, подсветкой строк, где нужен PM, и
|
||||
«остановлена · продолжит в HH:MM» для лимита (`sessions.resume_at`, PEP-56). Справа —
|
||||
детали выбранного раннера с действиями и местом под терминал (PEP-9).
|
||||
|
||||
## Вне задачи
|
||||
PEP-9 (терминал — только заглушка), PEP-5 (полоса лимитов — только место), PEP-52 (⌘K),
|
||||
PEP-62 (чаты), PEP-39/PEP-33 (аккаунт агента и «что делает сейчас» в строке раннера).
|
||||
|
||||
## Этапы (отдельные PR)
|
||||
1. Основа + раскладка; старые стили продолжают работать в слое `base`.
|
||||
2. Перенос страниц, удаление `globals.css`.
|
||||
3. Пульт раннеров.
|
||||
|
||||
## Влияние
|
||||
Только `apps/web`. Модель данных, сервер и API не меняются. Новые зависимости веба:
|
||||
`tailwindcss`, `@tailwindcss/postcss`, `lucide-react`, `class-variance-authority`,
|
||||
`clsx`, `tailwind-merge`, `geist`, `@radix-ui/react-slot`.
|
||||
@ -0,0 +1,85 @@
|
||||
# Spec Delta: web-workspace
|
||||
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Раскладка пульта
|
||||
Веб SHALL показывать вошедшему пользователю раскладку в три панели: слева навигация, в центре страница, справа контекстная панель; на узком экране разделы — панель вкладок снизу, а правая панель уходит под центр.
|
||||
|
||||
#### Scenario: Десктоп
|
||||
- **GIVEN** вошедший пользователь на экране шириной 1440 px
|
||||
- **WHEN** он открывает любую страницу за входом
|
||||
- **THEN** слева видна навигация «Главная», «Проекты», «Раннеры», «Помощь», «Настройки», в центре — страница, справа — контекстная панель
|
||||
|
||||
#### Scenario: Телефон
|
||||
- **GIVEN** вошедший пользователь на экране шириной 390 px
|
||||
- **WHEN** он открывает Главную
|
||||
- **THEN** разделы — панель вкладок внизу экрана, страница не прокручивается по горизонтали, правая панель — под содержимым
|
||||
|
||||
### Requirement: Счётчик «ждут тебя»
|
||||
Навигация SHALL показывать у пункта «Главная» число открытых вопросов агентов по проектам пользователя, а у пункта «Раннеры» — число раннеров, ждущих PM.
|
||||
|
||||
#### Scenario: Есть вопросы
|
||||
- **GIVEN** в проектах пользователя 3 неотвеченных вопроса и 1 раннер в статусе «ждёт тебя»
|
||||
- **WHEN** он открывает любую страницу
|
||||
- **THEN** у «Главная» стоит счётчик 3, у «Раннеры» — 1
|
||||
|
||||
#### Scenario: Ничего не ждёт
|
||||
- **GIVEN** открытых вопросов и ждущих раннеров нет
|
||||
- **WHEN** пользователь открывает любую страницу
|
||||
- **THEN** счётчиков в навигации нет
|
||||
|
||||
### Requirement: Тема оформления
|
||||
Веб SHALL открываться в тёмной теме по умолчанию и позволять переключиться на светлую; выбор SHALL сохраняться между визитами.
|
||||
|
||||
#### Scenario: Первый визит
|
||||
- **GIVEN** пользователь ни разу не переключал тему
|
||||
- **WHEN** он открывает веб
|
||||
- **THEN** страница в тёмной теме
|
||||
|
||||
#### Scenario: Светлая тема сохраняется
|
||||
- **GIVEN** пользователь переключил тему на светлую
|
||||
- **WHEN** он закрывает и снова открывает веб
|
||||
- **THEN** страница в светлой теме без мигания тёмной
|
||||
|
||||
## MODIFIED Requirements
|
||||
|
||||
### Requirement: Верхнее меню
|
||||
Веб SHALL показывать меню навигации с пунктами «Главная», «Проекты», «Раннеры», «Помощь», «Настройки» и подсвечивать текущий раздел; на десктопе меню — левая панель, на узком экране — панель вкладок снизу.
|
||||
|
||||
#### Scenario: Главная
|
||||
- **GIVEN** вошедший пользователь
|
||||
- **WHEN** он открывает корень сайта
|
||||
- **THEN** в меню подсвечен пункт «Главная», пункта «Входящие» нет
|
||||
|
||||
#### Scenario: Задача проекта
|
||||
- **GIVEN** вошедший пользователь
|
||||
- **WHEN** он открывает страницу задачи «PAY-3»
|
||||
- **THEN** в меню подсвечен пункт «Проекты»
|
||||
|
||||
### Requirement: Список раннеров
|
||||
Страница «Раннеры» SHALL показывать в центре раннеры всех проектов пользователя (своих и общих) со статусом, проектом и задачей, агентом и временем последней активности, с фильтрами-счётчиками по состоянию и поиском, а справа — детали выбранного раннера с действиями.
|
||||
|
||||
#### Scenario: Раннер ждёт ответа
|
||||
- **GIVEN** у пользователя раннер по задаче PAY-3 в статусе «ждёт тебя» и раннер по PAY-4 «работает»
|
||||
- **WHEN** он открывает «Раннеры» и выбирает фильтр «ждут тебя»
|
||||
- **THEN** в списке только раннер PAY-3, строка подсвечена, у фильтра счётчик 1
|
||||
|
||||
#### Scenario: Чужие раннеры
|
||||
- **GIVEN** раннер в проекте, где пользователь не владелец и не участник
|
||||
- **WHEN** пользователь открывает «Раннеры»
|
||||
- **THEN** этого раннера в списке нет
|
||||
|
||||
#### Scenario: Поиск
|
||||
- **GIVEN** раннеры по задачам PAY-3 «Оплата картой» и PAY-4 «Возвраты»
|
||||
- **WHEN** пользователь ищет «возвр»
|
||||
- **THEN** в списке только раннер PAY-4
|
||||
|
||||
#### Scenario: Лимит
|
||||
- **GIVEN** раннер в статусе «лимит» с временем продолжения 03:10
|
||||
- **WHEN** пользователь открывает «Раннеры»
|
||||
- **THEN** в строке раннера написано «остановлена · продолжит в 03:10»
|
||||
|
||||
#### Scenario: Детали раннера
|
||||
- **GIVEN** раннер по задаче PAY-3 ждёт ответа на вопрос
|
||||
- **WHEN** пользователь выбирает его в списке
|
||||
- **THEN** справа видны статус, задача, агент, команда tmux attach, вопрос с формой ответа, кнопки «Остановить» и сообщение в сессию, и место под терминал
|
||||
25
openspec/changes/pep-38-factory-console/tasks.md
Normal file
25
openspec/changes/pep-38-factory-console/tasks.md
Normal file
@ -0,0 +1,25 @@
|
||||
# Задачи PEP-38
|
||||
|
||||
## 1. Основа (PR 1)
|
||||
- [x] 1.1 Tailwind v4 + PostCSS, токены темы (тёмная по умолчанию, светлая), шрифты Geist
|
||||
- [x] 1.2 Компоненты `components/ui/*` в стиле shadcn/ui, `cn()`, lucide-react
|
||||
- [x] 1.3 Раскладка: левая навигация со счётчиками, `Workspace` с правой панелью, `ActivityAside`, мобильная полоса
|
||||
- [x] 1.4 Переключатель темы (cookie `peppa_theme`, без мигания)
|
||||
- [x] 1.5 Старый CSS в слое `base`, все маршруты открываются; проверка в браузере (desktop + 390 px)
|
||||
|
||||
## 2. Перенос страниц (PR 2)
|
||||
- [ ] 2.1 Общие: QuestionCard, SessionCard, Badge, Flash/Notice, ProjectList, Footer
|
||||
- [ ] 2.2 Главная, Проекты, Новый проект
|
||||
- [ ] 2.3 Проект: доска, задачи/цели, релизы (PEP-57), ошибки (PEP-58), участники, репозиторий
|
||||
- [ ] 2.4 Задача: проверки (PEP-57), сессии, вопросы, OpenSpec, события
|
||||
- [ ] 2.5 Настройки, Помощь, вход, согласие OAuth
|
||||
- [ ] 2.6 Удалить `globals.css`/`legacy.css`; проверка всех страниц в браузере
|
||||
|
||||
## 3. Пульт раннеров (PR 3)
|
||||
- [ ] 3.1 Фильтры-счётчики, поиск `?q=`, строки со статусом и подсветкой
|
||||
- [ ] 3.2 «остановлена · продолжит в HH:MM» по `resume_at`
|
||||
- [ ] 3.3 Правая панель: детали выбранного раннера, вопросы, действия, заглушка терминала
|
||||
- [ ] 3.4 Помощь обновлена; проверка в браузере
|
||||
|
||||
## 4. Завершение
|
||||
- [ ] 4.1 `openspec archive`, задача в review с pr_url
|
||||
472
pnpm-lock.yaml
generated
472
pnpm-lock.yaml
generated
@ -217,9 +217,24 @@ importers:
|
||||
'@peppa/shared':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/shared
|
||||
'@radix-ui/react-slot':
|
||||
specifier: 1.5.0
|
||||
version: 1.5.0(@types/react@19.3.0)(react@19.3.1)
|
||||
class-variance-authority:
|
||||
specifier: 0.7.1
|
||||
version: 0.7.1
|
||||
clsx:
|
||||
specifier: 2.1.1
|
||||
version: 2.1.1
|
||||
drizzle-orm:
|
||||
specifier: 0.45.4
|
||||
version: 0.45.4(postgres@4.1.1)
|
||||
geist:
|
||||
specifier: 1.9.2
|
||||
version: 1.9.2(next@16.4.6(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))
|
||||
lucide-react:
|
||||
specifier: 1.72.0
|
||||
version: 1.72.0(@types/react@19.3.0)(react@19.3.1)
|
||||
next:
|
||||
specifier: 16.4.6
|
||||
version: 16.4.6(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
@ -229,13 +244,22 @@ importers:
|
||||
react-dom:
|
||||
specifier: 19.3.1
|
||||
version: 19.3.1(react@19.3.1)
|
||||
tailwind-merge:
|
||||
specifier: 3.7.0
|
||||
version: 3.7.0
|
||||
devDependencies:
|
||||
'@tailwindcss/postcss':
|
||||
specifier: 4.3.5
|
||||
version: 4.3.5
|
||||
'@types/react':
|
||||
specifier: 19.3.0
|
||||
version: 19.3.0
|
||||
'@types/react-dom':
|
||||
specifier: 19.3.0
|
||||
version: 19.3.0(@types/react@19.3.0)
|
||||
tailwindcss:
|
||||
specifier: 4.3.5
|
||||
version: 4.3.5
|
||||
|
||||
packages/bugsink: {}
|
||||
|
||||
@ -368,6 +392,10 @@ importers:
|
||||
|
||||
packages:
|
||||
|
||||
'@alloc/quick-lru@5.3.0':
|
||||
resolution: {integrity: sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
'@drizzle-team/brocli@0.10.2':
|
||||
resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}
|
||||
|
||||
@ -994,6 +1022,22 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
|
||||
|
||||
'@jridgewell/remapping@2.3.5':
|
||||
resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
|
||||
|
||||
'@jridgewell/resolve-uri@3.1.2':
|
||||
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
|
||||
engines: {node: '>=6.0.0'}
|
||||
|
||||
'@jridgewell/sourcemap-codec@1.6.0':
|
||||
resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
|
||||
|
||||
'@jridgewell/trace-mapping@0.3.31':
|
||||
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
||||
|
||||
'@modelcontextprotocol/sdk@1.32.2':
|
||||
resolution: {integrity: sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==}
|
||||
engines: {node: '>=18'}
|
||||
@ -1059,9 +1103,118 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@radix-ui/react-compose-refs@1.1.5':
|
||||
resolution: {integrity: sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==}
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
|
||||
peerDependenciesMeta:
|
||||
'@types/react':
|
||||
optional: true
|
||||
|
||||
'@radix-ui/react-slot@1.5.0':
|
||||
resolution: {integrity: sha512-tyYd9ddPXAysAbdbD9eYxgwpCSv6f3PncqVSNKQFSR5lcJVLz3cb/pANDoYrLiHBpXv7skortyUgGUWsYuPPFQ==}
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
|
||||
peerDependenciesMeta:
|
||||
'@types/react':
|
||||
optional: true
|
||||
|
||||
'@swc/helpers@0.5.23':
|
||||
resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
|
||||
|
||||
'@tailwindcss/node@4.3.5':
|
||||
resolution: {integrity: sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==}
|
||||
|
||||
'@tailwindcss/oxide-android-arm64@4.3.5':
|
||||
resolution: {integrity: sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
'@tailwindcss/oxide-darwin-arm64@4.3.5':
|
||||
resolution: {integrity: sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@tailwindcss/oxide-darwin-x64@4.3.5':
|
||||
resolution: {integrity: sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@tailwindcss/oxide-freebsd-x64@4.3.5':
|
||||
resolution: {integrity: sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
'@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5':
|
||||
resolution: {integrity: sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@tailwindcss/oxide-linux-arm64-gnu@4.3.5':
|
||||
resolution: {integrity: sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@tailwindcss/oxide-linux-arm64-musl@4.3.5':
|
||||
resolution: {integrity: sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@tailwindcss/oxide-linux-x64-gnu@4.3.5':
|
||||
resolution: {integrity: sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@tailwindcss/oxide-linux-x64-musl@4.3.5':
|
||||
resolution: {integrity: sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@tailwindcss/oxide-wasm32-wasi@4.3.5':
|
||||
resolution: {integrity: sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==}
|
||||
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
|
||||
bundledDependencies:
|
||||
- '@napi-rs/wasm-runtime'
|
||||
- '@emnapi/core'
|
||||
- '@emnapi/runtime'
|
||||
- '@tybys/wasm-util'
|
||||
- '@emnapi/wasi-threads'
|
||||
- tslib
|
||||
|
||||
'@tailwindcss/oxide-win32-arm64-msvc@4.3.5':
|
||||
resolution: {integrity: sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@tailwindcss/oxide-win32-x64-msvc@4.3.5':
|
||||
resolution: {integrity: sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==}
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@tailwindcss/oxide@4.3.5':
|
||||
resolution: {integrity: sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==}
|
||||
engines: {node: '>= 20'}
|
||||
|
||||
'@tailwindcss/postcss@4.3.5':
|
||||
resolution: {integrity: sha512-FAV37Tlx9wBiT/hkfgVD0Q6CWsP2oUX3lf28nrfjW8+ksILjnpuFulUqWDfNR4/ZiEHHDRBX8DUTzD1Rys687A==}
|
||||
|
||||
'@types/node@26.6.6':
|
||||
resolution: {integrity: sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==}
|
||||
|
||||
@ -1115,9 +1268,16 @@ packages:
|
||||
caniuse-lite@1.0.30001826:
|
||||
resolution: {integrity: sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==}
|
||||
|
||||
class-variance-authority@0.7.1:
|
||||
resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
|
||||
|
||||
client-only@0.0.1:
|
||||
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
|
||||
|
||||
clsx@2.1.1:
|
||||
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
content-disposition@2.0.1:
|
||||
resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==}
|
||||
engines: {node: '>=18'}
|
||||
@ -1276,6 +1436,10 @@ packages:
|
||||
resolution: {integrity: sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
enhanced-resolve@5.26.1:
|
||||
resolution: {integrity: sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==}
|
||||
engines: {node: '>=10.13.0'}
|
||||
|
||||
es-define-property@1.0.1:
|
||||
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@ -1354,6 +1518,11 @@ packages:
|
||||
function-bind@1.1.2:
|
||||
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
|
||||
|
||||
geist@1.9.2:
|
||||
resolution: {integrity: sha512-UU1x2q5Khob0+i4csFvXk1Ki4DePdu7xISuXyEcj1tzQMg64oN7Kbuy4e5z5QhcUWbbvOMJNs3ZxYQqpsEMV3w==}
|
||||
peerDependencies:
|
||||
next: '>=13.2.0'
|
||||
|
||||
get-intrinsic@1.3.0:
|
||||
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@ -1369,6 +1538,9 @@ packages:
|
||||
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
graceful-fs@4.2.11:
|
||||
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
||||
|
||||
has-symbols@1.1.0:
|
||||
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@ -1406,6 +1578,10 @@ packages:
|
||||
isexe@2.0.0:
|
||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||
|
||||
jiti@2.7.0:
|
||||
resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
|
||||
hasBin: true
|
||||
|
||||
jose@6.2.17:
|
||||
resolution: {integrity: sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==}
|
||||
|
||||
@ -1415,6 +1591,92 @@ packages:
|
||||
json-schema-typed@8.0.2:
|
||||
resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
|
||||
|
||||
lightningcss-android-arm64@1.33.0:
|
||||
resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
lightningcss-darwin-arm64@1.33.0:
|
||||
resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
lightningcss-darwin-x64@1.33.0:
|
||||
resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
lightningcss-freebsd-x64@1.33.0:
|
||||
resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
lightningcss-linux-arm-gnueabihf@1.33.0:
|
||||
resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
lightningcss-linux-arm64-gnu@1.33.0:
|
||||
resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
lightningcss-linux-arm64-musl@1.33.0:
|
||||
resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
lightningcss-linux-x64-gnu@1.33.0:
|
||||
resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
lightningcss-linux-x64-musl@1.33.0:
|
||||
resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
lightningcss-win32-arm64-msvc@1.33.0:
|
||||
resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
lightningcss-win32-x64-msvc@1.33.0:
|
||||
resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
lightningcss@1.33.0:
|
||||
resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
|
||||
lucide-react@1.72.0:
|
||||
resolution: {integrity: sha512-fbF5i1GU8GODETa3Q7rXqrJrcx3iPYrQtxthom103zGx+Z0BGwKYAW9s+9435ohYJ7hQm0av0PoZcqI1CRwNrg==}
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
peerDependenciesMeta:
|
||||
'@types/react':
|
||||
optional: true
|
||||
|
||||
magic-string@1.4.5:
|
||||
resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==}
|
||||
|
||||
math-intrinsics@1.1.0:
|
||||
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@ -1505,6 +1767,10 @@ packages:
|
||||
resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
postcss@8.5.32:
|
||||
resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
postgres@4.1.1:
|
||||
resolution: {integrity: sha512-1kJDojqNZC+iTHHXh6eif0J98LUtyLAePe/qkW1GK35eh2JixlsAiIKq3FGI+xqI+SUGTNodzf7TScVeIIyUug==}
|
||||
engines: {node: '>=18'}
|
||||
@ -1628,6 +1894,16 @@ packages:
|
||||
babel-plugin-macros:
|
||||
optional: true
|
||||
|
||||
tailwind-merge@3.7.0:
|
||||
resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==}
|
||||
|
||||
tailwindcss@4.3.5:
|
||||
resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==}
|
||||
|
||||
tapable@2.3.3:
|
||||
resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
toidentifier@1.0.1:
|
||||
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
|
||||
engines: {node: '>=0.6'}
|
||||
@ -1678,6 +1954,8 @@ packages:
|
||||
|
||||
snapshots:
|
||||
|
||||
'@alloc/quick-lru@5.3.0': {}
|
||||
|
||||
'@drizzle-team/brocli@0.10.2': {}
|
||||
|
||||
'@emnapi/runtime@1.11.3':
|
||||
@ -2028,6 +2306,25 @@ snapshots:
|
||||
'@img/sharp-win32-x64@0.35.5':
|
||||
optional: true
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.6.0
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
|
||||
'@jridgewell/remapping@2.3.5':
|
||||
dependencies:
|
||||
'@jridgewell/gen-mapping': 0.3.13
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
|
||||
'@jridgewell/resolve-uri@3.1.2': {}
|
||||
|
||||
'@jridgewell/sourcemap-codec@1.6.0': {}
|
||||
|
||||
'@jridgewell/trace-mapping@0.3.31':
|
||||
dependencies:
|
||||
'@jridgewell/resolve-uri': 3.1.2
|
||||
'@jridgewell/sourcemap-codec': 1.6.0
|
||||
|
||||
'@modelcontextprotocol/sdk@1.32.2(zod@4.6.7)':
|
||||
dependencies:
|
||||
'@hono/node-server': 2.1.7(hono@4.13.18)
|
||||
@ -2076,10 +2373,92 @@ snapshots:
|
||||
'@next/swc-win32-x64-msvc@16.4.6':
|
||||
optional: true
|
||||
|
||||
'@radix-ui/react-compose-refs@1.1.5(@types/react@19.3.0)(react@19.3.1)':
|
||||
dependencies:
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
|
||||
'@radix-ui/react-slot@1.5.0(@types/react@19.3.0)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@radix-ui/react-compose-refs': 1.1.5(@types/react@19.3.0)(react@19.3.1)
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
|
||||
'@swc/helpers@0.5.23':
|
||||
dependencies:
|
||||
tslib: 2.9.1
|
||||
|
||||
'@tailwindcss/node@4.3.5':
|
||||
dependencies:
|
||||
'@jridgewell/remapping': 2.3.5
|
||||
enhanced-resolve: 5.26.1
|
||||
jiti: 2.7.0
|
||||
lightningcss: 1.33.0
|
||||
magic-string: 1.4.5
|
||||
source-map-js: 1.2.2
|
||||
tailwindcss: 4.3.5
|
||||
|
||||
'@tailwindcss/oxide-android-arm64@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-darwin-arm64@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-darwin-x64@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-freebsd-x64@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-linux-arm64-gnu@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-linux-arm64-musl@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-linux-x64-gnu@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-linux-x64-musl@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-wasm32-wasi@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-win32-arm64-msvc@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide-win32-x64-msvc@4.3.5':
|
||||
optional: true
|
||||
|
||||
'@tailwindcss/oxide@4.3.5':
|
||||
optionalDependencies:
|
||||
'@tailwindcss/oxide-android-arm64': 4.3.5
|
||||
'@tailwindcss/oxide-darwin-arm64': 4.3.5
|
||||
'@tailwindcss/oxide-darwin-x64': 4.3.5
|
||||
'@tailwindcss/oxide-freebsd-x64': 4.3.5
|
||||
'@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.5
|
||||
'@tailwindcss/oxide-linux-arm64-gnu': 4.3.5
|
||||
'@tailwindcss/oxide-linux-arm64-musl': 4.3.5
|
||||
'@tailwindcss/oxide-linux-x64-gnu': 4.3.5
|
||||
'@tailwindcss/oxide-linux-x64-musl': 4.3.5
|
||||
'@tailwindcss/oxide-wasm32-wasi': 4.3.5
|
||||
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.5
|
||||
'@tailwindcss/oxide-win32-x64-msvc': 4.3.5
|
||||
|
||||
'@tailwindcss/postcss@4.3.5':
|
||||
dependencies:
|
||||
'@alloc/quick-lru': 5.3.0
|
||||
'@tailwindcss/node': 4.3.5
|
||||
'@tailwindcss/oxide': 4.3.5
|
||||
postcss: 8.5.32
|
||||
tailwindcss: 4.3.5
|
||||
|
||||
'@types/node@26.6.6':
|
||||
dependencies:
|
||||
undici-types: 8.9.0
|
||||
@ -2140,8 +2519,14 @@ snapshots:
|
||||
|
||||
caniuse-lite@1.0.30001826: {}
|
||||
|
||||
class-variance-authority@0.7.1:
|
||||
dependencies:
|
||||
clsx: 2.1.1
|
||||
|
||||
client-only@0.0.1: {}
|
||||
|
||||
clsx@2.1.1: {}
|
||||
|
||||
content-disposition@2.0.1: {}
|
||||
|
||||
content-type@1.0.5: {}
|
||||
@ -2171,8 +2556,7 @@ snapshots:
|
||||
|
||||
depd@2.0.0: {}
|
||||
|
||||
detect-libc@2.1.2:
|
||||
optional: true
|
||||
detect-libc@2.1.2: {}
|
||||
|
||||
drizzle-kit@0.31.11:
|
||||
dependencies:
|
||||
@ -2195,6 +2579,11 @@ snapshots:
|
||||
|
||||
encodeurl@2.0.1: {}
|
||||
|
||||
enhanced-resolve@5.26.1:
|
||||
dependencies:
|
||||
graceful-fs: 4.2.11
|
||||
tapable: 2.3.3
|
||||
|
||||
es-define-property@1.0.1: {}
|
||||
|
||||
es-errors@1.3.0: {}
|
||||
@ -2361,6 +2750,10 @@ snapshots:
|
||||
|
||||
function-bind@1.1.2: {}
|
||||
|
||||
geist@1.9.2(next@16.4.6(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)):
|
||||
dependencies:
|
||||
next: 16.4.6(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
|
||||
get-intrinsic@1.3.0:
|
||||
dependencies:
|
||||
call-bind-apply-helpers: 1.0.2
|
||||
@ -2385,6 +2778,8 @@ snapshots:
|
||||
|
||||
gopd@1.2.0: {}
|
||||
|
||||
graceful-fs@4.2.11: {}
|
||||
|
||||
has-symbols@1.1.0: {}
|
||||
|
||||
hasown@2.0.4:
|
||||
@ -2415,12 +2810,73 @@ snapshots:
|
||||
|
||||
isexe@2.0.0: {}
|
||||
|
||||
jiti@2.7.0: {}
|
||||
|
||||
jose@6.2.17: {}
|
||||
|
||||
json-schema-traverse@1.0.0: {}
|
||||
|
||||
json-schema-typed@8.0.2: {}
|
||||
|
||||
lightningcss-android-arm64@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-darwin-arm64@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-darwin-x64@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-freebsd-x64@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-linux-arm-gnueabihf@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-linux-arm64-gnu@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-linux-arm64-musl@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-linux-x64-gnu@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-linux-x64-musl@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-win32-arm64-msvc@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss-win32-x64-msvc@1.33.0:
|
||||
optional: true
|
||||
|
||||
lightningcss@1.33.0:
|
||||
dependencies:
|
||||
detect-libc: 2.1.2
|
||||
optionalDependencies:
|
||||
lightningcss-android-arm64: 1.33.0
|
||||
lightningcss-darwin-arm64: 1.33.0
|
||||
lightningcss-darwin-x64: 1.33.0
|
||||
lightningcss-freebsd-x64: 1.33.0
|
||||
lightningcss-linux-arm-gnueabihf: 1.33.0
|
||||
lightningcss-linux-arm64-gnu: 1.33.0
|
||||
lightningcss-linux-arm64-musl: 1.33.0
|
||||
lightningcss-linux-x64-gnu: 1.33.0
|
||||
lightningcss-linux-x64-musl: 1.33.0
|
||||
lightningcss-win32-arm64-msvc: 1.33.0
|
||||
lightningcss-win32-x64-msvc: 1.33.0
|
||||
|
||||
lucide-react@1.72.0(@types/react@19.3.0)(react@19.3.1):
|
||||
dependencies:
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
|
||||
magic-string@1.4.5:
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.6.0
|
||||
|
||||
math-intrinsics@1.1.0: {}
|
||||
|
||||
media-typer@1.1.1: {}
|
||||
@ -2494,6 +2950,12 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.2
|
||||
|
||||
postcss@8.5.32:
|
||||
dependencies:
|
||||
nanoid: 3.3.20
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.2
|
||||
|
||||
postgres@4.1.1: {}
|
||||
|
||||
proxy-addr@2.0.8:
|
||||
@ -2654,6 +3116,12 @@ snapshots:
|
||||
client-only: 0.0.1
|
||||
react: 19.3.1
|
||||
|
||||
tailwind-merge@3.7.0: {}
|
||||
|
||||
tailwindcss@4.3.5: {}
|
||||
|
||||
tapable@2.3.3: {}
|
||||
|
||||
toidentifier@1.0.1: {}
|
||||
|
||||
tslib@2.9.1: {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user