Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Custom notification settings #1272

Open
wants to merge 2 commits into
base: dev/new_features
Choose a base branch
from

Conversation

BentiGorlich
Copy link
Member

You can now set custom notification settings for users, magazine, entries and posts: Loud, Default or Muted.

The heart of the logic is in the method NotificationSettingsRepository::findNotificationSubscribersByTarget which replaced some logic in the notification managers.

The logic works in tiers:

  1. user settings
  2. entry/post settings
  3. magazine settings
  4. default settings

So if you muted the magazine and thread, but the author is set to "Loud" then you will still get notifications for threads created by them.
If you muted the user, but set the magazine to "Loud" then you will get notifications for threads that are not created by that muted user.


UI
Magazine Box Magazine Box
Thread Info Thread Info
Entry Entry
Post Post
User Popover User Popover

@BentiGorlich BentiGorlich added enhancement New feature or request frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end backend Backend related issues and pull requests labels Dec 8, 2024
@BentiGorlich BentiGorlich added this to the v1.8.0 milestone Dec 8, 2024
@BentiGorlich BentiGorlich self-assigned this Dec 8, 2024
@BentiGorlich BentiGorlich linked an issue Dec 8, 2024 that may be closed by this pull request
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from 074b8c7 to a2e5b9b Compare December 8, 2024 18:14
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from a2e5b9b to 65f9bbe Compare December 8, 2024 23:33
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from 65f9bbe to 07863d2 Compare December 10, 2024 11:06
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from 77ba641 to e88753b Compare January 7, 2025 12:02
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from e88753b to 1d6efed Compare January 7, 2025 12:49
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from 1d6efed to fecc14a Compare January 7, 2025 13:05
You can now set custom notification settings for users, magazine, entries and posts: `Loud`, `Default` or `Muted`.

Move the logic of "fetch an endpoint and get html. Replace html node with selector x with the result of the fetch" to another controller, so it can be used outside of subjects (`Entry`, `EntryComment`, `Post` and `PostComment`)
- if the magazine was not on default (e.g.: on loud) and you had "notify on replies" enabled it didn't work -> fix that
- rename some variables for readability
- add log statement with all the variables
@BentiGorlich BentiGorlich force-pushed the new/custom-notification-settings branch from fecc14a to 905071b Compare January 7, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues and pull requests enhancement New feature or request frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification Settings per User/Magazine/Thread/Post
1 participant