0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/discourse-solved/lib/discourse_solved
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
..
accepted_answer_cache.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
category_extension.rb UX: Downgrade site settings to category custom fields in solved plugin (#38402) 2026-03-12 10:03:37 +10:00
engine.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
first_accepted_post_solution_validator.rb
guardian_extensions.rb FEATURE: add solved me too button (#39652) 2026-05-13 17:03:25 +04:00
post_mover_extension.rb FIX: merge topics with solved answers (#38532) 2026-03-17 07:28:52 +00:00
post_serializer_extension.rb
queries.rb DEV: refactor user card/summary accepted answer's query (#35500) 2025-10-31 08:49:36 +01:00
register_filters.rb DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
schema_utils.rb FIX: tighten ineligible answer schema (#39490) 2026-04-23 16:44:36 +04:00
seed_admin_dashboard_reports.rb DEV: Scaffold backend for the new admin dashboard Reports section (#40017) 2026-05-20 09:53:26 +03:00
topic_extension.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
topic_posters_summary_extension.rb
topic_view_serializer_extension.rb
user_extension.rb FEATURE: add solved me too button (#39652) 2026-05-13 17:03:25 +04:00
user_summary_extension.rb DEV: refactor user card/summary accepted answer's query (#35500) 2025-10-31 08:49:36 +01:00
web_hook_extension.rb