Commit Graph

43 Commits (55e2c827bdc7f96fc746ce43ea303f9e25805099)

Author SHA1 Message Date
Matt Jankowski 0a33be39c1
Reduce `LineLength` for `react_admin_component` helpers ()
Jeong Arm deffb8ecb6
Show comments in the admin/instances page ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Claire 99f2534cee
Add support for displaying unknown servers on /admin/instances/:domain ()
Matt Jankowski 9974163776
Consolidate inclusion of `admin` js pack link ()
Emelia Smith e258b4cb64
Refactor: replace whitelist_mode mentions with limited_federation_mode ()
Jed Fox 768b00c4d0
Consistently use middle dot (·) instead of bullet (•) to separate items ()
Nick Schonning 75131e7bf7
Setup haml-lint CI with todo config ()
lenore gilbert c373148b3d
Support for import/export of instance-level domain blocks/allows for 4.x w/ additional fixes ()
* Allow import/export of instance-level domain blocks/allows ()

* Allow import/export of instance-level domain blocks/allows.
Fixes 

* Pacify circleci

* Address simple code review feedback

* Add headers to exported CSV

* Extract common import/export functionality to
AdminExportControllerConcern

* Add additional fields to instance-blocked domain export

* Address review feedback

* Split instance domain block/allow import/export into separate pages/controllers

* Address code review feedback

* Pacify DeepSource

* Work around Paperclip::HasAttachmentFile for Rails 6

* Fix deprecated API warning in export tests

* Remove after_commit workaround

(cherry picked from commit 94e98864e3)

* Add confirmation page when importing blocked domains ()

* Move glitch-soc-specific strings to glitch-soc-specific locale files

* Add confirmation page when importing blocked domains

(cherry picked from commit b91196f4b7)

* Fix authorization check in domain blocks controller

(cherry picked from commit 7527937758)

* Fix error strings for domain blocks and email-domain blocks

Corrected issue with non-error message used for Mastodon:NotPermittedError in Domain Blocks
Corrected issue Domain Blocks using the Email Domain Blocks message on ActionContoller::ParameterMissing
Corrected issue with Email Domain Blocks using the not_permitted string from "custom emojii's"

* Ran i18n-tasks normalize to address test failure

* Removed unused admin.export_domain_blocks.not_permitted string

Removing unused string as indicated by Check i18n

* Fix tests

(cherry picked from commit 9094c2f52c)

* Fix domain block export not exporting blocks with only media rejection

(cherry picked from commit 26ff48ee48)

* Fix various issues with domain block import

- stop using Paperclip for processing domain allow/block imports
- stop leaving temporary files
- better error handling
- assume CSV files are UTF-8-encoded

(cherry picked from commit cad824d8f501b95377e4f0a957e5a00d517a1902)

Co-authored-by: Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
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
Claire e7f0c9f7da
Pre-fill domain block/allow domain from search filter ()
Jeong Arm 6907605026
Add stop delivery link also for failing instance ()
Claire 749fe73ec4
Add tooltip for instance delivery warnings ()
Eugen Rochko 5db1f377ea
Fix nil error when viewing suspended domain in admin UI ()
Eugen Rochko bd53dd5210
Change design of federation pages in admin UI ()
* Change design of federation pages in admin UI

* Fix query performance in instance media attachments measure

* Fix reblogs being included in instance languages dimension
Jeong Arm ee47e2028b
Enable domain purge button on suspended domains too ()
* Enable domain purge button on suspended domains too

* Change unless to if
Claire 7f803c41e2
Add ability to purge undeliverable domains from admin interface ()
* Add ability to purge undeliverable domains from admin interface

* Add tests
Eugen Rochko 0fb9536d38
Add batch suspend for accounts in admin UI ()
Claire e2844b7e58
Change number_to_human calls to always use 3-digits precision ()
Fixes 
Takeshi Umeda 7cb34b32f8
Add management of delivery availability in Federation settings ()
* Add management of delivery availavility in Federation settings

* fix translate

* Remove useless object creation

* Fix DeepSource issue

