diff --git a/client/.prettierrc b/client/.prettierrc index 659512272fb..9f1ed89080f 100644 --- a/client/.prettierrc +++ b/client/.prettierrc @@ -4,5 +4,6 @@ "trailingComma": "es5", "tabWidth": 4, "semi": true, - "singleQuote": true + "singleQuote": true, + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/client/src/ee/pages/automation/api-platform/api-clients/components/ApiClientTable.tsx b/client/src/ee/pages/automation/api-platform/api-clients/components/ApiClientTable.tsx index 38ddd7f3cb6..10b3e1c72b3 100644 --- a/client/src/ee/pages/automation/api-platform/api-clients/components/ApiClientTable.tsx +++ b/client/src/ee/pages/automation/api-platform/api-clients/components/ApiClientTable.tsx @@ -170,7 +170,7 @@ const ApiClientTable = ({apiClients}: ApiClientTableProps) => { className={twMerge( 'whitespace-nowrap', cell.id.endsWith('actions') && 'flex justify-end', - cell.id.endsWith('enabled') && 'flex ml-6' + cell.id.endsWith('enabled') && 'ml-6 flex' )} key={cell.id} onClick={(event) => { diff --git a/client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionEndpointListItem.tsx b/client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionEndpointListItem.tsx index dca487c3c5e..b3d17b81878 100644 --- a/client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionEndpointListItem.tsx +++ b/client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionEndpointListItem.tsx @@ -86,7 +86,7 @@ const ApiCollectionEndpointListItem = ({
{ {apiConnector.description} ) : ( -
+
{apiConnector.title} - diff --git a/client/src/pages/account/public/Login.tsx b/client/src/pages/account/public/Login.tsx index a5e635593ec..3c632bab1f8 100644 --- a/client/src/pages/account/public/Login.tsx +++ b/client/src/pages/account/public/Login.tsx @@ -118,7 +118,7 @@ const Login = () => { control={form.control} name="rememberMe" render={({field}) => ( - + diff --git a/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialog.tsx b/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialog.tsx index 4cb99721b20..073fd4b9722 100644 --- a/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialog.tsx +++ b/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialog.tsx @@ -285,7 +285,7 @@ const ProjectInstanceDialog = ({ 'group flex flex-col border-l-4 py-2 pl-4 md:border-l-0 md:border-t-4 md:pb-0 md:pl-0 md:pt-4', index <= activeStepIndex ? 'border-gray-900 hover:border-gray-800' - : 'border-gray-200 hover:border-gray-30' + : 'hover:border-gray-30 border-gray-200' )} >
diff --git a/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialogBasicStepProjectsComboBox.tsx b/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialogBasicStepProjectsComboBox.tsx index de480e5017f..ab10698e54b 100644 --- a/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialogBasicStepProjectsComboBox.tsx +++ b/client/src/pages/automation/project-instances/components/project-instance-dialog/ProjectInstanceDialogBasicStepProjectsComboBox.tsx @@ -6,7 +6,7 @@ import {FocusEventHandler} from 'react'; const ProjectLabel = ({project}: {project: Project}) => (
- {project.name} + {project.name} {project?.tags?.map((tag) => tag.name).join(', ')}
diff --git a/client/src/pages/automation/project/components/projects-sidebar/ProjectsSidebar.tsx b/client/src/pages/automation/project/components/projects-sidebar/ProjectsSidebar.tsx index 3b7128ccf4b..36beb40a9fb 100644 --- a/client/src/pages/automation/project/components/projects-sidebar/ProjectsSidebar.tsx +++ b/client/src/pages/automation/project/components/projects-sidebar/ProjectsSidebar.tsx @@ -25,7 +25,7 @@ const ProjectsSidebar = ({projectId}: {projectId: number}) => { projects.map((curProject) => (
(
- {project.name} + {project.name} {project?.tags?.map((tag) => tag.name).join(', ')}
@@ -391,7 +391,7 @@ export const WorkflowExecutions = () => { ? projectInstances?.map((projectInstance) => ({ label: ( - + {projectInstance.name} V{projectInstance.projectVersion} diff --git a/client/src/pages/automation/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx b/client/src/pages/automation/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx index 40e6b684f80..b8135cbbda1 100644 --- a/client/src/pages/automation/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx +++ b/client/src/pages/automation/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx @@ -28,7 +28,7 @@ const WorkflowExecutionSheetAccordion = ({job, triggerExecution}: {job: Job; tri {taskExecutionsCompleted && triggerExecutionCompleted ? 'Workflow executed' : 'Workflow failed'} diff --git a/client/src/pages/embedded/connected-users/ConnectedUsers.tsx b/client/src/pages/embedded/connected-users/ConnectedUsers.tsx index 4d1383e99c1..815b88a63b3 100644 --- a/client/src/pages/embedded/connected-users/ConnectedUsers.tsx +++ b/client/src/pages/embedded/connected-users/ConnectedUsers.tsx @@ -93,7 +93,7 @@ export function DatePickerWithRange({ const IntegrationLabel = ({integration}: {integration: Integration}) => (
- {integration.componentName} + {integration.componentName} {integration?.tags?.map((tag) => tag.name).join(', ')}
diff --git a/client/src/pages/embedded/connected-users/components/ConnectedUserTable.tsx b/client/src/pages/embedded/connected-users/components/ConnectedUserTable.tsx index 187f9d4ebb0..476e3e5c0cd 100644 --- a/client/src/pages/embedded/connected-users/components/ConnectedUserTable.tsx +++ b/client/src/pages/embedded/connected-users/components/ConnectedUserTable.tsx @@ -219,7 +219,7 @@ const ConnectedUserTable = ({connectedUsers}: ConnectedUserTableProps) => { !connectedUsers[row.index].enabled && 'text-muted-foreground', cell.id.endsWith('actions') && 'flex justify-end', cell.id.endsWith('enabled') && 'flex justify-center', - cell.id.endsWith('status') && 'pl-8 ' + cell.id.endsWith('status') && 'pl-8' )} key={cell.id} onClick={(event) => { diff --git a/client/src/pages/embedded/connected-users/components/connected-user-sheet/ConnectedUserSheetPanelIntegrationListItem.tsx b/client/src/pages/embedded/connected-users/components/connected-user-sheet/ConnectedUserSheetPanelIntegrationListItem.tsx index e8c3b6eb385..e017bf7ae84 100644 --- a/client/src/pages/embedded/connected-users/components/connected-user-sheet/ConnectedUserSheetPanelIntegrationListItem.tsx +++ b/client/src/pages/embedded/connected-users/components/connected-user-sheet/ConnectedUserSheetPanelIntegrationListItem.tsx @@ -72,7 +72,7 @@ const ConnectedUserSheetPanelIntegrationListItem = ({
@@ -81,7 +81,7 @@ const ConnectedUserSheetPanelIntegrationListItem = ({
-
+
diff --git a/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialog.tsx b/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialog.tsx index 2951ea55450..16664854561 100644 --- a/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialog.tsx +++ b/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialog.tsx @@ -359,7 +359,7 @@ const IntegrationInstanceConfigurationDialog = ({ 'group flex flex-col border-l-4 py-2 pl-4 md:border-l-0 md:border-t-4 md:pb-0 md:pl-0 md:pt-4', index <= activeStepIndex ? 'border-gray-900 hover:border-gray-800' - : 'border-gray-200 hover:border-gray-30' + : 'hover:border-gray-30 border-gray-200' )} >
diff --git a/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialogBasicStepIntegrationsComboBox.tsx b/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialogBasicStepIntegrationsComboBox.tsx index a976243c468..bc4ead3f741 100644 --- a/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialogBasicStepIntegrationsComboBox.tsx +++ b/client/src/pages/embedded/integration-instance-configurations/components/integration-instance-configuration-dialog/IntegrationInstanceConfigurationDialogBasicStepIntegrationsComboBox.tsx @@ -16,7 +16,7 @@ const IntegrationLabel = ({
{componentDefinition?.icon && } - {integration.name} + {integration.name} {integration?.tags?.map((tag) => tag.name).join(', ')}
diff --git a/client/src/pages/embedded/integration/components/integrations-sidebar/IntegrationsSidebar.tsx b/client/src/pages/embedded/integration/components/integrations-sidebar/IntegrationsSidebar.tsx index 8f3d1a50002..dc1e933b7ec 100644 --- a/client/src/pages/embedded/integration/components/integrations-sidebar/IntegrationsSidebar.tsx +++ b/client/src/pages/embedded/integration/components/integrations-sidebar/IntegrationsSidebar.tsx @@ -26,7 +26,7 @@ const IntegrationsSidebar = ({integrationId}: {integrationId: number}) => { .map((curIntegration) => (
(
- {integration.componentName} + {integration.componentName} {integration?.tags?.map((tag) => tag.name).join(', ')}
@@ -394,7 +394,7 @@ export const WorkflowExecutions = () => { ? integrationInstanceConfigurations?.map((integrationInstanceConfiguration) => ({ label: ( - + { (integrationInstanceConfiguration.integration as Integration) ?.componentName diff --git a/client/src/pages/embedded/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx b/client/src/pages/embedded/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx index 47ffdf2db3c..476e29c90d9 100644 --- a/client/src/pages/embedded/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx +++ b/client/src/pages/embedded/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx @@ -28,7 +28,7 @@ const WorkflowExecutionSheetAccordion = ({job, triggerExecution}: {job: Job; tri {taskExecutionsCompleted && triggerExecutionCompleted ? 'Workflow executed' : 'Workflow failed'} diff --git a/client/src/pages/home/Home.tsx b/client/src/pages/home/Home.tsx index 8bf47970709..c2bb9a0d150 100644 --- a/client/src/pages/home/Home.tsx +++ b/client/src/pages/home/Home.tsx @@ -37,7 +37,7 @@ const Home = () => { - +
diff --git a/client/src/pages/platform/connection/components/ComponentSelectionInput.tsx b/client/src/pages/platform/connection/components/ComponentSelectionInput.tsx index 4f2abcbb754..e7a9763736b 100644 --- a/client/src/pages/platform/connection/components/ComponentSelectionInput.tsx +++ b/client/src/pages/platform/connection/components/ComponentSelectionInput.tsx @@ -39,7 +39,7 @@ const ComponentSelectionInput = ({ <> {selectedComponentDefinition?.icon ? (
- + diff --git a/client/src/pages/platform/connection/components/ConnectionParameters.tsx b/client/src/pages/platform/connection/components/ConnectionParameters.tsx index b4da4d873a9..0a0aaf48781 100644 --- a/client/src/pages/platform/connection/components/ConnectionParameters.tsx +++ b/client/src/pages/platform/connection/components/ConnectionParameters.tsx @@ -57,7 +57,7 @@ const ConnectionParameters = ({ existingAuthorizations.map((authorization) => (
  • - Authorization: + Authorization: {authorization.title}
  • diff --git a/client/src/pages/platform/settings/api-keys/components/ApiKeyTable.tsx b/client/src/pages/platform/settings/api-keys/components/ApiKeyTable.tsx index 19632432b5a..576cacdb5e2 100644 --- a/client/src/pages/platform/settings/api-keys/components/ApiKeyTable.tsx +++ b/client/src/pages/platform/settings/api-keys/components/ApiKeyTable.tsx @@ -171,7 +171,7 @@ const ApiKeyTable = ({apiKeys}: ApiKeyTableProps) => { className={twMerge( 'whitespace-nowrap', cell.id.endsWith('actions') && 'flex justify-end', - cell.id.endsWith('enabled') && 'flex ml-6' + cell.id.endsWith('enabled') && 'ml-6 flex' )} key={cell.id} onClick={(event) => { diff --git a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditor.tsx b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditor.tsx index 699a8806187..e7a8d201b8e 100644 --- a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditor.tsx +++ b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditor.tsx @@ -68,7 +68,7 @@ const PropertyCodeEditor = forwardRef -
    +
    {leadingIcon && (
    {leadingIcon} diff --git a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditorSheetConnectionsSheet.tsx b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditorSheetConnectionsSheet.tsx index 124e8877a87..0e053777bfe 100644 --- a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditorSheetConnectionsSheet.tsx +++ b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyCodeEditor/PropertyCodeEditorSheetConnectionsSheet.tsx @@ -289,7 +289,7 @@ const ConnectionSelect = ({ connections.map((connection) => (
    - {connection.name} + {connection.name} {connection?.tags?.map((tag) => tag.name).join(', ')} diff --git a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyMentionsInput/PropertyMentionsInput.tsx b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyMentionsInput/PropertyMentionsInput.tsx index 35b666ddeea..0680ebbb519 100644 --- a/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyMentionsInput/PropertyMentionsInput.tsx +++ b/client/src/pages/platform/workflow-editor/components/Properties/components/PropertyMentionsInput/PropertyMentionsInput.tsx @@ -321,7 +321,7 @@ const PropertyMentionsInput = forwardRef( {taskExecutionsCompleted && triggerExecutionCompleted ? 'Workflow executed' : 'Workflow failed'} diff --git a/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx b/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx index e5fd48b9331..66d91f0827b 100644 --- a/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx +++ b/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx @@ -510,6 +510,14 @@ const WorkflowNodeDetailsPanel = ({ const operationDataMissing = currentComponent?.operationName && (!matchingOperation?.name || !currentOperationFetched); + const tabDataExists = + (!currentNode?.trigger && !currentNode?.taskDispatcher && currentActionFetched) || + currentNode?.taskDispatcher || + (currentNode?.trigger && + currentTriggerFetched && + nodeTabs.length > 1 && + currentNode.componentName !== 'manual'); + if (!workflowNodeDetailsPanelOpen || !currentNode?.name || !currentTaskData) { return <>; } @@ -587,15 +595,12 @@ const WorkflowNodeDetailsPanel = ({ /> )} - {((!currentNode?.trigger && !currentNode?.taskDispatcher && currentActionFetched) || - currentNode?.taskDispatcher || - (currentNode?.trigger && currentTriggerFetched)) && - nodeTabs.length > 1 ? ( + {tabDataExists && (
    {nodeTabs.map((tab) => (
    - ) : ( + )} + + {currentNode.componentName !== 'manual' && !tabDataExists && (
    diff --git a/client/src/pages/platform/workflow-editor/components/WorkflowNodesPopoverMenu.tsx b/client/src/pages/platform/workflow-editor/components/WorkflowNodesPopoverMenu.tsx index 06e9bd2291c..3bac8427646 100644 --- a/client/src/pages/platform/workflow-editor/components/WorkflowNodesPopoverMenu.tsx +++ b/client/src/pages/platform/workflow-editor/components/WorkflowNodesPopoverMenu.tsx @@ -112,7 +112,7 @@ const WorkflowNodesPopoverMenu = ({
    -
    +
    {!hideTriggerComponents && (
      diff --git a/client/src/pages/platform/workflow-editor/components/WorkflowNodesTabsItem.tsx b/client/src/pages/platform/workflow-editor/components/WorkflowNodesTabsItem.tsx index 43f9f79cddd..5aedb4402cf 100644 --- a/client/src/pages/platform/workflow-editor/components/WorkflowNodesTabsItem.tsx +++ b/client/src/pages/platform/workflow-editor/components/WorkflowNodesTabsItem.tsx @@ -33,7 +33,7 @@ const WorkflowNodesTabsItem = ({draggable, handleClick, node, selected}: Workflo return (
    • (
      - {connection.name} + {connection.name} {connection?.tags?.map((tag) => tag.name).join(', ')} diff --git a/client/src/pages/platform/workflow-editor/edges/WorkflowEdge.tsx b/client/src/pages/platform/workflow-editor/edges/WorkflowEdge.tsx index b737a49bfa5..46da4cc86a7 100644 --- a/client/src/pages/platform/workflow-editor/edges/WorkflowEdge.tsx +++ b/client/src/pages/platform/workflow-editor/edges/WorkflowEdge.tsx @@ -46,8 +46,8 @@ export default function WorkflowEdge({ > {
      setDropzoneActive(true)} onDragLeave={() => setDropzoneActive(false)} diff --git a/client/src/pages/platform/workflow-executions/components/WorkflowTaskExecutionItem.tsx b/client/src/pages/platform/workflow-executions/components/WorkflowTaskExecutionItem.tsx index 7839b7c8cd8..777cb9f2568 100644 --- a/client/src/pages/platform/workflow-executions/components/WorkflowTaskExecutionItem.tsx +++ b/client/src/pages/platform/workflow-executions/components/WorkflowTaskExecutionItem.tsx @@ -20,7 +20,7 @@ const WorkflowTaskExecutionItem = ({
    • onClick && onClick()} > diff --git a/client/src/pages/platform/workflow-executions/components/WorkflowTriggerExecutionItem.tsx b/client/src/pages/platform/workflow-executions/components/WorkflowTriggerExecutionItem.tsx index f84ee62cbe7..397088c3d01 100644 --- a/client/src/pages/platform/workflow-executions/components/WorkflowTriggerExecutionItem.tsx +++ b/client/src/pages/platform/workflow-executions/components/WorkflowTriggerExecutionItem.tsx @@ -20,7 +20,7 @@ const WorkflowTriggerExecutionItem = ({
    • onClick && onClick()} > diff --git a/client/src/shared/layout/LayoutContainer.tsx b/client/src/shared/layout/LayoutContainer.tsx index 4ead7d08b7b..d5ac851e848 100644 --- a/client/src/shared/layout/LayoutContainer.tsx +++ b/client/src/shared/layout/LayoutContainer.tsx @@ -87,7 +87,7 @@ const LayoutContainer = ({ {leftSidebarOpen && (