discourse/plugins/discourse-solved/spec/integration
Martin Brennan ff83da79bd
UX: Downgrade site settings to category custom fields in solved plugin (#38402)
Moves `notify_on_staff_accept_solved` and `empty_box_on_solved` to
category custom fields instead of site settings, so they can be
configured
per category.

We are doing this because these things because we believe they should
be configurable per-category rather than globally:

<img width="1035" height="670" alt="image"
src="https://github.com/user-attachments/assets/74f1c550-1d83-4c2b-83e2-b521731df123"
/>

For the migration, we create the custom field values either using
the existing site setting values or the site setting defaults for
all categories where the custom field `enable_accepted_answers` is
set to `true` (which is what designates a Support category)

If `allow_solved_on_all_topics` is enabled on the site, then we
have to make the custom fields for all categories

---------

Co-authored-by: Régis Hanol <regis@hanol.fr>
2026-03-12 10:03:37 +10:00
..
solved_spec.rb UX: Downgrade site settings to category custom fields in solved plugin (#38402) 2026-03-12 10:03:37 +10:00