Commit Graph

28 Commits (2a6a418f48fa9059ac26ba28449d7687f9721c76)

Author SHA1 Message Date
Eugen Rochko 11786f1114
Change design of edit media modal in web UI ()
Matt Jankowski 33e829763d
Use shared `form` partial for `admin/domain_blocks` views ()
Matt Jankowski 0a33be39c1
Reduce `LineLength` for `react_admin_component` helpers ()
Matt Jankowski f445d33fd6
Fix haml-lint `LineLength` cops in app/views/admin ()
Matt Jankowski 70dbf84b9b
Solve simplest haml-lint `Rubocop` lints ()
Matt Jankowski 9974163776
Consolidate inclusion of `admin` js pack link ()
Matt Jankowski 361dd43235
Fix haml-lint Rubocop `lambda` cop ()
Claire c7c6f02ae6
Fix suspending an already-limited domain ()
Claire e9385e93e9
Add a confirmation screen when suspending a domain ()
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
Eugen Rochko 8a95867693
Add option to obfuscate domain name in public list of domain blocks ()
- Replace the middle of the domain with * characters (except for periods)
- Add SHA-256 digest of the domain name in tooltip
Eugen Rochko 9b1f2a4b61
Add subresource integrity for JS and CSS assets ()
Fix 
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
ThibG 14f6ce2885 Record account suspend/silence time and keep track of domain blocks ()
* Record account suspend/silence time and keep track of domain blocks

* Also unblock users who were suspended/silenced before dates were recorded

* Add tests

* Keep track of suspending date for users suspended through the CLI

* Show accurate number of accounts that would be affected by unsuspending an instance

* Change migration to set silenced_at and suspended_at

* Revert "Also unblock users who were suspended/silenced before dates were recorded"

This reverts commit a015c65d2d.

* Switch from using suspended and silenced to suspended_at and silenced_at

* Add post-deployment migration script to remove `suspended` and `silenced` columns

* Use Account#silence! and Account#suspend! instead of updating the underlying property

* Add silenced_at and suspended_at migration to post-migration

* Change account fabricator to translate suspended and silenced attributes

* Minor fixes

* Make unblocking domains always retroactive
Eugen Rochko 1c6588accc
Redesign admin instances area ()
Eugen Rochko fd5285658f
Add option to block reports from domain ()
Eugen Rochko f4d549d300
Redesign forms, verify link ownership with rel="me" ()
* Verify link ownership with rel="me"

* Add explanation about verification to UI

* Perform link verifications

* Add click-to-copy widget for verification HTML

* Redesign edit profile page

* Redesign forms

* Improve responsive design of settings pages

* Restore landing page sign-up form

* Fix typo

* Support <link> tags, add spec

* Fix links not being verified on first discovery and passive updates
M Somerville 29da56cf75 Hide reject media checkbox when not relevant. ()
Lynx Kotoura 3c45d3963a Scrollable tables in settings pages ()
* Scrollable tables in settings pages

* Add space before curly brace
sdukhovni 06d905f415 Allow domain blocks that only reject media without silencing or suspending ()
* Allow domain blocks to reject media without silencing or suspending

* Fix typo

* Hide 'Reject media' button when superfluous, instead of disabling it

* Properly hide 'reject media' checkbox on page load if needed

This may happen when resubmitting the domain block form after an error.

* Don't ask whether undoing a media-only block should be retroactive

* Rename :media_only block to :noop

* Display :noop block as None in frontend, allow blocks that do nothing

* Remove 'coding' line auto-added by emacs
Matt Jankowski b5eec34230 Add admin area view partials for each record type ()
Matt Jankowski f87b51fda8 I18n health warnings ()
* Rename admin.domain_block to admin.domain_blocks in prep for i18n improvement

* Use implicit controller/action path for i18n in admin/domain_blocks

* Add DomainBlock#accounts has_many

* Avoid i18n health warning for `en` locale by using symbol scope with :count

* Remove unused i18n key: plaintext_secret_html

* Remove unused i18n key two_factor_auth.warning

* Remove final will_paginate i18n keys

* Remove unused key two_factor_auth.recovery_codes

* Remove unused key: admin.reports.comment.none

* Remove unused reports. i18n namespace (moved to admin.reports)

* Ignore keys from locales which override activemodel and activerecord errors

* Revert "Remove unused key: admin.reports.comment.none"

This reverts commit 350ef2685f.

* Update i18n key reference to match moved location

* Add missing `en` keys to i18n

* Tell i18n-tasks to ignore missing attributes that dont need overwriting

* Add i18n-tasks unused to travis
Eugen 5d710b1139 Make file attachment on MediaAttachment optional ()
Create MediaAttachment but without actual file download when domain is blocked with reject_media set to true
Clean up old media files when creating a new domain block with reject_media set to true
Return remote_url in media attachments API if local file is not present
Undo domain block action in admin UI
Ability to enable reject_media from admin UI
Thomas Citharel c0c56db0fa Translate admin ()
* Translate the domain_block panel

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

* Translate PubSubHubbub section

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

* translate account section and correct typos

* move reports translation & translate sidebar

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

* normalize l18n
Matt Jankowski 4ada50985a Pagination improvements ()
* Replace will_paginate with kaminari

* Use #page instead of #paginate in controllers

* Replace will_paginate.page_gap with pagination.truncate in i18n

* Customize kaminari views to match prior styles

* Set kaminari options to match prior behavior

* Replace will_paginate with paginate in views
Eugen Rochko b7c1b12367 Make default admin UI page reports. Add admin UI for creating a domain block
Eugen Rochko 6d98a73180 Domain blocks now have varying severity - auto-suspend vs auto-silence
Eugen Rochko 76ec907993 Improved admin UI