- 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>
31 lines
986 B
TypeScript
31 lines
986 B
TypeScript
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>
|
||
</>
|
||
);
|
||
}
|