-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graph): add sync generators to target details in project details…
… view (#27639) Add a `Sync Generators` section to the target details in the PDV. ### Default ![image](https://github.com/user-attachments/assets/0390c301-a833-4230-8c6a-0d452a7b8c57) ### Heading tooltip ![image](https://github.com/user-attachments/assets/b8b1c19f-20f8-42e6-a914-16e4dd0b11f2) ### Source map ![image](https://github.com/user-attachments/assets/3b66d2e1-88b7-42e8-9771-5732a32b4cc3) ![image](https://github.com/user-attachments/assets/8b3b0f15-c2f1-411f-8eb6-1df6ff320c5c) ### Disabled sync generator tooltip ![image](https://github.com/user-attachments/assets/9fd35041-35fc-41c4-92b5-b613fed9e0ae) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> <!-- Fixes NXC-802 --> Fixes #
- Loading branch information
1 parent
7d0d834
commit a1f69e3
Showing
12 changed files
with
202 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...oject-details/src/lib/target-configuration-details/target-configuration-property-text.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Tooltip } from '@nx/graph/ui-tooltips'; | ||
import { JSX, ReactNode } from 'react'; | ||
import { TooltipTriggerText } from './tooltip-trigger-text'; | ||
import { QuestionMarkCircleIcon } from '@heroicons/react/24/outline'; | ||
|
||
interface TargetConfigurationPropertyTextProps { | ||
content: ReactNode; | ||
disabled?: boolean; | ||
disabledTooltip?: ReactNode; | ||
} | ||
|
||
export function TargetConfigurationPropertyText({ | ||
content, | ||
disabled, | ||
disabledTooltip, | ||
}: TargetConfigurationPropertyTextProps): JSX.Element | null { | ||
return ( | ||
<> | ||
<span className={disabled ? 'opacity-50' : ''}>{content}</span> | ||
{disabledTooltip && ( | ||
<Tooltip openAction="hover" content={disabledTooltip}> | ||
<span className="pl-2 font-medium"> | ||
<TooltipTriggerText> | ||
<QuestionMarkCircleIcon className="inline h-4 w-4" /> | ||
</TooltipTriggerText> | ||
</span> | ||
</Tooltip> | ||
)} | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.