Commit Graph

14 Commits (05f9e39b32f15d71eb9ec524d1ab871e5c0d03da)

Author SHA1 Message Date
Nick Schonning 84cc805cae
Enable Style/FrozenStringLiteralComment for specs ()
Nick Schonning 5116347eb7
Autofix Rubocop RSpec/BeEq ()
Nick Schonning 3680e032b4
Autofix Rubocop RSpec/EmptyLineAfterFinalLet ()
Eugen Rochko 44b2ee3485
Add customizable user roles ()
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
Eugen Rochko 14f436c457
Add notifications for statuses deleted by moderators ()
ThibG 61f35c1a8a
Fix reported accounts not being whitelisted when resolving a spamcheck report ()
Eugen Rochko 3c033c4352
Add moderation warnings ()
* Add moderation warnings

Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.

Additionally, there are warning presets you can configure to save
time when performing the above.

* Use Account#local_username_and_domain
Eugen Rochko 2374a00c10
Add confirmation step to account suspensions ()
* Add confirmation page for suspensions

* Suspension confirmation closes reports, linked from report UI

* Fix tests
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Emelia Smith e85cffb236 Feature: Report improvements () ()
* Implement Assignment of Reports ()

* Change translation of admin.report.comment.label to "Report Comment" for clarity

As we'll soon add the ability for reports to have comments on them, this clarification makes sense.

* Implement notes for Reports

This enables moderators to leave comments about a report whilst they work on it

* Fix display of report moderation notes

* Allow reports to be reopened / marked as unresolved

* Redirect to reports listing upon resolution of report

* Implement "resolve with note" functionality

* Add inverse relationship for report notes

* Remove additional database querying when loading report notes

* Fix tests for reports

* Fix localisations for report notes / reports
Akihiko Odaki 34157d118c Cover Admin::ReportsController more ()
Matt Jankowski a39e719b39 Add render_views to admin/reports controller spec ()
Matt Jankowski 8b74aa4217 Admin reports controller improvements ()
* Simplify admin/reports controller filtering for index

* Rename parameter to resolved

* Fix issue where reports view could not access filter_link_to

* Add coverage for admin/reports controller

* DRY up resolution of related reports for target account

* Clean up admin/reports routes

* Add Report#statuses method

* DRY up current account action taken params

* Rubocop styles
Matt Jankowski dbe9f33fdc Admin base controller ()
* Add Admin::BaseController to wrap admin area

Extracts the setting of the `admin` layout and verifying that users are admins
to a common base class for the admin/ controllers.

* Add basic coverage for admin/reports and admin/settings controllers