Nick Schonning
75131e7bf7
Setup haml-lint CI with todo config ( #23524 )
2 years ago
lenore gilbert
c373148b3d
Support for import/export of instance-level domain blocks/allows for 4.x w/ additional fixes ( #20597 )
...
* Allow import/export of instance-level domain blocks/allows (#1754 )
* Allow import/export of instance-level domain blocks/allows.
Fixes #15095
* 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 (#1773 )
* 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>
2 years ago
Eugen Rochko
44b2ee3485
Add customizable user roles ( #18641 )
...
* Add customizable user roles
* Various fixes and improvements
* Add migration for old settings and fix tootctl role management
2 years ago
Claire
e7f0c9f7da
Pre-fill domain block/allow domain from search filter ( #18172 )
3 years ago
Jeong Arm
6907605026
Add stop delivery link also for failing instance ( #17871 )
3 years ago
Claire
749fe73ec4
Add tooltip for instance delivery warnings ( #17854 )
3 years ago
Eugen Rochko
5db1f377ea
Fix nil error when viewing suspended domain in admin UI ( #17765 )
3 years ago
Eugen Rochko
bd53dd5210
Change design of federation pages in admin UI ( #17704 )
...
* Change design of federation pages in admin UI
* Fix query performance in instance media attachments measure
* Fix reblogs being included in instance languages dimension
3 years ago
Jeong Arm
ee47e2028b
Enable domain purge button on suspended domains too ( #17209 )
...
* Enable domain purge button on suspended domains too
* Change unless to if
3 years ago
Claire
7f803c41e2
Add ability to purge undeliverable domains from admin interface ( #16686 )
...
* Add ability to purge undeliverable domains from admin interface
* Add tests
3 years ago
Eugen Rochko
0fb9536d38
Add batch suspend for accounts in admin UI ( #17009 )
3 years ago
Claire
e2844b7e58
Change number_to_human calls to always use 3-digits precision ( #16469 )
...
Fixes #16435
3 years ago
Takeshi Umeda
7cb34b32f8
Add management of delivery availability in Federation settings ( #15771 )
...
* 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)
4 years ago
Claire
67c5cdea40
Fix some ignored brakeman warnings ( #15829 )
4 years ago
Eugen Rochko
216b85b053
Fix performance on instances list in admin UI ( #15282 )
...
- Reduce duplicate queries
- Remove n+1 queries
- Add accounts count to detailed view
- Add separate action log entry for updating existing domain blocks
4 years ago
Mélanie Chauvel
08cf81f8c1
Improve appearence consistency of settings pages ( #13938 )
...
* 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
4 years ago
Mélanie Chauvel
77619b1654
Put “Add new domain block” button on /admin/instances in header ( #13934 )
5 years ago
ThibG
b8ba977497
Fix admin-facing uses of inline CSS ( #13575 )
...
* 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
5 years ago
Eugen Rochko
6feafb8802
Various fixes and improvements ( #12878 )
...
* 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
5 years ago
ThibG
4195039420
Link to reports targetting instance in admin view ( #12513 )
5 years ago
ThibG
c1e238a77b
Fix admin interface showing superfluous reject media/reports on suspended blocks ( #11749 )
...
* 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
5 years ago
ThibG
bced70469a
Add domain block notes ( #11515 )
...
* 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
5 years ago
Eugen Rochko
24552b5160
Add whitelist mode ( #11291 )
5 years ago
Eugen Rochko
1b052c7b2d
Remove expensive counters from federation page in admin UI ( #11139 )
5 years ago
Eugen Rochko
94e5e834f2
Improve performance of list of blocked domains by caching counts ( #10374 )
6 years ago
ThibG
359d26a053
Fix “reset” button of instance filter switching to custom emoji admin panel ( #10076 )
6 years ago
ThibG
6840a77711
Add domain search/filter to the "Federation" (/admin/instances) page ( #10071 )
6 years ago
Eugen Rochko
a269ffdfa5
Change "federation" admin UI link to point to "limited" domains ( #9762 )
6 years ago
Eugen Rochko
1c6588accc
Redesign admin instances area ( #9645 )
6 years ago
Eugen Rochko
fd5285658f
Add option to block reports from domain ( #8830 )
6 years ago
nullkal
da77f65c46
Add instance search feature ( #4925 )
7 years ago
nullkal
9e2ff3ef71
Make instance names in into links to user list in the instance ( #4924 )
7 years ago
Lynx Kotoura
3c45d3963a
Scrollable tables in settings pages ( #4857 )
...
* Scrollable tables in settings pages
* Add space before curly brace
7 years ago
Eugen Rochko
4b911fea03
Add button to re-subscribe to all accounts from a domain ( #4285 )
7 years ago
Matt Jankowski
a132332b86
Add Instance class to list admin records ( #3443 )
8 years ago
Matt Jankowski
b5eec34230
Add admin area view partials for each record type ( #2700 )
8 years ago
Matt Jankowski
55e1503522
Instances list in admin ( #2095 )
...
* 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
8 years ago