0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 18:47:00 +08:00
discourse/spec
Krzysztof Kotlarek 1101080b10
FEATURE: Add a Support section to the admin dashboard0 (#41359)
Previously, the redesigned admin dashboard couldn't show how a community
handles its support topics, and plugins had no way to contribute their
own dashboard sections — only individual highlight KPIs.
This change adds a register_admin_dashboard_section plugin API and uses
it in discourse-solved to add a Support section for communities with at
least one category where accepted answers are enabled.

**Core: register_admin_dashboard_section**

A new plugin API (mirroring the existing highlight-KPI registration)
lets a plugin register a dashboard section with an id, an optional
enabled gate, and a data loader; the JS
api.registerAdminDashboardSection(id, component) supplies the matching
client component. The section configuration, parallel loader, and
dashboard component render registered sections dynamically alongside the
core ones.

Also in the core commit: the dev database pool is raised so the
dashboard's parallel section loader isn't starved of connections with an
extra section, and a stray db-section__row-block divider on mobile is
fixed.

**Support section (discourse-solved)**

For the selected period, scoped to categories where "Allow topic owner
and staff to mark a reply as the solution" is enabled, the section
shows:

- KPIs with previous-period deltas: resolution rate (drill-through to
the accepted_solutions report), staff involvement, and average
first-reply time.
- Topic outcomes - resolved / in progress / unanswered.
- Who's answering - a breakdown of repliers by trust level and staff.
- Response time distribution - first-reply times bucketed into <1h,
1–4h, 4–24h, >24h, with a faster/slower trend.
- A category filter when more than one support category exists.

Screenshots:
<img width="804" height="748" alt="Screenshot 2026-07-02 at 10 58 13 am"
src="https://github.com/user-attachments/assets/8e938a5e-93df-446f-885c-3d779431ab9b"
/>
<img width="396" height="789" alt="Screenshot 2026-07-02 at 10 58 01 am"
src="https://github.com/user-attachments/assets/9a9a171d-42d9-482c-950c-5daad055a746"
/>

---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2026-07-06 09:31:51 +08:00
..
db FIX: Prevent backslash accumulation in upload markdown labels (#39461) 2026-06-03 18:10:38 +02:00
fabricators FEATURE: Show bounce rate and average session duration on the dashboard (#40936) 2026-07-03 10:49:32 +08:00
fixtures DEV: Allow plugins to register admin-panel-specific CSS (#40345) 2026-05-28 11:03:38 +01:00
generator DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
helpers FEATURE: Show bounce rate and average session duration on the dashboard (#40936) 2026-07-03 10:49:32 +08:00
import_export
initializers SECURITY: Harden imagemagick execution 2026-06-30 16:10:52 +02:00
integration FIX: Gate MessageBus groups when closing topic (#40913) 2026-06-15 15:27:07 -05:00
integrity DEV: Add hide_settings metadata to upcoming changes framework (#40990) 2026-06-19 10:25:39 +04:00
jobs FEATURE: Show bounce rate and average session duration on the dashboard (#40936) 2026-07-03 10:49:32 +08:00
lib FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
mailers FIX: allow custom email sender name via translation overrides (#40674) 2026-06-09 14:03:03 +04:00
migrations FIX: Ensure each flag gets a unique name_key (#40899) 2026-06-24 16:37:59 +02:00
models FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
multisite DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
queries/reports FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
requests FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
script DEV: Automatic upcoming change status report and PR creation (#40291) 2026-06-11 15:19:15 +10:00
serializers FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
services FEATURE: Add a Support section to the admin dashboard0 (#41359) 2026-07-06 09:31:51 +08:00
support FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
system FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
tasks DEV: better multisite suppport for migrate gifs (#40792) 2026-06-11 17:51:27 +04:00
views
rails_helper.rb DEV: Block external requests in system specs via Chrome DNS resolver (#40685) 2026-06-17 12:29:57 +01:00
regenerate_swagger_docs
swagger_helper.rb