catstodon/spec/services
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
2017-11-15 03:56:41 +01:00
..
activitypub Set snowflake IDs for backdated statuses (#5260) 2017-10-08 17:34:34 +02:00
pubsubhubbub Specs for pubsub subscribe service (#2951) 2017-05-09 20:48:30 +02:00
account_search_service_spec.rb Rename FollowRemoteAccountService to ResolveRemoteAccountService (#3847) 2017-06-19 01:51:04 +02:00
after_block_service_spec.rb Optimize MuteService and AfterBlockService (#2836) 2017-05-06 16:31:07 +02:00
authorize_follow_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
batched_remove_status_service_spec.rb Non-Serial ("Snowflake") IDs (#4801) 2017-10-04 09:56:37 +02:00
block_domain_from_account_service_spec.rb Add buttons to block and unblock domain (#3127) 2017-05-19 21:05:32 +02:00
block_domain_service_spec.rb Domain block service cleanup (#2490) 2017-04-26 20:09:01 +02:00
block_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
bootstrap_timeline_service_spec.rb Default follows for new users (#4871) 2017-09-10 09:58:38 +02:00
fan_out_on_write_service_spec.rb Quick attempt to get pull requests passing 2017-04-04 12:14:44 -07:00
favourite_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
fetch_atom_service_spec.rb Fix #54 - Fetch remote accounts by URL from mentions 2016-09-26 16:44:40 +02:00
fetch_link_card_service_spec.rb Enable to recognize most kinds of characters as URL paths (#4941) 2017-09-14 18:03:20 +02:00
fetch_remote_account_service_spec.rb Fix #54 - Fetch remote accounts by URL from mentions 2016-09-26 16:44:40 +02:00
fetch_remote_resource_service_spec.rb Fix regression in FetchRemoteResourceService (#5217) 2017-10-05 00:21:44 +02:00
fetch_remote_status_service_spec.rb Fix #54 - Fetch remote accounts by URL from mentions 2016-09-26 16:44:40 +02:00
follow_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
mute_service_spec.rb Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
notify_service_spec.rb Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
post_status_service_spec.rb Fix filterable_languages method of SettingsHelper (#4966) 2017-09-16 14:59:41 +02:00
precompute_feed_service_spec.rb Non-Serial ("Snowflake") IDs (#4801) 2017-10-04 09:56:37 +02:00
process_feed_service_spec.rb Hook up URL-based resource look-up to ActivityPub (#4589) 2017-08-14 02:29:36 +02:00
process_interaction_service_spec.rb Add status destroy authorization to policy (#3453) 2017-05-30 22:56:31 +02:00
process_mentions_service_spec.rb ActivityPub delivery (#4566) 2017-08-13 00:44:41 +02:00
reblog_service_spec.rb Retoot count increases without reason (#5363) 2017-10-13 02:52:09 +02:00
reject_follow_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
remove_status_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
resolve_remote_account_service_spec.rb Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 2017-09-17 11:54:23 +02:00
search_service_spec.rb Add specs (and refactor) of FetchRemoteResourceService and SearchService (#2812) 2017-05-05 17:26:04 +02:00
send_interaction_service_spec.rb Fixing some bugs, adding pending test examples 2016-03-05 12:50:59 +01:00
subscribe_service_spec.rb Fix webfinger retries (#4275) 2017-07-20 01:59:07 +02:00
suspend_account_service_spec.rb Delete records in smaller transaction (#2802) 2017-05-04 23:44:39 +02:00
unblock_domain_service_spec.rb Unblock domain service specs/refactor (#2867) 2017-05-07 14:44:28 +02:00
unblock_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
unfollow_service_spec.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
unmute_service_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
unsubscribe_service_spec.rb Fix errors preventing UnsubscribeService from working (#4866) 2017-09-09 17:36:27 +02:00
update_remote_profile_service_spec.rb Set correct attachment type for rejected media (#2599) 2017-04-29 00:18:32 +02:00