From fc0a51f5a004327d9a56de0bc7e29419ff0e4a0f Mon Sep 17 00:00:00 2001 From: Andrey Baklanov Date: Tue, 10 Feb 2026 15:38:55 +0200 Subject: [PATCH] ASU-1720: Add link from list, update translation and text in email --- composer.json | 6 +++--- composer.lock | 6 +++--- .../custom/asu_content/translations/fi.po | 16 ++++++++++++++-- .../QueueWorker/ProjectSubscriptionNotifier.php | 10 +++++++++- 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 4761c42b..1b1f1c5f 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "asuntomyynti/react": "^1.5", + "asuntomyynti/react": "^1.5.1", "composer/installers": "^2.3", "cweagans/composer-patches": "^2.0", "dinbror/blazy": "^1.8", @@ -267,9 +267,9 @@ "type": "package", "package": { "name": "asuntomyynti/react", - "version": "1.5.0", + "version": "1.5.1", "dist": { - "url": "https://github.com/City-of-Helsinki/asuntomyynti-react/releases/download/v1.5.0/asuntomyynti-react-1.5.0.zip", + "url": "https://github.com/City-of-Helsinki/asuntomyynti-react/releases/download/v1.5.1/asuntomyynti-react-1.5.1.zip", "type": "zip" } } diff --git a/composer.lock b/composer.lock index 45fa3bd9..ad700488 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "eaae74f8efd9b7504033434c315eaf92", + "content-hash": "9994622d81924d057efd92b04cd94b13", "packages": [ { "name": "asm89/stack-cors", @@ -64,10 +64,10 @@ }, { "name": "asuntomyynti/react", - "version": "1.5.0", + "version": "1.5.1", "dist": { "type": "zip", - "url": "https://github.com/City-of-Helsinki/asuntomyynti-react/releases/download/v1.5.0/asuntomyynti-react-1.5.0.zip" + "url": "https://github.com/City-of-Helsinki/asuntomyynti-react/releases/download/v1.5.1/asuntomyynti-react-1.5.1.zip" }, "type": "library" }, diff --git a/public/modules/custom/asu_content/translations/fi.po b/public/modules/custom/asu_content/translations/fi.po index a92bf366..3b348394 100644 --- a/public/modules/custom/asu_content/translations/fi.po +++ b/public/modules/custom/asu_content/translations/fi.po @@ -11626,7 +11626,10 @@ msgid "You have unsubscribed" msgstr "Ilmoitusten tilaus on peruttu." msgid "You have been unsubscribed from notifications" -msgstr "Olet poistettu ilmoitusten tilaajista." +msgstr "Olet perunut ilmoitusten tilauksen." + +msgid "You have been unsubscribed from notifications." +msgstr "Olet perunut ilmoitusten tilauksen." msgid "Sales started — @title" msgstr "Myynti alkanut — @title" @@ -11673,6 +11676,12 @@ msgstr "Vahvista tilauksesi kohteeseen @title" msgid "Good news! The project has moved to sales." msgstr "Hyviä uutisia! Kohte on siirtynyt myyntivaiheeseen." +msgid "Application period has started." +msgstr "Kohteen hakuaika on alkanut." + +msgid "Pre-marketing" +msgstr "Ennakkomarkkinoinnissa" + msgid "The project status has been updated." msgstr "Kohden tila on päivitetty." @@ -11689,7 +11698,10 @@ msgid "Failed to send confirmation email. Please try again later." msgstr "Vahvistussähköpostin lähettäminen epäonnistui. Yritä myöhemmin uudelleen." msgid "Subscribe to property updates" -msgstr "Tilaa kohteen päivitykset" +msgstr "Ilmoitusvahti" + +msgid "Open project page" +msgstr "Avaa kohdesivu" msgid "Subscribe to @title" msgstr "Tilaa aihepiirin @title RSS-syöte" diff --git a/public/modules/custom/asu_project_subscription/src/Plugin/QueueWorker/ProjectSubscriptionNotifier.php b/public/modules/custom/asu_project_subscription/src/Plugin/QueueWorker/ProjectSubscriptionNotifier.php index bb90a751..2b88021f 100644 --- a/public/modules/custom/asu_project_subscription/src/Plugin/QueueWorker/ProjectSubscriptionNotifier.php +++ b/public/modules/custom/asu_project_subscription/src/Plugin/QueueWorker/ProjectSubscriptionNotifier.php @@ -189,7 +189,15 @@ public function processItem($data): void { } $lines[] = '
'; - $lines[] = (string) $this->t('New status: @state', ['@state' => $new_state], ['langcode' => $langcode]); + if ($new_state === 'Myynnissä') { + $lines[] = (string) $this->t('Application period has started.', [], ['langcode' => $langcode]); + } + elseif ($new_state === 'Ennakkomarkkinoinnissa') { + $lines[] = (string) $this->t('Pre-marketing', [], ['langcode' => $langcode]); + } + else { + $lines[] = (string) $this->t('New status: @state', ['@state' => $new_state], ['langcode' => $langcode]); + } if ($title) { $lines[] = (string) $this->t('Project: @title', ['@title' => $escTitle], ['langcode' => $langcode]);