discourse/spec/helpers
Krzysztof Kotlarek 6cc0544d5e
FIX: Stop applying a color palette that is no longer user selectable (#40974)
Previously, when an admin removed a color palette as user selectable,
users who had previously selected it stayed stuck on it instead of
reverting to the default.

This change makes `user_scheme_id` and `user_dark_scheme_id` only honor
a stored palette when it is still user selectable or is the theme's own
light/dark scheme, so an unselectable palette falls back to the default
while keeping the user's saved preference if it becomes selectable
again.

---------

Co-authored-by: Osama Sayegh <asooomaasoooma90@gmail.com>
2026-06-18 09:23:52 +08:00
..
application_helper_spec.rb FIX: Stop applying a color palette that is no longer user selectable (#40974) 2026-06-18 09:23:52 +08:00
email_helper_spec.rb DEV: update base url links to respect subfolder installs (#27740) 2024-07-09 12:42:38 +04:00
embed_helper_spec.rb DEV: Extract embed post date title into i18n-aware helper (#38594) 2026-03-17 09:12:21 -05:00
redis_snapshot_helper.rb DEV: Call Discourse.redis.flushdb after the end of each test (#29117) 2024-10-09 07:19:31 +08:00
topics_helper_spec.rb
user_notifications_helper_spec.rb