feat(dashboard): order forum list by most recent post, not volume#99
Merged
Conversation
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
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
renderForumListnow sorts the (filtered) forum groups by their latest post'swhenMsdescending. Posts are already newest-first within a group, so the sort key isposts[0].whenMs.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