mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 13:08:40 +08:00
Adds the backend for the customisable Reports section on the new admin dashboard, gated by `dashboard_improvements`. - `admin_dashboard_reports` table + AR model for pinned reports. - Plugin-extension contract via `Plugin::Instance#register_admin_dashboard_report_source` and the `AdminDashboard::Reports::SourceProvider` base class. Core ships a built-in provider; `discourse-data-explorer` registers its own. - `AdminDashboard::Reports::Section` builds the `reports` entry in the dashboard's `sections` payload; `AdminDashboard::Reports::BulkFetch` powers the bulk endpoint. Both share a `Registry.dispatch_per_source` helper that batches work by source. - `POST /admin/dashboard/reports/bulk` fetches data for multiple mounted reports in one round trip, batched by source. - Defaults are seeded via core + plugin fixtures (Daily engaged users, Time to first response; `accepted_solutions` when Solved is in use). Next: list-available and save-layout endpoints for the Manage Reports modal, plus the frontend (section UI, modal, bulk loader). |
||
|---|---|---|
| .. | ||
| 001_refresh.rb | ||
| 002_groups.rb | ||
| 003_flags.rb | ||
| 003_post_action_types.rb | ||
| 004_screened_ip_addresses.rb | ||
| 005_badge_types.rb | ||
| 006_badges.rb | ||
| 007_web_hook_event_types.rb | ||
| 008_directory_columns.rb | ||
| 009_users.rb | ||
| 010_uploads.rb | ||
| 500_categories.rb | ||
| 600_admin_dashboard_reports.rb | ||
| 600_themes.rb | ||
| 700_sidebar.rb | ||
| 990_settings.rb | ||
| 990_topics.rb | ||
| 991_vapid_keys.rb | ||
| 992_push_api_secret_key.rb | ||
| 993_login_hint.rb | ||