- 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
32 lines
741 B
TypeScript
32 lines
741 B
TypeScript
"use client";
|
|
|
|
import { useRouter } from "next/navigation";
|
|
import { useState } from "react";
|
|
|
|
import { api } from "@/lib/api";
|
|
|
|
/** "Mind olvasott": the answers stay in the list, the count on the tab goes. */
|
|
export function ReadAll() {
|
|
const router = useRouter();
|
|
const [busy, setBusy] = useState(false);
|
|
return (
|
|
<button
|
|
type="button"
|
|
className="btn btn-ghost btn-sm"
|
|
disabled={busy}
|
|
onClick={async () => {
|
|
setBusy(true);
|
|
try {
|
|
await api("/forum/replies/read", { method: "POST" });
|
|
window.dispatchEvent(new Event("forum:nav"));
|
|
router.refresh();
|
|
} finally {
|
|
setBusy(false);
|
|
}
|
|
}}
|
|
>
|
|
Mind olvasott
|
|
</button>
|
|
);
|
|
}
|