Commit Graph

15 Commits (f0d6dc4519cc0311583f139834fbbbcd64e82d7a)

Author SHA1 Message Date
Matt Jankowski a90696011e
Add coverage/bugfix for invalid appeal submission ()
Matt Jankowski c926f5fd67
Fix haml-lint `UnnecessaryStringOutput` for views ()
Matt Jankowski c91c0175db
Extract `card` partial from `disputes/strikes/show` view ()
Matt Jankowski e715da6d25
Fix haml-lint Rubocop `Rails/*` cops ()
Claire cf50667e26
Fix incorrect post links in strikes when the account is remote ()
Claire b8ad446f77
Fix incorrectly formatted datetime in account moderation note timestamp ()
* Fix incorrectly formatted datetime in account moderation note timestamp

Fix oversight from 

* Fix use of non-existent translation string
Francis Murillo c50e9d078a
Render current day formats in the client timezone ()
* Fix remaining plain %time to %time.formatted

* Add %time.relative-formatted to client format dates on the current day

* Add missing comma dangle to formats

* Use client side message format instead of the server

* Add fallback message to relatve_format.today

* Remove unused translation key and fix js lint issue

Co-authored-by: Effy Elden <effy@effy.space>
Jeremy Kescher 02a34252ba
Add null check on application in dispute viewer ()
Claire 991353682d
Fix ambiguous wording on appeal actions ()
Fixes 
Eugen Rochko cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
Eugen Rochko d17fb70131
Change how changes to media attachments are stored for edits ()
* Change how changes to media attachments are stored for edits

Fix not being able to re-order media attachments

* Fix not broadcasting updates when polls/media is changed through ActivityPub

* Various fixes and improvements

* Update app/models/report.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Add tracking of media attachment description changes

* Change poll in status edit to have a structure closer to the real one

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Claire 14919fe11e
Change old moderation strikes to be displayed in a separate page ()
* Change old moderation strikes to be displayed in a separate page

Fixes 

This changes the moderation strikes displayed on `/auth/edit` to be those from
the past 3 months, and make all moderation strikes targeting the current user
available in `/disputes`.

* Add short description of what the strikes page is for

* Move link to list of strikes to “Account status” instead of navigation item

* Normalize i18n file

* Fix layout and styling of strikes link

* Revert highlights_on regexp

* Reintroduce account status summary

- this way, “Account status” is never empty
- account status is not necessarily bound to strikes, or recent strikes
Eugen Rochko 51e67f3243
Fix link colors in report and strike details ()
Eugen Rochko 8338826963
Fix wrong styles on strike page ()
Eugen Rochko 564efd0651
Add appeals ()
* Add appeals

* Add ability to reject appeals and ability to browse pending appeals in admin UI

* Add strikes to account page in settings

* Various fixes and improvements

- Add separate notification setting for appeals, separate from reports
- Fix style of links in report/strike header
- Change approving an appeal to not restore statuses (due to federation complexities)
- Change style of successfully appealed strikes on account settings page
- Change account settings page to only show unappealed or recently appealed strikes

* Change appealed_at to overruled_at

* Fix missing method error