From dc6f8d1f63827a18eeb766f104b0991215dbd36a Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Mon, 5 Sep 2022 23:29:00 -0400 Subject: [PATCH] V2 workflow improvements (#4070) --- apps/web/public/static/locales/en/common.json | 19 +++++- .../components/v2/AddActionDialog.tsx | 26 ++------ .../components/v2/AddVariablesDropdown.tsx | 15 +++-- .../components/v2/EventWorkflowsTab.tsx | 57 +++++++++++----- .../components/v2/WorkflowDetailsPage.tsx | 4 +- .../components/v2/WorkflowListPage.tsx | 10 +++ .../components/v2/WorkflowStepContainer.tsx | 65 +++++++++---------- .../features/ee/workflows/lib/getOptions.ts | 4 +- .../features/ee/workflows/pages/v2/index.tsx | 4 +- .../ee/workflows/pages/v2/workflow.tsx | 2 +- packages/ui/v2/core/Dropdown.tsx | 2 +- 11 files changed, 121 insertions(+), 87 deletions(-) diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index ecae757995..bcab668c57 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1006,7 +1006,7 @@ "add_exchange2016": "Connect Exchange 2016 Server", "custom_template": "Custom template", "email_body": "Email body", - "subject": "Subject", + "subject": "Email subject", "text_message": "Text message", "specific_issue": "Have a specific issue?", "browse_our_docs": "browse our docs", @@ -1119,5 +1119,20 @@ "two_factor_auth": "Two factor authentication", "recurring_event_tab_description": "Set up a repeating schedule", "today": "today", - "active": "active" + "active": "active", + "add_variable": "Add variable", + "custom_phone_number": "Custom phone number", + "message_template": "Message template", + "email_subject": "Email subject", + "add_dynamic_variables": "Add dynamic text variables", + "event_name_info": "The event type name", + "event_date_info":"The event date", + "event_time_info":"The event start time", + "location_info":"The event location", + "organizer_name_info":"Your name", + "additional_notes_info":"The Additional notes of booking", + "attendee_name_info":"The person booking's name", + "to": "To", + "attendee_required_enter_number": "This will require the attendee to enter a phone number when booking", + "workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully" } diff --git a/packages/features/ee/workflows/components/v2/AddActionDialog.tsx b/packages/features/ee/workflows/components/v2/AddActionDialog.tsx index 10045e3e47..29cd2e435c 100644 --- a/packages/features/ee/workflows/components/v2/AddActionDialog.tsx +++ b/packages/features/ee/workflows/components/v2/AddActionDialog.tsx @@ -7,16 +7,7 @@ import { z } from "zod"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import PhoneInput from "@calcom/ui/form/PhoneInputLazy"; -import { - Button, - Dialog, - DialogClose, - DialogContent, - DialogFooter, - DialogHeader, - Form, - Select, -} from "@calcom/ui/v2"; +import { Button, Dialog, DialogClose, DialogContent, DialogFooter, Form, Label, Select } from "@calcom/ui/v2"; import { WORKFLOW_ACTIONS } from "../../lib/constants"; import { getWorkflowActionOptions } from "../../lib/getOptions"; @@ -56,10 +47,9 @@ export const AddActionDialog = (props: IAddActionDialog) => { return ( - +
-
{ @@ -69,10 +59,8 @@ export const AddActionDialog = (props: IAddActionDialog) => { setIsOpenDialog(false); setIsPhoneNumberNeeded(false); }}> -
- +
+ { return (