commit 66f8846f05f1b06c5cd8a7b9533a1dc2d04d7972 parent b5364339ba418bd6b362b202609c708a68b6a256 Author: Sebastian <sebasjm@gmail.com> Date: Thu, 12 Dec 2024 13:03:37 -0300 fix #9330 Diffstat:
17 files changed, 36 insertions(+), 45 deletions(-)
diff --git a/packages/kyc-ui/src/forms.json b/packages/kyc-ui/src/forms.json @@ -214,11 +214,13 @@ "label": "GLS Onboarding form", "id": "gls-onboarding", "version": 1, + "config": { "type": "double-column", "design": [ { "title": "Personal information", + "description": "this form is still working in progress, fields need to be validated.", "fields": [ { "type": "text", @@ -235,14 +237,12 @@ { "type": "text", "id": "CONTACT_PHONE", - "label": "Phone", - "required": true + "label": "Phone" }, { "type": "text", "id": "CONTACT_EMAIL", - "label": "E-Mail", - "required": true + "label": "E-Mail" }, { "type": "toggle", @@ -374,6 +374,7 @@ "type": "selectOne", "id": "BUSINESS_INDUSTRY", "label": "Industry", + "tooltip": "The values in the menu need to revisited.", "choices": [{ "label": "Car", "value": "CAR" @@ -407,44 +408,37 @@ { "type": "text", "id": "ADDRESS_BUILDING_NAME", - "label": "Building name", - "required": true + "label": "Building name" }, { "type": "text", "id": "ADDRESS_BUILDING_NUMBER", - "label": "Building number", - "required": true + "label": "Building number" }, { "type": "textArea", "id": "ADDRESS_LINES", - "label": "Additional address reference", - "required": true + "label": "Additional address reference" }, { "type": "text", "id": "ADDRESS_TOWN_LOCATION", - "label": "Building number", - "required": true + "label": "Building number" }, { "type": "text", "id": "ADDRESS_TOWN_DISTRICT", - "label": "Building number", - "required": true + "label": "Building number" }, { "type": "text", "id": "ADDRESS_COUNTRY_SUBDIVISION", - "label": "Building number", - "required": true + "label": "Building number" }, { "type": "text", "id": "ADDRESS_COUNTRY_CC", - "label": "Building number", - "required": true + "label": "Building number" } ] }, @@ -489,7 +483,7 @@ { "type": "array", "id": "BUSINESS_LEGAL_REPRESENTATIVES", - "labelFieldId": "CONTACT_PHONE", + "labelFieldId": "PERSON_FULL_NAME", "label": "List of natural persons that are legal representatives or shareholders", "fields": [ { @@ -507,14 +501,12 @@ { "type": "text", "id": "CONTACT_PHONE", - "label": "Phone", - "required": true + "label": "Phone" }, { "type": "text", "id": "CONTACT_EMAIL", - "label": "E-Mail", - "required": true + "label": "E-Mail" }, { "type": "text", diff --git a/packages/merchant-backoffice-ui/src/Routing.tsx b/packages/merchant-backoffice-ui/src/Routing.tsx @@ -713,8 +713,8 @@ function KycBanner(): VNode { <div> <p> <i18n.Translate> - Some transfer are on hold until a KYC process is completed. Go - to the KYC section in the left panel for more information + Some transfers are on hold until the KYC process is completed. + Visit the KYC section in the left panel for more information </i18n.Translate> </p> <div class="buttons is-right"> diff --git a/packages/merchant-backoffice-ui/src/components/form/InputStock.tsx b/packages/merchant-backoffice-ui/src/components/form/InputStock.tsx @@ -133,7 +133,7 @@ export function InputStock<T>({ const stockAddedErrors: FormErrors<typeof addedStock> = { lost: currentStock + addedStock.incoming < addedStock.lost - ? i18n.str`Lost can't be greater than current and incoming (max ${currentStock + addedStock.incoming + ? i18n.str`Shrinkage cannot exceed the current stock and incoming supplies (maximum ${currentStock + addedStock.incoming })` : undefined, }; diff --git a/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx b/packages/merchant-backoffice-ui/src/components/instance/DefaultInstanceFormFields.tsx @@ -99,7 +99,7 @@ export function DefaultInstanceFormFields({ <InputToggle<Entity> name="use_stefan" label={i18n.str`Pay transaction fee`} - tooltip={i18n.str`Assume the cost of the transaction of let the user pay for it.`} + tooltip={i18n.str`Cover the transaction cost or pass it on to the user.`} /> <InputDuration<Entity> diff --git a/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx b/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx @@ -119,7 +119,7 @@ export function Sidebar({ mobile }: Props): VNode { <i class="mdi mdi-arrow-left-right" /> </span> <span class="menu-item-label"> - <i18n.Translate>Transfers</i18n.Translate> + <i18n.Translate>Wire transfers</i18n.Translate> </span> </a> </li> diff --git a/packages/merchant-backoffice-ui/src/components/menu/index.tsx b/packages/merchant-backoffice-ui/src/components/menu/index.tsx @@ -51,7 +51,7 @@ function getInstanceTitle(path: string, id: string): string { case InstancePaths.category_update: return `${id}: Update category`; case InstancePaths.transfers_list: - return `${id}: Transfers`; + return `${id}: Wire transfers`; case InstancePaths.transfers_new: return `${id}: New transfer`; case InstancePaths.webhooks_list: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/categories/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/categories/update/index.tsx @@ -92,7 +92,7 @@ export default function UpdateCategory({ setNotif({ message: i18n.str`Could not update category`, type: "ERROR", - description: i18n.str`Category id is unknown`, + description: i18n.str`Category ID is unknown`, }); break; } diff --git a/packages/merchant-backoffice-ui/src/paths/instance/otp_devices/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/otp_devices/create/CreatePage.tsx @@ -106,7 +106,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { <InputSelector<Entity> name="otp_algorithm" label={i18n.str`Verification algorithm`} - tooltip={i18n.str`Algorithm used to verify transaction in offline mode`} + tooltip={i18n.str`Algorithm used to verify transactions in offline mode`} values={algorithms} toStr={(v) => algorithmsNames[v]} fromStr={(v) => Number(v)} diff --git a/packages/merchant-backoffice-ui/src/paths/instance/otp_devices/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/otp_devices/list/index.tsx @@ -87,7 +87,7 @@ export default function ListOtpDevices({ onCreate, onSelect }: Props): VNode { .then((resp) => { if (resp.type === "ok") { setNotif({ - message: i18n.str`Device delete successfully`, + message: i18n.str`The device was successfully deleted`, type: "SUCCESS", }); } else { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx @@ -273,7 +273,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { } return deviceMap[v]; }} - tooltip={i18n.str`Use to verify transaction in offline mode.`} + tooltip={i18n.str`Use to verify transactions in offline mode.`} /> )} </FormProvider> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/list/Table.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/list/Table.tsx @@ -176,7 +176,7 @@ function Table({ </button> <button class="button is-info is-small has-tooltip-left" - data-tooltip={i18n.str`Create qr code for the template`} + data-tooltip={i18n.str`Generate a QR code for the template.`} onClick={() => onQR(i)} > QR diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx @@ -102,7 +102,7 @@ export function DetailPage({ {!hasToken && ( <NotificationCard notification={{ - message: i18n.str`This instance doesn't have authentication token.`, + message: i18n.str`This instance does not have authentication token.`, description: i18n.str`You can leave it empty if there is another layer of security.`, type: "WARN", }} diff --git a/packages/merchant-backoffice-ui/src/paths/instance/tokenfamilies/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/tokenfamilies/create/index.tsx @@ -48,13 +48,13 @@ export default function CreateTokenFamily({ onConfirm, onBack }: Props): VNode { .then((resp) => { if (resp.type === "ok") { setNotif({ - message: i18n.str`Token familty created successfully`, + message: i18n.str`Token family created successfully.`, type: "SUCCESS", }); onConfirm(); } else { setNotif({ - message: i18n.str`Could not create token family`, + message: i18n.str`Could not create token family.`, type: "ERROR", description: resp.detail?.hint, }); @@ -62,7 +62,7 @@ export default function CreateTokenFamily({ onConfirm, onBack }: Props): VNode { }) .catch((error) => { setNotif({ - message: i18n.str`Could not create token family`, + message: i18n.str`Could not create token family.`, type: "ERROR", description: error instanceof Error ? error.message : String(error), }); diff --git a/packages/merchant-backoffice-ui/src/paths/instance/transfers/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/transfers/create/CreatePage.tsx @@ -59,7 +59,7 @@ export function CreatePage({ accounts, onCreate, onBack }: Props): VNode { wtid: !state.wtid ? i18n.str`Required` : !CROCKFORD_BASE32_REGEX.test(state.wtid) - ? i18n.str`Check the id, does not look valid` + ? i18n.str`Please check the ID; it does not appear to be valid.` : state.wtid.length !== 52 ? i18n.str`Must have 52 characters, current ${state.wtid.length}` : undefined, diff --git a/packages/merchant-backoffice-ui/src/paths/instance/transfers/list/Table.tsx b/packages/merchant-backoffice-ui/src/paths/instance/transfers/list/Table.tsx @@ -59,7 +59,7 @@ export function CardTable({ <span class="icon"> <i class="mdi mdi-arrow-left-right" /> </span> - <i18n.Translate>Transfers</i18n.Translate> + <i18n.Translate>Wire transfers</i18n.Translate> </p> <div class="card-header-icon" aria-label="more options"> <span @@ -117,7 +117,7 @@ function Table({ {onLoadMoreBefore && ( <button class="button is-fullwidth" - data-tooltip={i18n.str`Load more transfers before the first one`} + data-tooltip={i18n.str`Load more wire transfers preceding the first one`} onClick={onLoadMoreBefore} > <i18n.Translate>Load first page</i18n.Translate> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx @@ -118,7 +118,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { {/* prettier will add some nodes which we don't want because of i18n */} {/* prettier-ignore */} <i18n.Translate> - The text below support <a + The text below supports the <a target="_blank" rel="noreferrer" href="https://mustache.github.io/mustache.5.html" @@ -128,8 +128,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { {{ </pre> and <pre style={{ display: "inline", padding: 0 }}> }} - </pre> will be replaced with replaced with the value of the - corresponding variable. + </pre> will be replaced with the value of the corresponding variable. </i18n.Translate> </p> <p> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/index.tsx @@ -85,7 +85,7 @@ export default function ListWebhooks({ onCreate, onSelect }: Props): VNode { .then((resp) => { if (resp.type === "ok") { setNotif({ - message: i18n.str`Webhook delete successfully`, + message: i18n.str`Webhook deleted successfully`, type: "SUCCESS", }); } else {