drakeRAGE/CaptureChronicles
Add sorting options for Previous, Upcoming, and Ongoing events in Search page
Offen
#22 geöffnet am 28.10.2025
enhancementfrontendhacktoberfesthelp wanted
Repository-Metriken
- Stars
- (5 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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.