Forum: answers to me as the only count, reply box in the branch, keyboard-safe inputs

- 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
This commit is contained in:
feco
2026-11-26 13:31:00 +00:00
co-authored by Claude Opus 5.5
parent 8bc426460d
commit 42283d740e
25 changed files with 615 additions and 90 deletions
@@ -0,0 +1,31 @@
"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>
);
}