From 35f1e2695b1129235632e37bdbd86fcedc605c4f Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Fri, 19 Jul 2024 16:01:57 -0400 Subject: [PATCH] feat(graph): add parallelism in target details --- .../target-configuration-details.tsx | 28 +++++++++++++++++-- .../src/lib/property-info-tooltip.tsx | 9 +++++- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/graph/ui-project-details/src/lib/target-configuration-details/target-configuration-details.tsx b/graph/ui-project-details/src/lib/target-configuration-details/target-configuration-details.tsx index 640708eb3a6e9..5a8b05b6294fa 100644 --- a/graph/ui-project-details/src/lib/target-configuration-details/target-configuration-details.tsx +++ b/graph/ui-project-details/src/lib/target-configuration-details/target-configuration-details.tsx @@ -330,9 +330,31 @@ export default function TargetConfigurationDetails({ /> - ) : ( - '' - )} + ) : null} + + {targetConfiguration.parallelism === false ? ( +
+

+ ) as any} + > + + Parallelism + + +

+
+ + + +
+
+ ) : null} )} diff --git a/graph/ui-tooltips/src/lib/property-info-tooltip.tsx b/graph/ui-tooltips/src/lib/property-info-tooltip.tsx index 06e90d9923b41..2d12ae6a81db1 100644 --- a/graph/ui-tooltips/src/lib/property-info-tooltip.tsx +++ b/graph/ui-tooltips/src/lib/property-info-tooltip.tsx @@ -10,7 +10,8 @@ type PropertyInfoTooltipType = | 'dependsOn' | 'options' | 'configurations' - | 'release'; + | 'release' + | 'parallelism'; type PropertyInfoTooltipTypeOptions = { docsUrl?: string; @@ -81,6 +82,12 @@ const PROPERTY_INFO_TOOLTIP_TYPE_OPTIONS: Record< "The nx-release-publish target is used to publish your project with nxrelease. Don't invoke this directly - use nx release publish instead.", docsUrl: 'https://nx.dev/nx-api/nx/documents/release', }, + parallelism: { + heading: 'Parallelism', + description: + 'By default, tasks are run in parallel with other tasks. Setting `"parallelism": false` ensures that the target will not run in parallel with other tasks on the same machine.', + docsUrl: 'https://nx.dev/reference/project-configuration#parallelism', + }, }; export function PropertyInfoTooltip({ type }: PropertyInfoTooltipProps) {