WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
386 stars 600 forks source link

show Featured Campaigns on Explore page #5698

Closed ragesoss closed 3 months ago

ragesoss commented 4 months ago

Currently, the Explore page (/explore) lists the most recently created Campaigns. On Wiki Education Dashboard, we create many campaigns that have specific uses, sometimes well ahead of when they will become active, so the list of campaigns displayed isn't actually very useful for browsing and navigating to active current campaigns.

We'd like some way of controlling which campaigns to show instead of the current behavior of just showing the 10 most recent.

This could be implemented as a Setting record that holds an array of campaign slugs, and if present, the explore page would load those campaigns instead of the most recent ones. This could be controlled from a form on the Settings page (/settings).

Ideally, we would rework the Settings page so that it is accessible to all admins, not just super-admins, with the existing features limited to super-admins but this new one also accessible to regular admins.

ujjwalpathaak commented 4 months ago

Working on this

ujjwalpathaak commented 4 months ago

Hi @ragesoss I tried solving this issue. I divided the filter system into 4 cateogries - Active, Past, Upcoming, Recent (Default) Added a drop down in /settings The filter is getting saved in the settings table like image

Here is the basic functionality (video) - Screencast from 18-03-24 04:40:41 PM IST.webm

Should I change how the filtering system is working? If this looks like what is needed should I open a PR and continue working on this issue with the same implementation?

ragesoss commented 4 months ago

@ujjwalpathaak that looks a little different from what I had in mind. I was imagining a setting where the admin would enter or edit a list of campaign slugs so that the exact set of featured campaigns can be specified.

ujjwalpathaak commented 4 months ago

Sure I'll change the functionality and open a PR