drakeRAGE/CaptureChronicles

Add sorting options for Previous, Upcoming, and Ongoing events in Search page

開放

#22 建立於 2025年10月28日

 (1 則留言) (0 個反應) (1 位負責人)JavaScript (7 個分叉)auto 404
enhancementfrontendhacktoberfesthelp wanted

倉庫指標

星標
 (5 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Description: Currently, the Search page (/gallery/src/pages/Search) provides sorting options based on:

<label>Sort :</label>
<select onChange={handleChange} defaultValue={'created_at_desc'} className='border rounded-lg p-3' id="sort_order">
    <option value="ticketfee_desc" className='font-semibold'>Price high to low</option>
    <option value="ticketfee_asc" className='font-semibold'>Price low to high</option>
    <option value="createdAt_desc" className='font-semibold'>Latest</option>
    <option value="createdAt_asc" className='font-semibold'>Oldest</option>
</select>

I want to add new sorting options for:

  • Previous events
  • Upcoming events
  • Ongoing events

These new sorting filters should allow users to easily categorize and view listings based on their event timelines. U can also check events page as how the events are sorted there based on previous, upcoming and ongoing. You can also check the Events page to see how events are sorted there based on Previous, Upcoming, and Ongoing categories.

貢獻者指南