discourse/app/assets/stylesheets/common
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 FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
base UX: Improve mobile view for the new /about page (#28406) 2024-08-17 03:44:18 +03:00
components DEV: replace list control nav dropdown with DMenuMobile (#28324) 2024-08-16 01:40:47 +02:00
float-kit DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
form-kit UX: move admin flag form to form-kit (#28187) 2024-08-05 11:01:25 +10:00
foundation DEV: form-kit 2024-07-17 11:59:35 +02:00
login UX: cleaning up some invite page styles (#25247) 2024-01-12 17:15:01 -05:00
modal UX: smaller modal headings, shorter flag mdoal title (#28278) 2024-08-08 12:18:20 -04:00
select-kit UX: allow category names in select-kit to truncate if needed (#27941) 2024-07-16 17:52:17 -04:00
table-builder DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
d-editor.scss UX: move composer image controls below image (#27610) 2024-06-25 15:51:52 -04:00
font-variables.scss UX: increase base font-size to 16px (#27087) 2024-05-20 21:08:20 +02:00
input_tip.scss UX: Hide the error tooltip when focusing the topic title (#27531) 2024-06-19 11:55:29 -03:00
loading-slider.scss FIX: better supports ipad and hub footer nav (#25518) 2024-02-01 10:24:44 +01:00
post-action-feedback.scss FIX: allow styling of feedback on mobile (#25072) 2023-12-30 08:57:16 +11:00
printer-friendly.scss FEATURE: remove category badge style options, set bullet style as default (#24198) 2023-11-13 10:46:15 -05:00
software-update-prompt.scss DEV: Convert software-update-prompt to glimmer/gjs/dbutton (#28341) 2024-08-13 15:47:14 +02:00
topic-entrance.scss DEV: Implement glimmer topic-list (#26743) 2024-05-21 14:36:15 +02:00
topic-timeline.scss UX: topic admin button should match height of siblings (#26973) 2024-05-13 11:23:00 -04:00
whcm.scss A11Y: Improve accessibility in WHCM themes (#18606) 2022-10-17 07:07:46 -07:00