Add in-app notifications for new panel version availability

- Add notify_update_available() method to NotificationService
- Add translations for update notifications (ru/en)
- Add 'update' type to default notification types
- Add check_for_panel_updates() background task (runs every 6 hours)
- Notifications include link to settings page for easy update access
- Prevent duplicate notifications for same version
This commit is contained in:
2025-12-16 19:38:04 +05:00
parent 3113aa5905
commit aa8c06116d
5 changed files with 252 additions and 68 deletions

View File

@@ -3607,6 +3607,16 @@ class I18nService:
"en": "This is a test notification from PVEmanager. If you see this, notifications are working correctly!"
},
# Update notifications
"notify_update_available_title": {
"ru": "🆕 Доступна новая версия {new_version}",
"en": "🆕 New version {new_version} available"
},
"notify_update_available_message": {
"ru": "Доступна новая версия панели {new_version}. Текущая версия: {current_version}. Перейдите на страницу обновления для установки.",
"en": "New panel version {new_version} is available. Current version: {current_version}. Go to the update page to install."
},
# ==================== Users & RBAC ====================
"users_management": {
"ru": "Управление пользователями",