Forum: thread cards with the start of the opening post, latest threads and pinned threads on the front page
- Every thread card shows the start of the opening post (two lines on a computer, three on a phone), its topic with the icon (a lock for members-only and restricted ones), pinned and the wish; the replies, the last activity and what is new on the right (in the bottom line on a phone). The same card in topics, search and followed threads. - The front page: "Legutóbbi szálak" below the topics, from every topic the viewer may read (not the archived ones), the latest activity first, 20 a page with a pager; pinned threads in "Kitűzve" above the topics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -61,8 +61,10 @@ export interface ThreadCard {
|
||||
slug: string;
|
||||
title: string;
|
||||
intent: "listen" | "advice" | null;
|
||||
topic: TopicRef;
|
||||
topic: TopicRef & { visibility?: string };
|
||||
author: ForumAuthor | null;
|
||||
/** The start of the opening post (as much as a card shows). */
|
||||
excerpt?: string | null;
|
||||
created_at: string;
|
||||
last_post_at: string;
|
||||
reply_count: number;
|
||||
@@ -86,6 +88,8 @@ export interface ForumHome {
|
||||
topics: ForumTopic[];
|
||||
unanswered: ThreadCard[];
|
||||
hot: ThreadCard[];
|
||||
/** Pinned threads, above the topics. */
|
||||
pinned?: ThreadCard[];
|
||||
}
|
||||
|
||||
export interface TopicPage {
|
||||
|
||||
Reference in New Issue
Block a user