You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/models
Surinna Curtis 031a5a8f92 Optional notification muting (#5087)
* Add a hide_notifications column to mutes

* Add muting_notifications? and a notifications argument to mute!

* block notifications in notify_service from hard muted accounts

* Add specs for how mute! interacts with muting_notifications?

* specs testing that hide_notifications in mutes actually hides notifications

* Add support for muting notifications in MuteService

* API support for muting notifications (and specs)

* Less gross passing of notifications flag

* Break out a separate mute modal with a hide-notifications checkbox.

* Convert profile header mute to use mute modal

* Satisfy eslint.

* specs for MuteService notifications params

* add trailing newlines to files for Pork :)

* Put the label for the hide notifications checkbox in a label element.

* Add a /api/v1/mutes/details route that just returns the array of mutes.

* Define a serializer for /api/v1/mutes/details

* Add more specs for the /api/v1/mutes/details endpoint

* Expose whether a mute hides notifications in the api/v1/relationships endpoint

* Show whether muted users' notifications are muted in account lists

* Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint

* make the hide/unhide notifications buttons work

* satisfy eslint

* In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.

* fix a missing import

* add an explanatory comment to AccountInteractions

* Refactor handling of default params for muting to make code cleaner

* minor code style fixes oops

* Fixed a typo that was breaking the account mute API endpoint

* Apply white-space: nowrap to account relationships icons

* Fix code style issues

* Remove superfluous blank line

* Rename /api/v1/mutes/details -> /api/v2/mutes

* Don't serialize "account" in MuteSerializer

Doing so is somewhat unnecessary since it's always the current user's account.

* Fix wrong variable name in api/v2/mutes

* Use Toggle in place of checkbox in the mute modal.

* Make the Toggle in the mute modal look better

* Code style changes in specs and removed an extra space

* Code review suggestions from akihikodaki

Also fixed a syntax error in tests for AccountInteractions.

* Make AddHideNotificationsToMute Concurrent

It's not clear how much this will benefit instances in practice, as the
number of mutes tends to be pretty small, but this should prevent any
blocking migrations nonetheless.

* Fix up migration things

* Remove /api/v2/mutes
7 years ago
..
concerns Optional notification muting (#5087) 7 years ago
form Improve admin page (#4121) 8 years ago
web Web Push Notifications (#3243) 8 years ago
account_domain_block_spec.rb Spec AccountDomainBlock (#3816) 8 years ago
account_filter_spec.rb Add coverage for ReportFilter and AccountFilter (#3236) 8 years ago
account_moderation_note_spec.rb Add moderation note (#5240) 7 years ago
account_spec.rb Implement tests for Account#refresh! (#5601) 7 years ago
block_spec.rb Cover Block more (#3837) 8 years ago
conversation_mute_spec.rb Feature conversations muting (#3017) 8 years ago
conversation_spec.rb Add conversation model, <ostatus:conversation /> (#3016) 8 years ago
custom_emoji_spec.rb Add tests for CustomEmoji#local? and #object_type (#5621) 7 years ago
domain_block_spec.rb Cover DomainBlock more (#3838) 8 years ago
email_domain_block_spec.rb Add uniqueness to block email domains (#5692) 7 years ago
export_spec.rb Cover Export more (#3840) 8 years ago
favourite_spec.rb Cover Favourite more (#3841) 8 years ago
feed_spec.rb Improve spec of Feed and UserTrackingConcern (#5367) 7 years ago
follow_request_spec.rb Add and Remove tests for FollowRequest (#5622) 7 years ago
follow_spec.rb Introduce recent to Follow (#3247) 8 years ago
import_spec.rb Validate data of Imports (#4782) 8 years ago
media_attachment_spec.rb Add tests for MediaAttachment (#5620) 7 years ago
mention_spec.rb add more tests to models 8 years ago
mute_spec.rb
notification_spec.rb Add tests for Notification (#5640) 7 years ago
preview_card_spec.rb
remote_follow_spec.rb Refactor remote_follow_spec.rb (#5690) 7 years ago
remote_profile_spec.rb Add tests for RemoteProfile (#5665) 7 years ago
report_filter_spec.rb Add coverage for ReportFilter and AccountFilter (#3236) 8 years ago
report_spec.rb Feat add validation for report comment: characters under 1000 valid (#4833) 7 years ago
session_activation_spec.rb Add tests for SessionActivation (#5668) 7 years ago
setting_spec.rb Add tests for Setting (#5683) 7 years ago
site_upload_spec.rb Add a test for SiteUpload#cache_key (#5685) 7 years ago
status_pin_spec.rb Pinned statuses (#4675) 8 years ago
status_spec.rb Do not filter statuses with unknown languages (#5045) 7 years ago
stream_entry_spec.rb Add tests for StreamEntry (#5687) 7 years ago
subscription_spec.rb Misc spec coverage improvements (#2821) 8 years ago
tag_spec.rb add validation to tag name (#4194) 8 years ago
user_spec.rb Application prefs section (#2758) 8 years ago