refactor: improve email status display and messaging

LocationCard:
- Include email status in card info section display condition
- Remove emoji suffixes (icons already convey status visually)

LocationEditForm:
- Enable autoBillFwd and rentDueNotification toggles
- Only show email status when displayed email matches saved email
- Show unverified status when email is changed or for new emails
- Remove emoji suffixes from status messages
- Add left margin to status display

Messages (EN/HR):
- More descriptive email status messages in both languages
- LocationCard: "tenant email not verified" vs "Email not verified"
- LocationEditForm: Clearer explanations like "this e-mail address
  will need to be verified by the tenant"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-12-29 21:58:02 +01:00
parent fea0f48cec
commit b20d68405c
4 changed files with 29 additions and 26 deletions

View File

@@ -62,9 +62,9 @@
"seen-by-tenant-label": "seen by tenant",
"download-proof-of-payment-label": "proof-of-payment.PDF",
"email-status": {
"unverified": "Email not verified",
"verification-pending": "Email verification pending",
"unsubscribed": "Email unsubscribed"
"unverified": "tenant email not verified",
"verification-pending": "waiting for tenant to verify email",
"unsubscribed": "tenant unsubscribed from receiving emails"
},
"payment-info-header": "You can pay the utility bills for this month using the following information:",
"payment-amount-label": "Amount:",
@@ -196,10 +196,10 @@
"tenant-email-legend": "TENANT EMAIL",
"tenant-email-placeholder": "enter tenant's email",
"email-status": {
"unverified": "Email not verified",
"verification-pending": "Email verification pending",
"verified": "Email verified",
"unsubscribed": "Email unsubscribed"
"unverified": "this e-mail address will need to be verified by the tenant",
"verification-pending": "waiting for tenant to verify this email address",
"verified": "this e-mail address has been verified",
"unsubscribed": "tenant unsubscribed this address e-mail address from receiving emails"
},
"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.",
"save-button": "Save",

View File

@@ -62,9 +62,9 @@
"seen-by-tenant-label": "viđeno od strane podstanara",
"download-proof-of-payment-label": "potvrda-o-uplati.PDF",
"email-status": {
"unverified": "Email nije potvrđen",
"verification-pending": "Čeka se potvrda emaila",
"unsubscribed": "Email odjavljen"
"unverified": "e-mail podstanara nije potvrđen",
"verification-pending": "čeka se da podstanar potvrdi e-mail",
"unsubscribed": "podstanar odjavio e-mail adresu"
},
"payment-info-header": "Režije za ovaj mjesec možete uplatiti koristeći slijedeće podatke:",
"payment-amount-label": "Iznos:",
@@ -195,10 +195,10 @@
"tenant-email-legend": "EMAIL PODSTANARA",
"tenant-email-placeholder": "unesite email podstanara",
"email-status": {
"unverified": "Email nije potvrđen",
"verification-pending": "Čeka se potvrda emaila",
"verified": "Email potvrđen",
"unsubscribed": "Email odjavljen"
"unverified": "podstanar će morati potvrditi ovu e-mail adresu",
"verification-pending": "čeka se da podstanar potvrdi e-mail",
"verified": "podstanar je potvrdio ovu e-mail adresu",
"unsubscribed": "podstanar je odjavio ovu e-mail adresu"
},
"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.",
"save-button": "Spremi",