Editable analysis prompts on the admin page
The system prompts of the free summary and the paid detailed analysis can be edited per language under /admin/promptok. Every save is a new row in prompt_revisions (NULL = built-in text); new analyses record the revision in prompt_version (v2-r<id>) and the worker uses exactly that text. Existing analyses stay; the cross-user cache only copies results of the same revision. The prompt code moves to the shared analysis-prompt crate so the backend can show the built-in text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
|
||||
import { AdminNav } from "@/components/AdminNav";
|
||||
import { requireMe } from "@/lib/server";
|
||||
|
||||
import { AdminPrompts } from "./AdminPrompts";
|
||||
|
||||
export const metadata: Metadata = { title: "Promptok" };
|
||||
|
||||
export default async function AdminPromptsPage() {
|
||||
const me = await requireMe("/admin/promptok");
|
||||
if (!me.user.roles.includes("admin")) notFound();
|
||||
return (
|
||||
<main className="page" style={{ maxWidth: 1180 }}>
|
||||
<AdminNav current="/admin/promptok" />
|
||||
<div className="page-head">
|
||||
<h1>Promptok</h1>
|
||||
<p className="muted">
|
||||
Az elemzéseket író modell utasításai. A változás az ezután kért elemzésekre hat; a már elkészültek
|
||||
változatlanok maradnak.
|
||||
</p>
|
||||
</div>
|
||||
<AdminPrompts />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user