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:
@@ -19,7 +19,7 @@ export interface ForumAuthor {
|
||||
online: boolean;
|
||||
/** Planet (or `ascendant`) → sign, as the member chose to share. */
|
||||
signs: Record<string, string> | null;
|
||||
/** A volunteer listener ("Meghallgató"). */
|
||||
/** A volunteer companion ("Kísérő") for the threads asking to be heard. */
|
||||
listener?: boolean;
|
||||
/** Bought a package and shows the "Támogató" badge. */
|
||||
supporter?: boolean;
|
||||
@@ -71,6 +71,10 @@ export interface ThreadCard {
|
||||
export interface ForumHome {
|
||||
viewer: ForumViewer;
|
||||
followed: { new_replies: number; threads: number } | null;
|
||||
/** Unread answers to the member. */
|
||||
replies: number | null;
|
||||
/** Listeners: threads asking to be heard that wait for a reply. */
|
||||
waiting: number | null;
|
||||
/** "Most itt vannak". */
|
||||
online: ForumAuthor[];
|
||||
topics: ForumTopic[];
|
||||
@@ -348,12 +352,23 @@ export interface ReportEntry {
|
||||
/** The forum menu's counts. */
|
||||
export interface ForumNavData {
|
||||
viewer: ForumViewer;
|
||||
followed: { new_replies: number } | null;
|
||||
/** Unread answers to the member (a reply to them, in their thread, or naming them). */
|
||||
replies: number | null;
|
||||
messages: number | null;
|
||||
/** Moderators: open reports and requests to join restricted topics. */
|
||||
reports: number | null;
|
||||
/** Listeners: threads asking to be heard that wait for a reply. */
|
||||
waiting: number | null;
|
||||
}
|
||||
|
||||
/** An answer to the member, on the "Válaszok" page. */
|
||||
export interface ReplyEntry {
|
||||
id: number;
|
||||
thread: { id: number; title: string; slug: string };
|
||||
author: ForumAuthor | null;
|
||||
excerpt: string;
|
||||
created_at: string;
|
||||
/** `reply`: to one of their posts; `thread`: in their thread; `mention`: names them. */
|
||||
kind: "reply" | "thread" | "mention";
|
||||
unread: boolean;
|
||||
}
|
||||
|
||||
export interface TopicRequest {
|
||||
|
||||
Reference in New Issue
Block a user