From 256ecf7c55762bbe69fdd53f75b0e5095a6377f8 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Sat, 22 Nov 2025 23:12:17 +0100 Subject: [PATCH] Move currency selector to separate General Settings section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Reorganized UserSettingsForm layout - Moved currency select field from tenant 2D code fieldset to new "General Settings" fieldset at the top of the form - Added translations for "general-settings-legend": - English: "General Settings" - Croatian: "Opće postavke" Currency is now in a more logical location as a general setting rather than being grouped with tenant-specific 2D code settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/ui/UserSettingsForm.tsx | 118 +++++++++++++++++++----------------- messages/en.json | 1 + messages/hr.json | 1 + 3 files changed, 63 insertions(+), 57 deletions(-) diff --git a/app/ui/UserSettingsForm.tsx b/app/ui/UserSettingsForm.tsx index ba61319..95a12fa 100644 --- a/app/ui/UserSettingsForm.tsx +++ b/app/ui/UserSettingsForm.tsx @@ -49,6 +49,67 @@ const FormFields: FC = ({ userSettings, errors, message }) => { return ( <> +
+ {t("general-settings-legend")} + +
+ + +
+ {errors?.currency && + errors.currency.map((error: string) => ( +

+ {error} +

+ ))} +
+
+
{t("tenant-2d-code-legend")} @@ -168,63 +229,6 @@ const FormFields: FC = ({ userSettings, errors, message }) => { -
- - -
- {errors?.currency && - errors.currency.map((error: string) => ( -

- {error} -

- ))} -
-
{t("additional-notes")} )} diff --git a/messages/en.json b/messages/en.json index ace7dbc..89a7ebd 100644 --- a/messages/en.json +++ b/messages/en.json @@ -197,6 +197,7 @@ "owner-town-placeholder": "enter your postal code and town", "owner-iban-label": "IBAN", "owner-iban-placeholder": "enter your IBAN", + "general-settings-legend": "General Settings", "currency-label": "Currency", "save-button": "Save", "cancel-button": "Cancel", diff --git a/messages/hr.json b/messages/hr.json index 02293d1..e625404 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -196,6 +196,7 @@ "owner-town-placeholder": "unesite poštanski broj i grad", "owner-iban-label": "IBAN", "owner-iban-placeholder": "unesite svoj IBAN", + "general-settings-legend": "Opće postavke", "currency-label": "Valuta", "save-button": "Spremi", "cancel-button": "Odbaci",