From: Revanshu Paliwal Date: Wed, 21 Sep 2022 12:48:39 +0000 (+0200) Subject: SONAR-17290 Adding tooltip to assigne name in issue page X-Git-Tag: 9.7.0.61563~191 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ba57c845f334af670b42de856d3a06ca969c82d;p=sonarqube.git SONAR-17290 Adding tooltip to assigne name in issue page --- diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx index 656d6f767fd..a73c45bd463 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx +++ b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx @@ -23,6 +23,7 @@ import Toggler from '../../../components/controls/Toggler'; import DropdownIcon from '../../../components/icons/DropdownIcon'; import { translate, translateWithParameters } from '../../../helpers/l10n'; import { Issue } from '../../../types/types'; +import Tooltip from '../../controls/Tooltip'; import Avatar from '../../ui/Avatar'; import SetAssigneePopup from '../popups/SetAssigneePopup'; @@ -77,21 +78,23 @@ export default class IssueAssign extends React.PureComponent { onRequestClose={this.handleClose} open={isOpen} overlay={}> - - {this.renderAssignee()} - - + + + {this.renderAssignee()} + + + ); diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap index 87c990089c2..98e115170a9 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap @@ -23,31 +23,35 @@ exports[`should open the popup when the button is clicked 2`] = ` /> } > - - - + + + + John Doe + + - - - John Doe - - - + + `; @@ -66,21 +70,23 @@ exports[`should render a fallback assignee display if assignee info are not avai /> } > - - + - unassigned - - - + + unassigned + + + + `; @@ -99,31 +105,35 @@ exports[`should render with the action 1`] = ` /> } > - - - + + + + John Doe + + - - - John Doe - - - + + `;