Notifications: unsubscribe from extension approval activity (#177) #207

Merged
Oleg-Komarov merged 5 commits from approval-follow into main 2024-07-30 12:11:05 +02:00
Owner

This PR adds a subscribe/unsubscribe button to the extension's approval page.
The button state is calculated as
actstream.actions.is_following(user, extension, flag=Flag.REVIEWER)

Approval activity notifications are also generated for followers with
Flag.AUTHOR and Flag.MODERATOR.
To avoid confusion the button is hidden from extension maintainers:
it won't suppress any related notifications.
Moderators will see the button, and it will suppress comment notifications
for moderators that interacted with this extension's approval thread,
but it will still allow notifications about review requests.

This PR adds a subscribe/unsubscribe button to the extension's approval page. The button state is calculated as `actstream.actions.is_following(user, extension, flag=Flag.REVIEWER)` Approval activity notifications are also generated for followers with `Flag.AUTHOR` and `Flag.MODERATOR`. To avoid confusion the button is hidden from extension maintainers: it won't suppress any related notifications. Moderators will see the button, and it will suppress comment notifications for moderators that interacted with this extension's approval thread, but it will still allow notifications about review requests.
Oleg-Komarov added 1 commit 2024-07-15 09:40:46 +02:00
Oleg-Komarov added 1 commit 2024-07-16 17:05:24 +02:00
Oleg-Komarov added 1 commit 2024-07-16 17:45:58 +02:00
Oleg-Komarov added 1 commit 2024-07-17 15:34:33 +02:00
Oleg-Komarov changed title from WIP: Notifications: unsubscribe from extension approval activity (#177) to Notifications: unsubscribe from extension approval activity (#177) 2024-07-22 10:54:16 +02:00
Author
Owner

This PR is missing a proper styling/layout for the new button.
cc @martonlente

This PR is missing a proper styling/layout for the new button. cc @martonlente
Márton Lente added 1 commit 2024-07-30 11:58:07 +02:00
Improve approval activity subscription buttons' display and layout
in template reviewers extensions_review_detail.
Part of #177
Anna Sirota approved these changes 2024-07-30 12:10:43 +02:00
Anna Sirota left a comment
Owner

awesome sauce! 🎉

awesome sauce! :tada:
Oleg-Komarov merged commit 709685e2c0 into main 2024-07-30 12:11:05 +02:00
Oleg-Komarov deleted branch approval-follow 2024-07-30 12:11:05 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#207
No description provided.