discourse/app/serializers
Sam 55a8184231
FEATURE: Reason and deleted content support in the review queue (#30295)
Add flag reason filter and improve handling of deleted content in review queue

This commit enhances the review queue with several key improvements:

1. Adds a new "Reason" filter to allow filtering flags by their score type
2. Improves UI for deleted content by:
   - Adding visual indication for deleted posts (red background)
   - Properly handling deleted content visibility for staff (category mods can not see deleted content)
3. Refactors reviewable score type handling for better code organization
4. Adds  tests for trashed topics/posts visibility

This change will help moderators more efficiently manage the review queue by
being able to focus on specific types of flags and better identify deleted
content.
2024-12-17 11:44:46 +11:00
..
concerns UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
about_serializer.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
admin_badge_serializer.rb FIX: Badge image uploader (#28188) 2024-08-01 15:36:17 +02:00
admin_badges_serializer.rb
admin_detailed_user_serializer.rb FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
admin_email_template_serializer.rb
admin_form_template_serializer.rb
admin_notice_serializer.rb FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08:00
admin_plugin_serializer.rb FIX: Plugin JS failing to load would break admin interface (#29139) 2024-10-11 09:26:10 +10:00
admin_user_action_serializer.rb
admin_user_list_serializer.rb FEATURE: Add bulk destroy to admin users list (#29744) 2024-11-25 11:13:35 +03:00
admin_user_serializer.rb FEATURE: Add bulk destroy to admin users list (#29744) 2024-11-25 11:13:35 +03:00
admin_web_hook_event_serializer.rb FEATURE: Add Mechanism to redeliver all failed webhook events (#27609) 2024-07-08 15:43:16 -05:00
admin_web_hook_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
api_key_scope_serializer.rb
api_key_serializer.rb
application_serializer.rb
archetype_serializer.rb
associated_group_serializer.rb
auth_provider_serializer.rb DEV: restore custom route for custom homepage (#29343) 2024-10-22 13:17:36 -04:00
backup_file_serializer.rb
badge_grouping_serializer.rb
badge_index_serializer.rb
badge_serializer.rb FEATURE: Show when a badge has been granted for a post (#29696) 2024-12-03 13:43:27 +11:00
badge_type_serializer.rb
basic_api_key_serializer.rb PERF: introduce a basic api key serializer 2024-04-24 19:16:10 +02:00
basic_category_serializer.rb FIX: Fetch categories for "+subcategories" option (#26622) 2024-04-25 16:47:45 +03:00
basic_group_history_serializer.rb
basic_group_serializer.rb UX: Add descriptions to auto groups and auto group indicator (#28630) 2024-08-30 10:52:34 +10:00
basic_group_user_serializer.rb
basic_post_serializer.rb
basic_reviewable_flagged_post_serializer.rb
basic_reviewable_queued_post_serializer.rb
basic_reviewable_serializer.rb
basic_reviewable_user_serializer.rb
basic_theme_serializer.rb
basic_topic_serializer.rb
basic_user_badge_serializer.rb
basic_user_serializer.rb
category_and_topic_lists_serializer.rb
category_badge_serializer.rb DEV: Merge two similar category serializers (#26653) 2024-04-17 18:52:34 +03:00
category_detailed_serializer.rb
category_group_serializer.rb
category_list_serializer.rb
category_required_tag_group_serializer.rb
category_serializer.rb FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
category_upload_serializer.rb
color_scheme_color_serializer.rb
color_scheme_selectable_serializer.rb
color_scheme_serializer.rb
current_user_option_serializer.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
current_user_serializer.rb DEV: Switch the glimmer post menu to auto and unsilence deprecations (#30161) 2024-12-12 18:27:02 -03:00
detailed_tag_serializer.rb FIX: Include permissions in the tag serializer (#27849) 2024-07-11 19:59:57 +03:00
detailed_user_badge_serializer.rb
directory_column_serializer.rb
directory_item_serializer.rb FEATURE: Add links to searchable user fields in users directory and user profile (#29338) 2024-11-06 13:35:30 -04:00
discourse_version_check_serializer.rb
draft_serializer.rb
edit_directory_column_serializer.rb
email_log_serializer.rb
email_style_serializer.rb
embeddable_host_serializer.rb FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
embedding_serializer.rb
emoji_serializer.rb FEATURE - Add username column to custom emoji table (#29522) 2024-11-01 10:32:59 -05:00
flag_serializer.rb FEATURE: auto_action_type field for flags (#29306) 2024-10-22 10:56:31 +11:00
flagged_topic_serializer.rb
flagged_topic_summary_serializer.rb
flagged_user_serializer.rb
flair_group_serializer.rb
form_template_serializer.rb
found_user_serializer.rb
gap_serializer.rb
group_post_serializer.rb
group_post_user_serializer.rb
group_requester_serializer.rb
group_show_serializer.rb UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
group_user_serializer.rb
group_user_with_custom_fields_serializer.rb
grouped_screened_url_serializer.rb
grouped_search_result_serializer.rb
hidden_profile_serializer.rb UX: Show message and chat buttons on hidden profiles (#27326) 2024-06-10 10:38:22 -03:00
inactive_user_serializer.rb
incoming_email_details_serializer.rb
incoming_email_serializer.rb
invite_link_serializer.rb
invite_serializer.rb
invited_serializer.rb
invited_user_record_serializer.rb
invited_user_serializer.rb
listable_topic_serializer.rb FIX: Better tracking of topic visibility changes (#26709) 2024-04-29 10:34:46 +10:00
new_post_result_serializer.rb
notification_serializer.rb
penalty_counts_serializer.rb
pending_post_serializer.rb
permalink_serializer.rb
post_action_type_serializer.rb FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
post_action_user_serializer.rb
post_item_excerpt.rb
post_revision_serializer.rb FIX: Don’t try to serialize associations in PostRevisionSerializer 2024-11-06 10:38:41 +01:00
post_serializer.rb FEATURE: Show when a badge has been granted for a post (#29696) 2024-12-03 13:43:27 +11:00
post_stream_serializer_mixin.rb FEATURE: theme_modifiers can depend on theme settings (plus serialize_post_user_badges) (#29227) 2024-10-17 15:16:16 +01:00
post_wordpress_serializer.rb
poster_serializer.rb
presence_channel_state_serializer.rb
primary_group_serializer.rb
private_message_topic_tracking_state_serializer.rb
published_page_serializer.rb
queued_post_serializer.rb
remote_theme_serializer.rb FIX: Hide broken theme about/license URLs (#29930) 2024-11-26 13:53:10 +10:00
reviewable_action_serializer.rb
reviewable_bundled_action_serializer.rb
reviewable_conversation_post_serializer.rb
reviewable_conversation_serializer.rb
reviewable_editable_field_serializer.rb
reviewable_explanation_serializer.rb
reviewable_flagged_post_serializer.rb FEATURE: Reason and deleted content support in the review queue (#30295) 2024-12-17 11:44:46 +11:00
reviewable_history_serializer.rb
reviewable_perform_result_serializer.rb
reviewable_post_serializer.rb
reviewable_queued_post_serializer.rb
reviewable_score_explanation_serializer.rb
reviewable_score_serializer.rb FEATURE: Allow completely custom score reasons. (#28348) 2024-08-14 15:53:59 -03:00
reviewable_score_type_serializer.rb FEATURE: Reason and deleted content support in the review queue (#30295) 2024-12-17 11:44:46 +11:00
reviewable_serializer.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
reviewable_settings_serializer.rb
reviewable_topic_serializer.rb
reviewable_user_serializer.rb SECURITY: Update reviewable user serializer payload 2024-07-03 20:49:19 +08:00
screened_email_serializer.rb
screened_ip_address_serializer.rb
screened_url_serializer.rb
search_logs_serializer.rb
search_post_serializer.rb
search_result_user_serializer.rb
search_topic_list_item_serializer.rb
sidebar_section_serializer.rb
sidebar_tag_serializer.rb
sidebar_url_serializer.rb
similar_admin_user_serializer.rb
similar_topic_serializer.rb
single_sign_on_record_serializer.rb
site_category_serializer.rb
site_serializer.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
site_text_serializer.rb
skipped_email_log_serializer.rb
suggested_topic_serializer.rb
suggested_topics_mixin.rb PERF: Ensure suggested topics is only loaded on last page of topic view (#28507) 2024-08-23 16:10:50 +08:00
tag_group_serializer.rb
tag_serializer.rb
theme_field_serializer.rb
theme_objects_setting_metadata_serializer.rb
theme_serializer.rb FEATURE: Allow themes to define screenshots (#29079) 2024-10-28 10:10:20 +10:00
theme_settings_serializer.rb
theme_translation_serializer.rb
topic_embed_serializer.rb
topic_flag_type_serializer.rb FIX: Return properly interpolated translations for flag types 2024-07-30 18:30:57 +02:00
topic_link_serializer.rb
topic_list_item_serializer.rb
topic_list_serializer.rb DEV: Set topic list filter name in serializer for children (#29291) 2024-10-18 17:24:47 -03:00
topic_pending_post_serializer.rb
topic_post_count_serializer.rb
topic_poster_serializer.rb
topic_timer_serializer.rb
topic_tracking_state_item_serializer.rb
topic_tracking_state_serializer.rb
topic_view_bookmark_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
topic_view_details_serializer.rb
topic_view_posts_serializer.rb
topic_view_serializer.rb DEV: Remove summarization code (#27373) 2024-07-02 08:51:47 -07:00
topic_view_wordpress_serializer.rb
trust_level3_requirements_serializer.rb
upload_serializer.rb DEV: serialize image upload thumbnail (#29276) 2024-10-18 12:55:14 +04:00
upload_thumbnail_serializer.rb DEV: serialize image upload thumbnail (#29276) 2024-10-18 12:55:14 +04:00
user_action_serializer.rb
user_auth_token_serializer.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
user_badge_serializer.rb
user_badges_serializer.rb
user_bookmark_base_serializer.rb
user_bookmark_list_serializer.rb FIX: Serialize categories for bookmarks (#26606) 2024-04-17 17:23:47 +03:00
user_card_serializer.rb DEV: Use serializers for user_notification_schedule and featured_topic (#27719) 2024-07-05 00:00:24 -03:00
user_field_serializer.rb FEATURE: Implement new required options in admin user fields UI (#27079) 2024-05-23 19:18:25 +08:00
user_history_serializer.rb
user_name_serializer.rb
user_notification_schedule_serializer.rb DEV: Use serializers for user_notification_schedule and featured_topic (#27719) 2024-07-05 00:00:24 -03:00
user_notification_total_serializer.rb
user_option_serializer.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
user_post_bookmark_serializer.rb
user_post_topic_bookmark_base_serializer.rb
user_serializer.rb FIX: Don't include secret membership groups when serializing other users (#29799) 2024-11-18 19:25:42 +08:00
user_status_serializer.rb
user_summary_serializer.rb
user_tag_notifications_serializer.rb
user_topic_bookmark_serializer.rb
user_with_custom_fields_serializer.rb
user_wordpress_serializer.rb
watched_word_list_serializer.rb
watched_word_serializer.rb FEATURE: add HTML replacements 2024-05-14 10:41:27 +02:00
web_hook_category_serializer.rb
web_hook_event_type_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
web_hook_flag_serializer.rb
web_hook_group_serializer.rb
web_hook_group_user_serializer.rb
web_hook_like_serializer.rb
web_hook_post_serializer.rb FEATURE: Show when a badge has been granted for a post (#29696) 2024-12-03 13:43:27 +11:00
web_hook_topic_view_serializer.rb DEV: Remove summarization code (#27373) 2024-07-02 08:51:47 -07:00
web_hook_user_serializer.rb
wizard_field_choice_serializer.rb DEV: Generate correct i18n keys for wizard radio choices (#28370) 2024-08-14 14:39:18 +02:00
wizard_field_serializer.rb
wizard_serializer.rb
wizard_step_serializer.rb