feat(notifications): add translation activity summary notification#19517
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a new digest-only email notification that summarizes translation activity over a period (aimed at making notification emails shorter and more actionable), replacing the previous default weekly “new strings” notification for watched projects.
Changes:
- Added
TranslationActivitySummaryNotificationwhich builds per-translation counts and deep-links into search queries for the relevant activity. - Added new mail templates (HTML + subject) for the activity summary digest.
- Updated defaults, docs, and tests to cover the new notification and the default-notification switch.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
weblate/accounts/notifications.py |
Adds the new digest-only notification logic and search-link generation. |
weblate/templates/mail/translation_activity_summary.html |
New digest HTML template rendering per-translation activity counts with links. |
weblate/templates/mail/translation_activity_summary_subject.txt |
New digest subject template for the activity summary. |
weblate/accounts/data.py |
Switches the default weekly watched-project digest from NewStringNotificaton to the new summary. |
weblate/accounts/tests/test_notifications.py |
Adds coverage for digest-only frequency and end-to-end weekly digest rendering/links. |
docs/user/profile.rst |
Documents the new notification in the Notifications section. |
docs/changes.rst |
Adds an entry to the changelog for the new notification. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
This allows users to follow activity without being overwhelmed with all the details. Fixes WeblateOrg#13071
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows users to follow activity without being overwhelmed with all the details.
Fixes #13071