1
0
REI-Fixed/app/javascript/mastodon/features/ui/components
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
..
__tests__ Replace JavaScript Testing Framework from Mocha to Jest (#5412) 2017-10-16 09:33:08 +02:00
actions_modal.js Make dropdowns render into portal, expand animation (#5018) 2017-09-22 04:59:17 +02:00
boost_modal.js Refactor Avatar and AvatarOverlay to have 'account' as prop instead of src and staticSrc (#4526) 2017-08-07 19:44:55 +02:00
bundle_column_error.js Lazy load components (#3879) 2017-07-08 00:06:02 +02:00
bundle_modal_error.js Lazy load components (#3879) 2017-07-08 00:06:02 +02:00
bundle.js fix(components/bundle): Exit early in load function (#4349) 2017-07-25 01:05:44 +02:00
column_header.js Improve accessibility (part 2) (#4377) 2017-07-26 13:46:53 +02:00
column_link.js Use ES module build of react-router-dom (#5264) 2017-10-08 02:55:58 +02:00
column_loading.js Fix PropTypes.oneOfType() warning (#5041) 2017-09-22 17:50:29 +02:00
column_subheading.js Replace sprockets/browserify with Webpack (#2617) 2017-05-03 02:04:16 +02:00
column.js add scrollTop to ui/components/column (#4563) 2017-08-09 00:21:58 +02:00
columns_area.js Fix cancellation of scroll to the right (#4978) 2017-09-17 11:59:23 +02:00
confirmation_modal.js Use Class and Property Decorators (#3730) 2017-06-23 19:36:54 +02:00
drawer_loading.js Fix dimensions of loading component for compose drawer (#4872) 2017-09-10 08:48:11 +02:00
embed_modal.js Add script to make embedded iframes autosize (#4853) 2017-09-09 16:23:44 +02:00
image_loader.js fix(components/media_modal): Aspect ratio (#4128) 2017-07-09 18:49:07 +02:00
media_modal.js Add pagination in media modal (#4343) 2017-10-03 17:11:22 +02:00
modal_loading.js Lazy load components (#3879) 2017-07-08 00:06:02 +02:00
modal_root.js Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
mute_modal.js Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
onboarding_modal.js Refactor initial state: "me" (#5563) 2017-10-31 11:27:48 +09:00
report_modal.js refactor: Rewrite immutablejs import statements using destructuring (#4147) 2017-07-11 01:00:14 +02:00
tabs_bar.js Use ES module build of react-router-dom (#5264) 2017-10-08 02:55:58 +02:00
upload_area.js Remove unnecessary translateZ(0) when doing scale() (#5473) 2017-10-19 18:27:55 +02:00
video_modal.js Add ability to specify alternative text for media attachments (#5123) 2017-09-28 15:31:31 +02:00