discourse/lib/admin_dashboard/reports/resolved_report.rb
Osama Sayegh be54920a12
FEATURE: Customisable Reports section on the new admin dashboard (#40264)
Adds the frontend for the Reports section on the redesigned admin
dashboard. Admins can choose which reports appear on their dashboard,
reorder them, and add/remove cards via a "Manage reports" modal. A
plugin API lets plugins ship their own report providers and custom card
renderers — used by Data Explorer to surface DE queries alongside core
reports.

Follow-up to backend PR:
https://github.com/discourse/discourse/pull/40017
2026-05-25 13:55:25 +03:00

16 lines
316 B
Ruby
Vendored

# frozen_string_literal: true
module AdminDashboard
module Reports
ResolvedReport =
Data.define(:source, :identifier, :title, :description, :label, :url) do
def key
"#{source}:#{identifier}"
end
def to_h
super.merge(key: key)
end
end
end
end