discourse/app/assets/javascripts/admin/addon
Kelv 5f0bc4557f
FEATURE: Count only approved flagged posts in user pages (#22799)
FEATURE: Only approved flags for post counters

* Why was this change necessary?
The counters for flagged posts in the user's profile and user index from
the admin view include flags that were rejected, ignored or pending
review. This introduces unnecessary noise. Also the flagged posts
counter in the user's profile includes custom flags which add further
noise to this signal.

* How does it address the problem?

* Modifying User#flags_received_count to return posts with only approved
  standard flags
* Refactoring User#number_of_flagged_posts to alias to
  User#flags_received_count
* Updating the flagged post staff counter hyperlink to navigate to a
  filtered view of that user's approved flagged posts to maintain
  consistency with the counter
* Adding system tests for the profile page to cover the flagged posts
  staff counter
2023-07-31 13:33:10 +08:00
..
adapters DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
components FEATURE: JSON editor for theme settings (#21647) 2023-07-27 13:48:59 -04:00
controllers FEATURE: JSON editor for theme settings (#21647) 2023-07-27 13:48:59 -04:00
helpers DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
lib DEV: Add support for uploads to form templates (#22232) 2023-06-28 12:49:05 -07:00
mixins FEATURE: Add default site settings to control the defaults of navigation menu preferences (#22485) 2023-07-07 04:52:10 +03:00
models DEV: Add endpoint for dismissing outdated translations (#22509) 2023-07-19 23:06:13 +08:00
routes FEATURE: JSON editor for theme settings (#21647) 2023-07-27 13:48:59 -04:00
services DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
templates FEATURE: Count only approved flagged posts in user pages (#22799) 2023-07-31 13:33:10 +08:00