discourse/plugins/discourse-solved/spec/lib
Osama Sayegh 08fdf23a07
DEV: Scaffold backend for the new admin dashboard Reports section (#40017)
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).
2026-05-20 09:53:26 +03:00
..
discourse_solved DEV: Scaffold backend for the new admin dashboard Reports section (#40017) 2026-05-20 09:53:26 +03:00
admin_dashboard_highlights_integration_spec.rb FEATURE: Admin dashboard highlights to real data (#39895) 2026-05-12 13:15:52 +08:00
first_accepted_post_solution_validator_spec.rb DEV: add service objects for accept_answer and unaccept_answer (#37878) 2026-03-04 12:34:37 +04:00
guardian_extensions_spec.rb SECURITY: add visibility check for solved endpoints 2026-03-19 15:21:28 +00:00
post_mover_extension_spec.rb DEV: Fix a flaky id assertion in d-solved specs (#39802) 2026-05-06 19:28:40 +02:00
queries_spec.rb DEV: add service objects for accept_answer and unaccept_answer (#37878) 2026-03-04 12:34:37 +04:00
topic_extension_user_deletion_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00