From 6f9a59b2e69c6e25d91cd6a0d6c6f9ec88ae709c Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 12 Sep 2024 09:11:13 +0200 Subject: [PATCH 1/2] fix: Add app hint for whiteboard Signed-off-by: Julius Knorr --- lib/Notification/AppHint.php | 3 ++- lib/Notification/Notifier.php | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/Notification/AppHint.php b/lib/Notification/AppHint.php index 13bc892e..0f53c238 100644 --- a/lib/Notification/AppHint.php +++ b/lib/Notification/AppHint.php @@ -28,7 +28,7 @@ class AppHint { /** @var string */ private $userId; - public const APP_HINT_VERSION = '18'; + public const APP_HINT_VERSION = '19'; public function __construct(INotificationManager $notificationManager, IGroupManager $groupManager, IAppManager $appManager, IConfig $config, $userId) { $this->notificationManager = $notificationManager; @@ -45,6 +45,7 @@ public function sendAppHintNotifications(): void { $this->sendNotification('forms', $this->userId); $this->sendNotification('deck', $this->userId); $this->sendNotification('tasks', $this->userId); + $this->sendNotification('whiteboard', $this->userId); $this->config->setUserValue($this->userId, 'firstrunwizard', 'apphint', self::APP_HINT_VERSION); } } diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 3b378c62..74c5fde0 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -100,6 +100,7 @@ public function prepare(INotification $notification, string $languageCode): INot case 'apphint-notes': case 'apphint-recognize': case 'apphint-groupfolders': + case 'apphint-whiteboard': $app = $notification->getObjectId(); return $this->setAppHintDetails($notification, $languageCode, $app); default: @@ -193,6 +194,11 @@ protected function setAppHintDetails(INotification $notification, $languageCode, $notification->setParsedMessage($l->t('Admin-configured folders shared by everyone in a group.')); $appLink = '/files/groupfolders'; break; + case 'whiteboard': + $notification->setParsedSubject($l->t('App recommendation: Whiteboard')); + $notification->setParsedMessage($l->t('Create and share whiteboards with other users and collaborate in real-time.')); + $appLink = '/office/whiteboard'; + break; } $notification ->setLink($this->url->linkToRouteAbsolute('settings.AppSettings.viewApps') . $appLink) From 3e50af8b7febba86c6aead5c72235ad02a63641b Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 12 Sep 2024 11:16:16 +0200 Subject: [PATCH 2/2] fix: Improve whiteboard description Signed-off-by: Julius Knorr --- lib/Notification/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 74c5fde0..b6b33c0d 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -196,7 +196,7 @@ protected function setAppHintDetails(INotification $notification, $languageCode, break; case 'whiteboard': $notification->setParsedSubject($l->t('App recommendation: Whiteboard')); - $notification->setParsedMessage($l->t('Create and share whiteboards with other users and collaborate in real-time.')); + $notification->setParsedMessage($l->t('Create and share whiteboards with others and collaborate in real-time.')); $appLink = '/office/whiteboard'; break; }