mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 23:04:22 +08:00
Admins can choose which categories appear in the admin dashboard's "Activity by category" section. That choice now sticks for everyone across refreshes instead of resetting to the defaults on each visit. The selection is stored through a generic per-section settings storage system. Any dashboard section can declare the settings it supports, so future section configuration and filters can reuse the same storage, endpoint, and validation without new plumbing.
6 lines
212 B
Ruby
Vendored
6 lines
212 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class AddSettingsToAdminDashboardSections < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :admin_dashboard_sections, :settings, :jsonb, null: false, default: {}
|
|
end
|
|
end
|