discourse/app/assets/stylesheets/common/admin
Osama Sayegh 35b748e7f4
FIX: Don't show silence button on staff users and display similar users (#28423)
This commit fixes a bug where the silence button is incorrectly displayed on the admin page of a staff user. It's not actually possible to silence a staff user because the backend correctly prevents it, but the frontend isn't checking if the button should be displayed.

Another small bug that this commit fixes is the similar users list not showing up inside the silence/suspend modals due to also a bug in the frontend.

I've also changed the way similar users are loaded so that they're not returned by the `admin/users#show` endpoint anymore and moved them into a new endpoint that the penalize modals (suspend and silence) can call directly to retrieve the list of users. This is done because the similar users list is never shown on the admin user page (`/admin/users/:user_id/:username`); they're only needed when the suspend or silence modals are opened.

Internal topic: t/130014.
2024-08-20 15:27:29 +03:00
..
admin_base.scss UX: Apply admin interface guidelines to Backups page (#28051) 2024-08-20 09:59:43 +10:00
admin_config_area.scss UX: Apply admin interface guidelines to Backups page (#28051) 2024-08-20 09:59:43 +10:00
admin_emojis.scss EXPERIMENTAL: restructure admin sidebar menu (#26047) 2024-03-13 10:18:08 +11:00
admin_intro.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
admin_page_header.scss UX: Apply admin interface guidelines to Backups page (#28051) 2024-08-20 09:59:43 +10:00
admin_report_chart.scss A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
admin_report_counters.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
admin_report_inline_table.scss
admin_report_radar.scss DEV: Add support for radar charts when displaying reports. (#24274) 2023-11-08 10:48:12 -03:00
admin_report_stacked_chart.scss
admin_report_stacked_line_chart.scss DEV: Add stacked line chart mode (#28203) 2024-08-02 09:40:27 -07:00
admin_report_table.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
admin_report.scss UX: Remove or replace button transitions with variable (#27527) 2024-06-20 19:51:20 +02:00
admin_reports.scss DEV: Remove unused scss (#16134) 2022-03-08 17:39:40 +01:00
api.scss FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
backups.scss UX: Apply admin interface guidelines to Backups page (#28051) 2024-08-20 09:59:43 +10:00
badges.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
customize_themes_show_schema.scss UX: adjust objects editor styles for full page layout (#26265) 2024-03-20 15:55:52 -04:00
customize-install-theme.scss DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
customize.scss DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
dashboard.scss UX: Apply admin interface guidelines to Backups page (#28051) 2024-08-20 09:59:43 +10:00
emails.scss DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
flags.scss UX: move admin flag form to form-kit (#28187) 2024-08-05 11:01:25 +10:00
json_schema_editor.scss DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
mini_profiler.scss A11Y: Adjust contrast and font size for mini profiler widget (#22246) 2023-06-22 18:01:21 -04:00
penalty.scss FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
plugins.scss UX: remove redundant nav-pill active border (#27649) 2024-06-28 16:29:50 -04:00
schema_field.scss UX: minor style adjustments for schema objects editor (#26444) 2024-04-01 12:43:19 -04:00
schema_theme_setting_editor.scss UX: Improve validation error message when saving theme objects setting (#26455) 2024-04-02 11:55:51 +08:00
settings.scss UX: Change the color of the overriden dot to be slightly visible in dark mode (#25782) 2024-02-21 12:49:20 +08:00
sidebar.scss FEATURE: Unseen feature indicator in admin sidebar (#28397) 2024-08-19 14:50:30 +10:00
staff_logs.scss DEV: Convert admin-watched-word to glimmer/gjs/dbutton (#28340) 2024-08-13 15:45:44 +02:00
users.scss REFACTOR: user directories without <table>, second attempt (#20515) 2023-03-02 15:10:19 -05:00