- generation_errors: every failed attempt (model, attempt, outcome, duration); admin Hibanapló page and GET /v1/admin/errors; kept 90 days - The waiting page counts from when the text was asked for (requested_at), not from the page load, so a reload no longer restarts it - It says when an attempt failed and is retried, and when a failed text's unit was given back; admins see the error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
23 lines
658 B
TypeScript
23 lines
658 B
TypeScript
import Link from "next/link";
|
|
|
|
const PAGES = [
|
|
{ href: "/admin", label: "Felhasználók" },
|
|
{ href: "/admin/meghivok", label: "Meghívók" },
|
|
{ href: "/admin/promptok", label: "Promptok" },
|
|
{ href: "/admin/modellek", label: "Modellek" },
|
|
{ href: "/admin/hibak", label: "Hibanapló" },
|
|
];
|
|
|
|
/** Switches between the admin pages. */
|
|
export function AdminNav({ current }: { current: string }) {
|
|
return (
|
|
<nav className="admin-nav" aria-label="Admin oldalak">
|
|
{PAGES.map((p) => (
|
|
<Link key={p.href} href={p.href} aria-current={p.href === current ? "page" : undefined}>
|
|
{p.label}
|
|
</Link>
|
|
))}
|
|
</nav>
|
|
);
|
|
}
|