fix(frontend): sort question list by expiration date, closed at end (#32)#42
Open
milamberspace wants to merge 1 commit into
Open
fix(frontend): sort question list by expiration date, closed at end (#32)#42milamberspace wants to merge 1 commit into
milamberspace wants to merge 1 commit into
Conversation
…pache#32) The "Recent activity" tab previously preserved the backend's updated_at DESC insertion order, with no distinction between open and closed questions. This made it hard to spot which open votes still need attention. New sort order for the Recent tab: - Open questions first, sorted by closes_at ASC (most urgent at the top) - Closed / withdrawn questions at the bottom, sorted by closes_at DESC (most recently expired first) The "Awaiting your response" tab was already sorted by closes_at ASC and is unchanged. Closes apache#32 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015qQoQHpb4kR81SSzc8y6Dv
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.
Summary
The "Recent activity" tab previously preserved the backend's
updated_at DESCorder with no distinction between open and closed questions, making it hard to spot which votes still need attention.New sort order for the Recent activity tab:
closes_at ASC(most urgent / soonest to expire at the top)closes_at DESC(most recently expired first)The "Awaiting your response" tab was already sorted by
closes_at ASCand is unchanged.Files changed
frontend/src/components/QuestionList.svelte— updatedrecentreactive with a two-tier sort; updated the corresponding comment.Test plan
npm run check→ 0 errorsCloses #32
🤖 Generated with Claude Code
https://claude.ai/code/session_015qQoQHpb4kR81SSzc8y6Dv