Forum: thread cards with the start of the opening post, latest threads and pinned threads on the front page
CI / test (push) Successful in 3m19s
CI / build (push) Skipped
CI / deploy (push) Skipped

- 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:
feco
2026-11-26 18:15:43 +00:00
co-authored by Claude Opus 5.5
parent 46a2b6781e
commit 8150247503
9 changed files with 213 additions and 48 deletions
+5 -1
View File
@@ -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 {