drakeRAGE/CaptureChronicles

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

Aberta

#22 aberto em 28 de out. de 2025

 (1 comentário) (0 reação) (1 responsável)JavaScript (7 forks)auto 404
enhancementfrontendhacktoberfesthelp wanted

Métricas do repositório

Stars
 (5 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador