Files
sorsfonalak/services/frontend/src/app/admin/hires-emberek/page.tsx
T
fecoandClaude Opus 5.5 8d9c50cb02
CI / test (push) Successful in 1m55s
CI / build (push) Skipped
CI / deploy (push) Skipped
Admin: paged user list with a dialog; creators manage famous people
- The user list pages (25 per page, with the total from the backend); roles,
  packages and single units are set in a dialog instead of in the row.
- Creators may add, edit and publish famous people and rewrite their
  portraits (own regenerate route); they delete only their own. The rest of
  the admin stays closed to them; the header links them to their page.
- No free-horoscope offer on the star sign and famous people lists.
- .table-wrap is a containing block, so .sr-only text inside it no longer
  widens the page on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 09:04:51 +00:00

29 lines
1.1 KiB
TypeScript

import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { AdminNav, canEditCelebrities } from "@/components/AdminNav";
import { requireMe } from "@/lib/server";
import { AdminCelebrities } from "./AdminCelebrities";
export const metadata: Metadata = { title: "Híres emberek" };
export default async function AdminCelebritiesPage() {
const me = await requireMe("/admin/hires-emberek");
if (!canEditCelebrities(me.user.roles)) notFound();
return (
<main className="page" style={{ maxWidth: 1180 }}>
<AdminNav current="/admin/hires-emberek" roles={me.user.roles} />
<div className="page-head">
<h1>Híres emberek</h1>
<p className="muted">
Születési adat, egy fotó és egy részletes portré (saját prompt: Promptok → Híres ember). Közzététel után a
nyilvános oldalon (sorsfonalak.hu/hires-emberek) és a keresőkben is megjelenik; megosztáskor az előnézeti
képen az arc és a képlet látszik.
</p>
</div>
<AdminCelebrities />
</main>
);
}