Forum: a service of its own and the /forum pages

services/forum (axum, port 8083) on the same database and login, in the
forum schema (migration 0038, which also adds the moderator role):
nicknames, profiles with shared signs, topics, threads with listening or
advice intent, two-level replies, read marks and followed threads,
reactions as ratings with points and ranks, newcomer limits (lifted by a
purchase), moderation with reasons, bans and a log. Integration tests run
in CI.

The frontend's /forum pages (light by default, dark on request, phone
first with a desktop layout) are switched on by FORUM_URL; the /api/v1
proxy sends /api/v1/forum/* to the forum service. Concept and status:
docs/kozosseg.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 10:29:49 +00:00
co-authored by Claude Opus 5.5
parent fa46dcb757
commit 36b38525c3
52 changed files with 6782 additions and 11 deletions
@@ -0,0 +1,27 @@
import { redirect } from "next/navigation";
import { ThreadList } from "@/components/forum/ThreadList";
import type { ForumViewer, ThreadCard } from "@/lib/forum";
import { forumGet } from "@/lib/forumServer";
export const metadata = { title: "Követett szálak", robots: { index: false } };
/** The threads the member follows (their own and the ones they replied to), with what is new. */
export default async function FollowedPage() {
const res = await forumGet<{ viewer: ForumViewer; threads: ThreadCard[] }>("/v1/forum/followed");
if (!res.ok) redirect("/belepes?vissza=/forum/kovetett");
const { threads } = res.data;
return (
<div className="fh">
<h1 className="fpage-title">Követett szálak</h1>
<p className="muted">A saját szálaid, azok, amelyekhez hozzászóltál, és amelyeket követni kezdtél.</p>
{threads.length === 0 ? (
<p className="fh-card fh-empty">Még nem követsz egy szálat sem.</p>
) : (
<div className="fh-card fh-flush">
<ThreadList threads={threads} />
</div>
)}
</div>
);
}