Skip to content

feat(dashboard): order forum list by most recent post, not volume#99

Merged
Johnaverse merged 1 commit into
mainfrom
feat/forum-order-by-recency
Jul 15, 2026
Merged

feat(dashboard): order forum list by most recent post, not volume#99
Johnaverse merged 1 commit into
mainfrom
feat/forum-order-by-recency

Conversation

@Johnaverse

Copy link
Copy Markdown
Owner

What

In the Forum view, the post list ordered forum groups by post count (busiest first), so a forum that just had a new post could sit below a high-volume but quiet one. This orders the groups by their last event (most recent post) instead.

How

  • renderForumList now sorts the (filtered) forum groups by their latest post's whenMs descending. Posts are already newest-first within a group, so the sort key is posts[0].whenMs.
  • Filtering (search / forum-tile filter) runs before the sort, so the ordering key reflects the posts actually shown.
  • The treemap is unchanged — tiles still sized by volume — so "how much" (treemap) and "how recent" (list) stay complementary.

Verification

Headless browser against the live feed: 42 groups render, and the top group (Ethereum Magicians) matches the forum with the newest post overall (match: true). Previously the top was the highest-volume forum.

Deploy

Dashboard change (/ui/ + Pages) — ships on the next version bump.

🤖 Generated with Claude Code

The forum list ordered groups by post count (busiest forum first), so a
forum that just had a new post could sit below a high-volume but quiet one.
Order the groups by their latest post (last event) instead — posts are
already newest-first within a group, so the group key is its [0] post's
whenMs. Filtering runs before the sort so the key reflects the posts shown
(honours the active search / forum filter). The treemap still sizes tiles by
volume, so the two views stay complementary.

Verified in a headless browser against the live feed: the top group matches
the forum with the newest post overall (42 groups render).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CvKASF2guQdnLuivCfTPH8
Copilot AI review requested due to automatic review settings July 15, 2026 00:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the dashboard’s Forum view so forum groups in the list are ordered by most recent post rather than by post volume, improving visibility of newly active forums while keeping the treemap volume-based.

Changes:

  • Sort forum groups in renderForumList() by each group’s latest visible post timestamp (posts[0].whenMs) descending.
  • Apply search/filtering before sorting so the ordering reflects the posts actually shown in the UI.

@Johnaverse
Johnaverse merged commit 968e182 into main Jul 15, 2026
6 checks passed
@Johnaverse
Johnaverse deleted the feat/forum-order-by-recency branch July 15, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants