- 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
54 lines
1.8 KiB
TypeScript
54 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
|
|
import { backendGet, requireMe } from "@/lib/server";
|
|
import type { Gift } from "@/lib/types";
|
|
|
|
import { GiftList } from "./GiftList";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Ajándékaim",
|
|
robots: { index: false },
|
|
};
|
|
|
|
/** The packages the user bought as gifts: codes, cards to download, sending them by e-mail. */
|
|
export default async function MyGiftsPage() {
|
|
await requireMe("/ajandekaim");
|
|
const gifts = (await backendGet<{ gifts: Gift[] }>("/v1/gifts"))?.gifts ?? [];
|
|
|
|
return (
|
|
<main className="page" style={{ maxWidth: 900 }}>
|
|
<div className="page-head">
|
|
<span className="eyebrow">Ajándék</span>
|
|
<h1>Ajándékaim</h1>
|
|
<p className="muted">
|
|
Az ajándékba vett csomagjaid. Ha nem e-mailben adnád át, töltsd le az
|
|
utalványt PDF-ben: kinyomtathatod, vagy elküldheted te magad. Amíg nem
|
|
váltották be, e-mailben is elküldhetjük, akár másik címre.
|
|
</p>
|
|
<div className="form-actions">
|
|
<Link className="btn btn-primary" href="/ajandek">
|
|
Új ajándék
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
|
|
{gifts.length === 0 ? (
|
|
<section className="card">
|
|
<p className="muted">
|
|
Még nem vettél ajándékot. Egy csomagot bárkinek megvehetsz:
|
|
e-mailben kapja meg, vagy te adod át egy nyomtatható utalvánnyal.{" "}
|
|
<Link href="/ajandek">Ajándékozás →</Link>
|
|
</p>
|
|
</section>
|
|
) : (
|
|
// A new gift (back from paying) or a change starts the list afresh.
|
|
<GiftList
|
|
key={gifts.map((g) => `${g.id}:${g.status}:${g.sendings}`).join()}
|
|
gifts={gifts}
|
|
/>
|
|
)}
|
|
</main>
|
|
);
|
|
}
|