tactilenews / 100eyes

Dialogtechnologie für den Pivot to People invented by tactile.news GmbH
MIT License
10 stars 1 forks source link

Add basic stats with breakdown of channels counts #1862

Closed mattwr18 closed 4 months ago

mattwr18 commented 4 months ago

What changed in this PR and why

Added a tab in the admin page for stats. This page currently simply has the count of contributors by channel. It does not filter out for active contributors or anything else currently.

Whats not included in this PR and why

Currently, it seems pretty limited what we can easily achieve with administrate gem. Our css styles do not get loaded or applied and we cannot connect to our stimulus controllers without overriding administrate's js files, it seems. Have not tried. It might be nice to have a pie chart that displays this info.

Maybe, we could display info on our dashboard page? Is it only interesting for admin? If we wanted to scope it to admin only, we could easily add a flag to display it only to admin.

Closes #1861

soey commented 4 months ago

lgtm - but I don't get what app/dashboards/stat_dashboard.rb is for