You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
4.0 KiB

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
6 years ago
  1. export function EmojiPicker () {
  2. return import(/* webpackChunkName: "emoji_picker" */'../../emoji/emoji_picker');
  3. }
  4. export function Compose () {
  5. return import(/* webpackChunkName: "features/compose" */'../../compose');
  6. }
  7. export function Notifications () {
  8. return import(/* webpackChunkName: "features/notifications" */'../../notifications');
  9. }
  10. export function HomeTimeline () {
  11. return import(/* webpackChunkName: "features/home_timeline" */'../../home_timeline');
  12. }
  13. export function PublicTimeline () {
  14. return import(/* webpackChunkName: "features/public_timeline" */'../../public_timeline');
  15. }
  16. export function CommunityTimeline () {
  17. return import(/* webpackChunkName: "features/community_timeline" */'../../community_timeline');
  18. }
  19. export function HashtagTimeline () {
  20. return import(/* webpackChunkName: "features/hashtag_timeline" */'../../hashtag_timeline');
  21. }
  22. export function DirectTimeline() {
  23. return import(/* webpackChunkName: "features/direct_timeline" */'../../direct_timeline');
  24. }
  25. export function ListTimeline () {
  26. return import(/* webpackChunkName: "features/list_timeline" */'../../list_timeline');
  27. }
  28. export function Lists () {
  29. return import(/* webpackChunkName: "features/lists" */'../../lists');
  30. }
  31. export function Status () {
  32. return import(/* webpackChunkName: "features/status" */'../../status');
  33. }
  34. export function GettingStarted () {
  35. return import(/* webpackChunkName: "features/getting_started" */'../../getting_started');
  36. }
  37. export function KeyboardShortcuts () {
  38. return import(/* webpackChunkName: "features/keyboard_shortcuts" */'../../keyboard_shortcuts');
  39. }
  40. export function PinnedStatuses () {
  41. return import(/* webpackChunkName: "features/pinned_statuses" */'../../pinned_statuses');
  42. }
  43. export function AccountTimeline () {
  44. return import(/* webpackChunkName: "features/account_timeline" */'../../account_timeline');
  45. }
  46. export function AccountGallery () {
  47. return import(/* webpackChunkName: "features/account_gallery" */'../../account_gallery');
  48. }
  49. export function Followers () {
  50. return import(/* webpackChunkName: "features/followers" */'../../followers');
  51. }
  52. export function Following () {
  53. return import(/* webpackChunkName: "features/following" */'../../following');
  54. }
  55. export function Reblogs () {
  56. return import(/* webpackChunkName: "features/reblogs" */'../../reblogs');
  57. }
  58. export function Favourites () {
  59. return import(/* webpackChunkName: "features/favourites" */'../../favourites');
  60. }
  61. export function FollowRequests () {
  62. return import(/* webpackChunkName: "features/follow_requests" */'../../follow_requests');
  63. }
  64. export function GenericNotFound () {
  65. return import(/* webpackChunkName: "features/generic_not_found" */'../../generic_not_found');
  66. }
  67. export function FavouritedStatuses () {
  68. return import(/* webpackChunkName: "features/favourited_statuses" */'../../favourited_statuses');
  69. }
  70. export function Blocks () {
  71. return import(/* webpackChunkName: "features/blocks" */'../../blocks');
  72. }
  73. export function DomainBlocks () {
  74. return import(/* webpackChunkName: "features/domain_blocks" */'../../domain_blocks');
  75. }
  76. export function Mutes () {
  77. return import(/* webpackChunkName: "features/mutes" */'../../mutes');
  78. }
  79. export function OnboardingModal () {
  80. return import(/* webpackChunkName: "modals/onboarding_modal" */'../components/onboarding_modal');
  81. }
  82. export function MuteModal () {
  83. return import(/* webpackChunkName: "modals/mute_modal" */'../components/mute_modal');
  84. }
  85. export function ReportModal () {
  86. return import(/* webpackChunkName: "modals/report_modal" */'../components/report_modal');
  87. }
  88. export function MediaGallery () {
  89. return import(/* webpackChunkName: "status/media_gallery" */'../../../components/media_gallery');
  90. }
  91. export function Video () {
  92. return import(/* webpackChunkName: "features/video" */'../../video');
  93. }
  94. export function EmbedModal () {
  95. return import(/* webpackChunkName: "modals/embed_modal" */'../components/embed_modal');
  96. }
  97. export function ListEditor () {
  98. return import(/* webpackChunkName: "features/list_editor" */'../../list_editor');
  99. }