- The "Követett" tab becomes "Válaszok": its count is the unread answers to the member (a reply to their post, a first-level reply in their thread, or a post naming them), listed on /forum/valaszok with "Mind olvasott"; the followed threads are its second view. The other counts are gone from the menu; listeners see the waiting threads on their card on the front page. - Replying to a post opens the box at the bottom of its branch and scrolls there; another branch moves it (with the text typed so far). - Phones: while typing, the forum's bottom menu and floating bars step aside and the box with its send button is scrolled above the keyboard (KeyboardSafe, site-wide; Android resizes the page for the keyboard). - The "Meghallgató" badge is now "Kísérő", with a new icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
import { RepliesTabs } from "@/components/forum/RepliesTabs";
|
|
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">Válaszok</h1>
|
|
<RepliesTabs current="followed" />
|
|
<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>
|
|
);
|
|
}
|