* Add shortcut for all

* Fix DeepSource(skipcq)

* Change 'remove' to 'clear'

* Fix style

* Change class method name (exhausted_deliveries_key_by)
Claire 67c5cdea40
Fix some ignored brakeman warnings ()
Eugen Rochko 216b85b053
Fix performance on instances list in admin UI ()
- Reduce duplicate queries
- Remove n+1 queries
- Add accounts count to detailed view
- Add separate action log entry for updating existing domain blocks
Mélanie Chauvel 08cf81f8c1
Improve appearence consistency of settings pages ()
* Fix header button changing header size in settings pages

* Make form buttons look more like a part of the form in settings pages

- Put buttons closer, using same distance as between inputs
- Make buton font size a bit smaller to blend a bit more
- Add the class button to button tags for consisent styling
Mélanie Chauvel 77619b1654
Put “Add new domain block” button on /admin/instances in header ()
ThibG b8ba977497
Fix admin-facing uses of inline CSS ()
* Move .back-button inline styles to CSS file

All occurrences of the back-button CSS class used the same inline
CSS rules, so moved them over to the CSS file

* Fix “Add new domain block” button using inline CSS

* Replace common pattern of inline-styled button boxes by a CSS class

In particular, switching from `float: left/right` to a flexbox with
`justify-content: space-between`. This implied changing the order of
a few HTML tags and adding an empty `div` in one case.

Also removed a `margin-bottom` rule that wasn't needed due to the
margins of surrounding elements.

* Move account admin view inline CSS to CSS file
Eugen Rochko 6feafb8802
Various fixes and improvements ()
* Fix unused role routes being generated

* Remove unused JavaScript code

* Refactor filters code to be DRYer

* Fix `.count == 0` comparisons to `.empty?` in views

* Fix filters in views
ThibG 4195039420 Link to reports targetting instance in admin view ()
ThibG c1e238a77b Fix admin interface showing superfluous reject media/reports on suspended blocks ()
* Fix admin interface showing superfluous reject media/reports on suspended domains

* Fix reject media/reports checkboxes being visible when editing domain block of suspend severity
ThibG bced70469a Add domain block notes ()
* Add database columns for adding notes to domain blocks/restrctions

* Add admin UI to set private and public comments when blocking a domain

* Add text for private and public comments on domain blocks

* Show domain block comments in admin UI

* Add comments to the domain block undo page

* Make UnblockDomainService more robust regarding upgraded domain blocks

* Allow editing domain blocks

* Rename button from “undo domain block” to “view domain block” in account admin UI

* Change test to unsilence silenced users from upgraded blocks
Eugen Rochko 24552b5160
Add whitelist mode ()
Eugen Rochko 1b052c7b2d
Remove expensive counters from federation page in admin UI ()
Eugen Rochko 94e5e834f2
Improve performance of list of blocked domains by caching counts ()
ThibG 359d26a053 Fix “reset” button of instance filter switching to custom emoji admin panel ()
ThibG 6840a77711 Add domain search/filter to the "Federation" (/admin/instances) page ()
Eugen Rochko a269ffdfa5
Change "federation" admin UI link to point to "limited" domains ()
Eugen Rochko 1c6588accc
Redesign admin instances area ()
Eugen Rochko fd5285658f
Add option to block reports from domain ()
nullkal da77f65c46 Add instance search feature ()
nullkal 9e2ff3ef71 Make instance names in into links to user list in the instance ()
Lynx Kotoura 3c45d3963a Scrollable tables in settings pages ()
* Scrollable tables in settings pages

* Add space before curly brace
Eugen Rochko 4b911fea03 Add button to re-subscribe to all accounts from a domain ()
Matt Jankowski a132332b86 Add Instance class to list admin records ()
Matt Jankowski b5eec34230 Add admin area view partials for each record type ()
Matt Jankowski 55e1503522 Instances list in admin ()
* Add admin/instances index action

* Add link to instances admin page

* View lists instances

* Instances, grouped by domain, ordered by count

* Use Account.remote scope

* Extract method: Account.by_domain_accounts