/bounty: pagination + sorting + filtering #48

Closed
opened 2026-04-04 06:45:36 +02:00 by shoko · 0 comments
Owner

Objective

Update /bounty command with pagination, sorting, and filtering.

Behavior

Filtering

  • -24h <= now <= infinite (show overdue <=24h, present, future)
  • Overdue >24h: filtered out (unless all flag)

Sorting

  1. Bounties with due date: sorted by due_date_ts (earliest first)
  2. Bounties without due date: shown last, sorted by created_at

Pagination

  • Default: 5 bounties per page
  • Override: /bounty 10 (show 10)
  • /bounty all (show all including expired)
  • /bounty all 10 (show 10 including expired)

Output Format

Showing 5 of 12 bounties:
[#1] Sliced description... | 🔗 link | ⏰ 4 Apr 2026 (2d)
[#2] Another bounty | ⏰ Today (OVERDUE)
...

Extended Format (show page info)

/bounty           -> default 5
/bounty 10        -> 10 bounties
/bounty all       -> all active
/bounty all 10    -> 10 bounties including expired

Dependencies

  • #43 (service layer must be done first)
## Objective Update `/bounty` command with pagination, sorting, and filtering. ## Behavior ### Filtering - -24h <= now <= infinite (show overdue <=24h, present, future) - Overdue >24h: filtered out (unless `all` flag) ### Sorting 1. Bounties with due date: sorted by due_date_ts (earliest first) 2. Bounties without due date: shown last, sorted by created_at ### Pagination - Default: 5 bounties per page - Override: `/bounty 10` (show 10) - `/bounty all` (show all including expired) - `/bounty all 10` (show 10 including expired) ### Output Format ``` Showing 5 of 12 bounties: [#1] Sliced description... | 🔗 link | ⏰ 4 Apr 2026 (2d) [#2] Another bounty | ⏰ Today (OVERDUE) ... ``` ### Extended Format (show page info) ``` /bounty -> default 5 /bounty 10 -> 10 bounties /bounty all -> all active /bounty all 10 -> 10 bounties including expired ``` ## Dependencies - #43 (service layer must be done first)
shoko added this to the Phase 2 milestone 2026-04-04 06:45:36 +02:00
shoko added the telegram-botphase-2 labels 2026-04-04 06:45:36 +02:00
han was assigned by shoko 2026-04-04 06:45:36 +02:00
shoko closed this issue 2026-04-04 10:09:30 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/jigaido#48