From 532ad4c0e0de35bd1f8b25cccfa5a8a9396e2083 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Wed, 31 Dec 2025 10:48:38 +0100 Subject: [PATCH] refactor: move language selector into tenant email fieldset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improved UI organization by moving the language selector into the same fieldset as the tenant email input, since both are related to email notifications. The language selector now only appears when email notifications are enabled. Changes: - Move language selector inside tenant email fieldset (no separate fieldset) - Add label for tenant email input field - Simplify notification language label text - Remove unused notification-language-legend translation key - Language selector shares visibility condition with email field This provides a more logical grouping of related settings and reduces visual clutter when email notifications are disabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- web-app/app/ui/LocationEditForm.tsx | 11 +++++------ web-app/messages/en.json | 4 ++-- web-app/messages/hr.json | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/web-app/app/ui/LocationEditForm.tsx b/web-app/app/ui/LocationEditForm.tsx index b3cef2f..57fe430 100644 --- a/web-app/app/ui/LocationEditForm.tsx +++ b/web-app/app/ui/LocationEditForm.tsx @@ -359,6 +359,9 @@ export const LocationEditForm: FC = ({ location, yearMont {(formValues.billFwdEnabled || formValues.rentDueNotificationEnabled) && (
{t("tenant-email-legend")} + = ({ location, yearMont

))} -
- )} - -
- {t("notification-language-legend")} @@ -442,7 +440,8 @@ export const LocationEditForm: FC = ({ location, yearMont -
+ + )}
{t("scope-legend")} diff --git a/web-app/messages/en.json b/web-app/messages/en.json index d91a1cf..00243ec 100644 --- a/web-app/messages/en.json +++ b/web-app/messages/en.json @@ -195,6 +195,7 @@ "rent-amount-label": "Monthly rent amount", "rent-amount-placeholder": "enter rent amount", "tenant-email-legend": "TENANT EMAIL", + "tenant-email-label": "Send tenant notifications to e-mail address:", "tenant-email-placeholder": "enter tenant's email", "email-status": { "reset-button-label": "Reset", @@ -205,8 +206,7 @@ "verified": "this e-mail address has been verified", "unsubscribed": "tenant unsubscribed this address from receiving emails" }, - "notification-language-legend": "NOTIFICATION EMAIL LANGUAGE", - "notification-language-label": "Language for automatic notification emails", + "notification-language-label": "Send tenant notifications in language:", "notification-language-option-hr": "Croatian (Hrvatski)", "notification-language-option-en": "English", "warning-missing-tenant-names": "Warning: Tenant first and last name are missing. The 2D barcode will not be displayed to the tenant when they open the shared link until both fields are filled in.", diff --git a/web-app/messages/hr.json b/web-app/messages/hr.json index 0c238e4..a18424e 100644 --- a/web-app/messages/hr.json +++ b/web-app/messages/hr.json @@ -194,6 +194,7 @@ "rent-amount-label": "Iznos najamnine", "rent-amount-placeholder": "unesite iznos najamnine", "tenant-email-legend": "EMAIL PODSTANARA", + "tenant-email-label": "Obavijesti podstanara šalji na e-mail adresu:", "tenant-email-placeholder": "unesite email podstanara", "email-status": { "reset-button-label": "Reset", @@ -204,8 +205,7 @@ "verified": "podstanar je potvrdio ovu e-mail adresu", "unsubscribed": "podstanar je odjavio ovu e-mail adresu" }, - "notification-language-legend": "JEZIK ZA OBAVIJESTI", - "notification-language-label": "Jezik za automatske obavijesti putem e-maila", + "notification-language-label": "Obavijesti za podstanara šalji na jeziku:", "notification-language-option-hr": "Hrvatski", "notification-language-option-en": "Engleski (English)", "warning-missing-tenant-names": "Upozorenje: Ime i prezime podstanara nedostaju. 2D barkod neće biti prikazan podstanaru kada otvori podijeljenu poveznicu dok oba polja ne budu popunjena.",