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
about_serializer.rb
admin_badge_serializer.rb
admin_badges_serializer.rb
admin_detailed_user_serializer.rb
admin_email_template_serializer.rb
admin_form_template_serializer.rb
admin_notice_serializer.rb
admin_plugin_serializer.rb
admin_user_action_serializer.rb
admin_user_list_serializer.rb
admin_user_serializer.rb
admin_web_hook_event_serializer.rb
admin_web_hook_serializer.rb
api_key_scope_serializer.rb
api_key_serializer.rb
application_serializer.rb
archetype_serializer.rb
associated_group_serializer.rb
auth_provider_serializer.rb
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
basic_category_serializer.rb
basic_group_history_serializer.rb
basic_group_serializer.rb
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
category_detailed_serializer.rb
category_group_serializer.rb
category_list_serializer.rb
category_required_tag_group_serializer.rb
category_serializer.rb
category_upload_serializer.rb
color_scheme_color_serializer.rb
color_scheme_selectable_serializer.rb
color_scheme_serializer.rb
current_user_option_serializer.rb
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
detailed_user_badge_serializer.rb
directory_column_serializer.rb
directory_item_serializer.rb
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
embedding_serializer.rb
emoji_serializer.rb
flag_serializer.rb
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
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
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
new_post_result_serializer.rb
notification_serializer.rb
penalty_counts_serializer.rb
pending_post_serializer.rb
permalink_serializer.rb
post_action_type_serializer.rb
post_action_user_serializer.rb
post_item_excerpt.rb
post_revision_serializer.rb
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
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
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
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
reviewable_settings_serializer.rb
reviewable_topic_serializer.rb
reviewable_user_serializer.rb
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
site_text_serializer.rb
skipped_email_log_serializer.rb
suggested_topic_serializer.rb
suggested_topics_mixin.rb
tag_group_serializer.rb
tag_serializer.rb
theme_field_serializer.rb
theme_objects_setting_metadata_serializer.rb
theme_serializer.rb
theme_settings_serializer.rb
theme_translation_serializer.rb
topic_embed_serializer.rb
topic_flag_type_serializer.rb
topic_link_serializer.rb
topic_list_item_serializer.rb
topic_list_serializer.rb
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
topic_view_details_serializer.rb
topic_view_posts_serializer.rb
topic_view_serializer.rb
topic_view_wordpress_serializer.rb
trust_level3_requirements_serializer.rb
upload_serializer.rb
upload_thumbnail_serializer.rb
user_action_serializer.rb
user_auth_token_serializer.rb
user_badge_serializer.rb
user_badges_serializer.rb
user_bookmark_base_serializer.rb
user_bookmark_list_serializer.rb
user_card_serializer.rb
user_field_serializer.rb
user_history_serializer.rb
user_name_serializer.rb
user_notification_schedule_serializer.rb
user_notification_total_serializer.rb
user_option_serializer.rb
user_post_bookmark_serializer.rb
user_post_topic_bookmark_base_serializer.rb
user_serializer.rb
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
web_hook_category_serializer.rb
web_hook_event_type_serializer.rb
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
web_hook_user_serializer.rb
wizard_field_choice_serializer.rb
wizard_field_serializer.rb
wizard_serializer.rb
wizard_step_serializer.rb