peppa/apps/web/app/(app)/layout.tsx
Асель cf43669ce8 PEP-14: full PM toolkit over MCP and a Help page
- MCP: create_goal, update_goal (title, description, open/done/archived),
  create_project (same provisioning as the web, as the user), update_task
  goal_id (move between goals / detach); server instructions explain the
  project → goals → tasks → board model and good habits
- web: /help — concepts, connecting ChatGPT/Codex/other MCP clients,
  scenarios with example phrases, tool reference; links in menu/settings
- PEPPA_TEMPLATE_URL override for provisioning (tests)
- 3 new tests (59 e2e total, green); prod tools/list and /help verified
- OpenSpec: pep-14 archived (remote-mcp, web-workspace)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:24:05 +05:00

31 lines
986 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Link from "next/link";
import type { ReactNode } from "react";
import { requireUser } from "@/lib/auth";
export const dynamic = "force-dynamic";
export default async function AppLayout({ children }: { children: ReactNode }) {
const user = await requireUser();
return (
<>
<header className="top">
<Link href="/" className="brand">🐷 Peppa</Link>
<nav>
<Link href="/">Входящие</Link>
<Link href="/projects/new">Новый проект</Link>
<Link href="/settings">Настройки</Link>
<Link href="/help">Помощь</Link>
</nav>
<div className="me">
{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>
</>
);
}