diff --git a/img/apps/forms.svg b/img/apps/forms.svg new file mode 100644 index 000000000..1d57af097 --- /dev/null +++ b/img/apps/forms.svg @@ -0,0 +1,5 @@ + + + diff --git a/img/apps/recognize.svg b/img/apps/recognize.svg new file mode 100644 index 000000000..78081fa24 --- /dev/null +++ b/img/apps/recognize.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/Notification/AppHint.php b/lib/Notification/AppHint.php index c7d18f4cb..96ce37e37 100644 --- a/lib/Notification/AppHint.php +++ b/lib/Notification/AppHint.php @@ -57,9 +57,9 @@ public function __construct(INotificationManager $notificationManager, IGroupMan public function sendAppHintNotifications(): void { if ($this->userId !== null && $this->groupManager->isAdmin($this->userId) && $this->config->getUserValue($this->userId, 'firstrunwizard', 'apphint') !== self::APP_HINT_VERSION) { + $this->sendNotification('recognize', $this->userId); $this->sendNotification('groupfolders', $this->userId); - //$this->sendNotification('social', $this->userId); - $this->sendNotification('notes', $this->userId); + $this->sendNotification('forms', $this->userId); $this->sendNotification('deck', $this->userId); $this->sendNotification('tasks', $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 b0d49f7bc..7f217e7d3 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -107,12 +107,13 @@ public function prepare(INotification $notification, string $languageCode): INot return $notification; case 'apphint-calendar': case 'apphint-contacts': + case 'apphint-forms': case 'apphint-mail': case 'apphint-spreed': case 'apphint-tasks': case 'apphint-deck': case 'apphint-notes': - //case 'apphint-social': + case 'apphint-recognize': case 'apphint-groupfolders': $app = $notification->getObjectId(); return $this->setAppHintDetails($notification, $languageCode, $app); @@ -189,16 +190,16 @@ protected function setAppHintDetails(INotification $notification, $languageCode, $notification->setParsedMessage($l->t('Kanban style organization for personal planning and team projects.')); $appLink = '/organization/deck'; break; - case 'notes': - $notification->setParsedSubject($l->t('App recommendation: Notes')); - $notification->setParsedMessage($l->t('Distraction-free notes and writing.')); - $appLink = '/organization/notes'; + case 'forms': + $notification->setParsedSubject($l->t('App recommendation: Forms')); + $notification->setParsedMessage($l->t('Simple surveys and questionnaires, self-hosted')); + $appLink = '/organization/forms'; + break; + case 'recognize': + $notification->setParsedSubject($l->t('App recommendation: Recognize')); + $notification->setParsedMessage($l->t('Smart media tagging for Nextcloud')); + $appLink = '/organization/recognize'; break; - // case 'social': - // $notification->setParsedSubject($l->t('App recommendation: Social')); - // $notification->setParsedMessage($l->t('Nextcloud becomes part of the federated social networks.')); - // $appLink = '/social/social'; - // break; case 'groupfolders': $notification->setParsedSubject($l->t('App recommendation: Group folders')); $notification->setParsedMessage($l->t('Admin-configured folders shared by everyone in a group.'));