Skip to content

fix(frontend): sort question list by expiration date, closed at end (#32)#42

Open
milamberspace wants to merge 1 commit into
apache:mainfrom
milamberspace:fix/issue-32-questions-sort
Open

fix(frontend): sort question list by expiration date, closed at end (#32)#42
milamberspace wants to merge 1 commit into
apache:mainfrom
milamberspace:fix/issue-32-questions-sort

Conversation

@milamberspace

Copy link
Copy Markdown
Contributor

Summary

The "Recent activity" tab previously preserved the backend's updated_at DESC order 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:

  • Open questions first, sorted by closes_at ASC (most urgent / soonest to expire 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.

Files changed

  • frontend/src/components/QuestionList.svelte — updated recent reactive with a two-tier sort; updated the corresponding comment.

Test plan

  • Dashboard "Recent activity" tab: open questions appear before closed ones
  • Within open questions: soonest-to-expire is at the top
  • Within closed questions: most recently expired is at the top
  • "Awaiting your response" tab: unchanged sort order
  • Filter / search still works correctly after sort
  • npm run check → 0 errors

Closes #32

🤖 Generated with Claude Code

https://claude.ai/code/session_015qQoQHpb4kR81SSzc8y6Dv

…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
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.

Order questions by something ? expiration date, the closed at the end?

1 participant