discourse/spec
Kris b60d9bcc8c
UX: fixes and improvements for color palettes (#34359)
Various fixes and improvements for the color palettes admin page... 

* Live previews stopped working because we were never running
`_captureInitialState()` so we had no comparison to see if we could live
preview

* `canPreviewColorScheme` also needed to check against "theme default"
user preference (-1)

* Refactors warning messages if admin user preferences differ from
defaults

<img width="2036" height="260" alt="image"
src="https://github.com/user-attachments/assets/30b6957a-6009-42e7-9cb7-01610536fd1c"
/>

   
    We now warn on: 
* Theme is different from the default (overrides color difference
warnings)
      * Light and/or dark palette are different from the default
      
* Added specs for toasts on palette change, which is a light way to
check if live preview is working (when the conditions are met for the
live preview, we don't show the toast)

* If a color palette isn't editable, make the button say "view" and not
"edit" — we can improve this some more, but this is a simple iterative
step
2025-08-18 12:20:22 -04:00
..
db/migrate FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
fabricators FEATURE: Enable rich editor for all users (#33699) 2025-07-28 10:08:50 +10:00
fixtures FIX: correctly unescape title for amazon oneboxes (#33010) 2025-06-02 17:50:13 +05:30
generator DEV: Silence the output of migration specs (#26365) 2024-03-26 11:32:44 +01:00
helpers FEATURE: theme default option in user interface (#34126) 2025-08-08 08:29:58 +08:00
import_export DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
initializers DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
integration DEV: Only write session cookie when contents is changed (#33828) 2025-07-25 11:07:07 +01:00
integrity FIX: cross origin opener policy should apply to public error responses (#31559) 2025-03-03 17:04:24 +08:00
jobs FIX: Ensure confirm user fields are exported correctly in user lists. (#34375) 2025-08-18 17:21:11 +10:00
lib UX: Don't make seeded palettes user-selectable (#34347) 2025-08-15 08:03:55 +03:00
mailers DEV: Remove ability to use users' names in group mention notifications and mentions shown in emails and added :user_notification_email_options plugin modifier to allow plugins reintroduce this or other modifications to emails (#33449) 2025-07-14 15:20:08 -05:00
models UX: Add admin report for associated accounts by login provider (#34187) 2025-08-14 09:24:14 -04:00
multisite FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
queries/reports UX: Add admin report for associated accounts by login provider (#34187) 2025-08-14 09:24:14 -04:00
requests FIX: Allow users in content_localization_allowed_groups to delete translations (#34385) 2025-08-18 21:57:45 +08:00
script/import_scripts DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
serializers DEV: Ensure that "confirm" user fields use boolean values (#34350) 2025-08-18 13:24:10 +10:00
services DEV: Fix flakey spec with media convert (#33906) 2025-07-28 12:27:43 -06:00
support FIX: Theme site settings not reloading across processes (#34242) 2025-08-12 14:18:32 +10:00
system UX: fixes and improvements for color palettes (#34359) 2025-08-18 12:20:22 -04:00
tasks DEV: Only load specific plugin bundles during qunit test (#33678) 2025-07-21 21:00:48 +01:00
views FIX: Use correct subcategory subfolder path in crawler (#34250) 2025-08-12 16:14:50 +08:00
rails_helper.rb DEV: Clear serializers cache between tests (#34008) 2025-07-31 17:21:22 +03:00
regenerate_swagger_docs
swagger_helper.rb DEV: Bump rswag-specs from 2.11.0 to 2.13.0 (#24654) 2023-12-07 08:16:47 +08:00