2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/requests/admin
Kris bb386fcfa7
DEV: use classes to style hidden post history revision (#38159)
Reported here:
https://meta.discourse.org/t/understanding-opacity-in-hidden-revisions/397345

We're currently using `nth-of-type` selectors to reduce the opacity of
hidden revisions in the history modal... but these can be fragile and
are prone to regression if we change anything in the DOM. Adding class
names provides more predictable targets — this adds `--previous` and
`--current` and fixes the misplaced style.

Before (title of current revision also has reduced opacity)
<img width="2212" height="710" alt="image"
src="https://github.com/user-attachments/assets/5cd746ca-3bc8-4c3f-b6a6-aac525d3e0a0"
/>


After (only the hidden revision has the opacity reduced)
<img width="2292" height="830" alt="image"
src="https://github.com/user-attachments/assets/c5eb1731-2d3c-4d5c-9905-c8c8b9b7a33d"
/>
2026-03-03 09:58:03 -05:00
..
config FIX: Log Discourse ID setting changes to staff action logs (#37649) 2026-02-10 18:18:35 +11:00
admin_controller_spec.rb
api_controller_spec.rb DEV: Replace Ruby numbered parameters by it where applicable (#37810) 2026-02-13 13:59:07 +01:00
backups_controller_spec.rb FIX: improve "read only" modes (#33521) 2025-07-10 09:08:00 +02:00
badges_controller_spec.rb FIX: ensures admin can't set system property on badges (#37820) 2026-02-16 12:33:32 +01:00
color_schemes_controller_spec.rb FEATURE: Allow editing theme-owned palettes (#34722) 2025-10-06 09:02:39 +03:00
dashboard_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
email_controller_spec.rb FIX: disable smtp_should_reject code 2025-11-25 10:34:35 -05:00
email_logs_controller_spec.rb FIX: bug when skipped email logs are filtered (#33557) 2025-07-11 08:55:51 +08:00
email_styles_controller_spec.rb
email_templates_controller_spec.rb UX: Display interpolation keys as interactive pills in admin editors (#37254) 2026-02-27 21:21:26 +01:00
embeddable_hosts_controller_spec.rb DEV: Expand top_tags, topic.tags, etc, to return an array of tag objects instead of tag names (#36678) 2026-02-02 10:03:02 +08:00
embedding_controller_spec.rb UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
emojis_controller_spec.rb FEATURE: Allow SVG custom emoji (#37933) 2026-02-20 14:52:09 +10:00
form_templates_controller_spec.rb DEV: Rename experimental_ upcoming change settings (#37589) 2026-02-10 10:34:37 +10:00
groups_controller_spec.rb FIX: Logging hole in group user histories and convert group create to service (#37054) 2026-02-06 13:34:58 +10:00
impersonate_controller_spec.rb FIX: Stop impersonation session not working with group-based upcoming change (#37655) 2026-02-10 16:24:31 +10:00
permalinks_controller_spec.rb FIX: Permalink.create didn't work as expected anymore (#29895) 2024-11-22 21:11:26 +01:00
plugins_controller_spec.rb
reports_controller_spec.rb FIX: bulk action missing report_type format validation (#37787) 2026-02-13 09:08:48 +01:00
robots_txt_controller_spec.rb FIX: Log changes to robots.txt by admins (#37901) 2026-02-18 14:20:21 -05:00
screened_emails_controller_spec.rb SECURITY: Moderators cannot see user emails. 2024-12-19 13:13:18 -03:00
screened_ip_addresses_controller_spec.rb DEV: minor api cleanup, unhandled args (#37795) 2026-02-13 17:44:10 +11:00
screened_urls_controller_spec.rb
search_controller_spec.rb FIX: Default Locale site setting not included in admin search (#34562) 2025-08-27 13:03:44 +08:00
search_logs_spec.rb
site_settings_controller_spec.rb FIX: user_count uses public_send with user-controlled input on SiteSetting (#37660) 2026-02-10 10:14:15 +01:00
site_texts_controller_spec.rb UX: Display interpolation keys as interactive pills in admin editors (#37254) 2026-02-27 21:21:26 +01:00
staff_action_logs_controller_spec.rb DEV: use classes to style hidden post history revision (#38159) 2026-03-03 09:58:03 -05:00
themes_controller_spec.rb FIX: support nested descriptions in object settings (#37538) 2026-02-05 14:01:58 -05:00
unknown_reviewables_controller_spec.rb DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
user_fields_controller_spec.rb DEV: add input=date type to custom user field options (#37902) 2026-02-19 07:04:52 +01:00
users_controller_spec.rb Revert "FIX: Add server-side trust level check for delete all posts (… (#38094) 2026-02-26 21:17:39 +01:00
versions_controller_spec.rb
watched_words_controller_spec.rb FIX: unify watched word boundary regex across Ruby and JS engines (#37965) 2026-02-23 16:30:10 +01:00
web_hooks_controller_spec.rb FIX: Allow selecting tags when creating or editing webhooks (#37942) 2026-02-20 23:00:50 +08:00