Files
sorsfonalak/services/frontend/src/app/admin/visszajelzesek/page.tsx
T
fecoandClaude Opus 5.5 62ae4a438e Feedback in the system: ratings, messages, the recommendation question
- Under the summary, the detailed analyses, the forecast and tarot: "How
  tailored to you did it feel?" (1–5 stars); thumbs under answers. Only
  the owner rates, once (changeable); tags, a comment, and a permission
  to read the text; model and prompt version are kept with it
- /visszajelzes: bug, idea, question, other (the page and the browser go
  with it, 10 a day); the state and the operator's reply show there, a
  dot in the account menu marks a new reply. No e-mail, no Telegram
- One NPS question (0–10) in a bar under the header, after two finished
  contents; closing it counts
- Admin → Visszajelzések: numbers by kind, week, tags, model and prompt,
  buyers and others, NPS; ratings with filters, the text only if allowed;
  messages with state, internal note and reply; a count in the admin menu
- Nothing is public. Deleting an account keeps the stars without a name
  or comment; messages go. Privacy policy (hu, en) updated
- The admin menu no longer shows a vertical scrollbar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 07:01:40 +00:00

30 lines
1003 B
TypeScript

import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { AdminNav } from "@/components/AdminNav";
import { requireMe } from "@/lib/server";
import { AdminFeedback } from "./AdminFeedback";
export const metadata: Metadata = { title: "Visszajelzések" };
export default async function AdminFeedbackPage() {
const me = await requireMe("/admin/visszajelzesek");
if (!me.user.roles.includes("admin")) notFound();
return (
<main className="page" style={{ maxWidth: 1180 }}>
<AdminNav current="/admin/visszajelzesek" />
<div className="page-head">
<h1>Visszajelzések</h1>
<p className="muted">
A felhasználók értékelései (csak a saját, kész tartalmukat
értékelhetik, egyszer), az üzeneteik és az ajánlási kérdés. Semmi sem
nyilvános. Egy elemzés szövegét csak akkor látod, ha a felhasználó
megengedte.
</p>
</div>
<AdminFeedback />
</main>
);
}