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.

贡献者指南