From a5d2f2444ab734ddd9fb7da30270c0c8e3c45bd9 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Fri, 30 Sep 2022 16:41:12 +0200 Subject: [PATCH] Fixes 'How to use Additional Inputs as Variables' dialog in workflows (#4773) * add i18n translations and fix dialog width and height * fix typo Co-authored-by: CarinaWolli Co-authored-by: Bailey Pumfleet --- apps/web/public/static/locales/en/common.json | 7 ++++++- .../workflows/components/v2/WorkflowStepContainer.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index d232e871e6..919bb51d56 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1267,5 +1267,10 @@ "seats": "seats", "every_app_published": "Every app published on the Cal.com App Store is open source and thoroughly tested via peer reviews. Nevertheless, Cal.com, Inc. does not endorse or certify these apps unless they are published by Cal.com. If you encounter inappropriate content or behaviour please report it.", "report_app": "Report app", - "team_name_required": "Team name required" + "team_name_required": "Team name required", + "how_additional_inputs_as_variables": "How to use Additional Inputs as Variables", + "format": "Format", + "uppercase_for_letters": "Use uppercase for all letters", + "replace_whitespaces_underscores": "Replace whitespaces with underscores", + "ignore_special_characters": "Ignore special characters in your Additonal Input label. Use only letters and numbers" } diff --git a/packages/features/ee/workflows/components/v2/WorkflowStepContainer.tsx b/packages/features/ee/workflows/components/v2/WorkflowStepContainer.tsx index 2f85d45b8c..2b133b6b2b 100644 --- a/packages/features/ee/workflows/components/v2/WorkflowStepContainer.tsx +++ b/packages/features/ee/workflows/components/v2/WorkflowStepContainer.tsx @@ -481,15 +481,15 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) { - -
+ +

{t("how_additional_inputs_as_variables")}

-
+

{t("format")}

  • {t("uppercase_for_letters")}
  • {t("replace_whitespaces_underscores")}
  • -
  • {t("ingore_special_characters")}
  • +
  • {t("ignore_special_characters")}

{t("example_1")}

@@ -526,7 +526,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
-
+