From a4c4684f7779c4223e8100a4beccbd24f5a0d0c3 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 20 Sep 2024 10:03:29 +0200 Subject: [PATCH] SONAR-23093 New typography tailwind classes --- .../src/components/Accordion.tsx | 2 +- .../design-system/src/components/Banner.tsx | 2 +- .../design-system/src/components/BarChart.tsx | 2 +- .../src/components/Breadcrumbs.tsx | 2 +- .../src/components/BubbleChart.tsx | 4 +- .../src/components/CodeSnippet.tsx | 2 +- .../src/components/DropdownMenu.tsx | 4 +- .../design-system/src/components/FacetBox.tsx | 2 +- .../src/components/FacetItem.tsx | 4 +- .../src/components/FailedQGConditionLink.tsx | 2 +- .../design-system/src/components/FlowStep.tsx | 2 +- .../src/components/Histogram.tsx | 2 +- .../src/components/HtmlFormatter.tsx | 10 +- .../components/IlllustredSelectionCard.tsx | 2 +- .../design-system/src/components/Link.tsx | 2 +- .../src/components/LocationMarker.tsx | 2 +- .../src/components/NavBarTabs.tsx | 6 +- .../src/components/NewCodeLegend.tsx | 2 +- .../design-system/src/components/Pill.tsx | 2 +- .../src/components/SelectionCard.tsx | 4 +- .../src/components/SpotlightTour.tsx | 4 +- .../design-system/src/components/Tabs.tsx | 2 +- .../design-system/src/components/Text.tsx | 4 +- .../design-system/src/components/Tooltip.tsx | 5 +- .../src/components/TutorialStep.tsx | 8 +- .../src/components/__tests__/Banner-test.tsx | 2 +- .../__tests__/NewCodeLegend-test.tsx | 3 +- .../__snapshots__/CodeSnippet-test.tsx.snap | 60 +---- .../__snapshots__/Histogram-test.tsx.snap | 15 +- .../__snapshots__/LineFinding-test.tsx.snap | 5 +- .../__snapshots__/LineWrapper-test.tsx.snap | 5 +- .../src/components/code-line/LineFinding.tsx | 2 +- .../src/components/code-line/LineMarker.tsx | 2 +- .../src/components/code-line/LineStyles.tsx | 2 +- .../src/components/icons/RequiredIcon.tsx | 2 +- .../src/components/input/DatePicker.tsx | 2 +- .../src/components/input/DiscreetSelect.tsx | 2 +- .../src/components/input/InputField.tsx | 2 +- .../src/components/input/InputMultiSelect.tsx | 2 +- .../src/components/input/InputSearch.tsx | 4 +- .../input/SearchSelectDropdownControl.tsx | 2 +- .../src/components/lists/NumberedListItem.tsx | 2 +- .../src/components/modal/ModalBody.tsx | 2 +- .../src/components/modal/ModalHeader.tsx | 4 +- .../__snapshots__/ModalBody-test.tsx.snap | 5 +- .../__snapshots__/ModalHeader-test.tsx.snap | 20 +- .../subnavigation/SubnavigationAccordion.tsx | 2 +- .../subnavigation/SubnavigationHeading.tsx | 2 +- .../subnavigation/SubnavigationItem.tsx | 2 +- .../subnavigation/SubnavigationSubheading.tsx | 2 +- .../__tests__/toast-utils-test.tsx | 4 +- .../components/toast-message/toast-utils.tsx | 5 +- .../sonar-aligned/components/FlagMessage.tsx | 2 +- .../components/FlagMessageV2.tsx | 4 +- .../src/sonar-aligned/components/Table.tsx | 6 +- .../components/buttons/Button.tsx | 2 +- .../components/typography/Note.tsx | 2 +- .../components/typography/Title.tsx | 8 +- .../main/js/app/components/FormattingHelp.tsx | 2 +- .../main/js/app/components/GlobalFooter.tsx | 4 +- .../app/components/NonAdminPagesContainer.tsx | 2 +- .../src/main/js/app/components/NotFound.tsx | 2 +- .../js/app/components/PluginRiskConsent.tsx | 2 +- .../main/js/app/components/ResetPassword.tsx | 2 +- .../IndexationNotificationRenderer.tsx | 2 +- .../ComponentNavProjectBindingErrorNotif.tsx | 2 +- .../PromotionNotification.tsx | 2 +- .../src/main/js/apps/account/Account.tsx | 2 +- .../js/apps/account/components/UserCard.tsx | 2 +- .../notifications/GlobalNotifications.tsx | 2 +- .../account/notifications/Notifications.tsx | 4 +- .../notifications/ProjectNotifications.tsx | 2 +- .../main/js/apps/account/profile/Profile.tsx | 4 +- .../js/apps/account/projects/ProjectCard.tsx | 2 +- .../main/js/apps/account/security/Tokens.tsx | 2 +- .../components/AuditAppRenderer.tsx | 2 +- .../components/BackgroundTasksApp.tsx | 2 +- .../components/StatPendingCount.tsx | 2 +- .../components/StatPendingTime.tsx | 2 +- .../components/StatStillFailing.tsx | 4 +- .../background-tasks/components/Stats.tsx | 2 +- .../ChangeAdminPasswordAppRenderer.tsx | 2 +- .../apps/code/components/CodeAppRenderer.tsx | 4 +- .../components/CodingRulesApp.tsx | 2 +- .../coding-rules/components/PageActions.tsx | 2 +- .../coding-rules/components/ProfileFacet.tsx | 4 +- .../components/RuleDetailsHeaderActions.tsx | 6 +- .../components/RuleDetailsHeaderMeta.tsx | 2 +- .../coding-rules/components/RuleListItem.tsx | 14 +- .../components/ComponentMeasuresApp.tsx | 2 +- .../components/MeasureHeader.tsx | 4 +- .../drilldown/BubbleChartView.tsx | 6 +- .../drilldown/ComponentsList.tsx | 6 +- .../sidebar/DomainSubnavigation.tsx | 2 +- .../Azure/AzurePersonalAccessTokenForm.tsx | 4 +- .../Azure/AzureProjectCreateRenderer.tsx | 2 +- .../BitbucketCloudPersonalAccessTokenForm.tsx | 4 +- .../BitbucketCloudProjectCreateRender.tsx | 2 +- .../BitbucketCloudSearchForm.tsx | 2 +- .../BitbucketProjectCreateRenderer.tsx | 2 +- ...BitbucketServerPersonalAccessTokenForm.tsx | 4 +- .../project/CreateProjectModeSelection.tsx | 2 +- .../Github/GitHubProjectCreateRenderer.tsx | 2 +- .../Gitlab/GItlabPersonalAccessTokenForm.tsx | 4 +- .../Gitlab/GitlabProjectCreateRenderer.tsx | 2 +- .../Gitlab/GitlabProjectSelectionForm.tsx | 2 +- .../create/project/components/AlmRepoItem.tsx | 12 +- .../components/NewCodeDefinitionSelection.tsx | 2 +- .../project/components/RepositoryList.tsx | 4 +- .../project/manual/ManualProjectCreate.tsx | 4 +- .../src/main/js/apps/groups/GroupsApp.tsx | 2 +- .../js/apps/groups/components/ListItem.tsx | 2 +- .../components/ComponentBreadcrumbs.tsx | 2 +- .../js/apps/issues/components/IssueHeader.tsx | 2 +- .../issues/components/IssueReviewHistory.tsx | 8 +- .../IssueReviewHistoryAndComments.tsx | 2 +- .../js/apps/issues/components/IssuesApp.tsx | 2 +- .../js/apps/issues/components/NoIssues.tsx | 2 +- .../js/apps/issues/components/NoMyIssues.tsx | 2 +- .../js/apps/issues/components/PageActions.tsx | 2 +- .../IssueItemLocationsQuantity.tsx | 2 +- .../issues-subnavigation/IssueLocation.tsx | 9 +- .../IssueLocationsCrossFile.tsx | 2 +- .../js/apps/issues/sidebar/FiltersHeader.tsx | 2 +- .../js/apps/maintenance/components/App.tsx | 2 +- .../src/main/js/apps/marketplace/App.tsx | 2 +- .../src/main/js/apps/marketplace/Header.tsx | 2 +- .../components/PluginAvailable.tsx | 2 +- .../components/PluginChangeLog.tsx | 2 +- .../components/PluginDescription.tsx | 2 +- .../components/PluginInstalled.tsx | 2 +- .../marketplace/components/PluginUpdates.tsx | 2 +- .../apps/overview/branches/ActivityPanel.tsx | 2 +- .../js/apps/overview/branches/Analysis.tsx | 6 +- .../overview/branches/BranchMetaTopBar.tsx | 4 +- .../branches/BranchOverviewRenderer.tsx | 2 +- .../main/js/apps/overview/branches/Event.tsx | 2 +- .../branches/NewCodeMeasuresPanel.tsx | 4 +- .../branches/OverallCodeMeasuresPanel.tsx | 2 +- .../overview/branches/PromotedSection.tsx | 4 +- .../branches/QualityGateCondition.tsx | 2 +- .../overview/branches/QualityGatePanel.tsx | 4 +- .../branches/QualityGatePanelSection.tsx | 2 +- .../branches/SoftwareImpactMeasureCard.tsx | 4 +- .../overview/branches/SonarLintPromotion.tsx | 2 +- .../overview/components/AfterMergeNote.tsx | 2 +- .../components/IssueMeasuresCardInner.tsx | 2 +- .../overview/components/LastAnalysisLabel.tsx | 2 +- .../apps/overview/components/MeasuresCard.tsx | 2 +- .../components/MeasuresCardNumber.tsx | 2 +- .../components/MeasuresCardPercent.tsx | 6 +- .../BranchQualityGateConditions.tsx | 6 +- .../pullRequests/MeasuresCardPanel.tsx | 10 +- .../pullRequests/PullRequestMetaTopBar.tsx | 4 +- .../pullRequests/PullRequestOverview.tsx | 2 +- .../overview/pullRequests/SonarLintAd.tsx | 8 +- .../permission-templates/components/Home.tsx | 2 +- .../components/Template.tsx | 2 +- .../components/PermissionsGlobalApp.tsx | 2 +- .../components/PermissionsProjectApp.tsx | 2 +- .../ProjectActivityAnalysesList.tsx | 8 +- .../components/ProjectActivityAnalysis.tsx | 4 +- .../components/ProjectActivityPageFilters.tsx | 2 +- .../projectBranches/ProjectBranchesApp.tsx | 2 +- .../src/main/js/apps/projectDeletion/App.tsx | 2 +- .../js/apps/projectDump/ProjectDumpApp.tsx | 4 +- .../js/apps/projectDump/components/Import.tsx | 2 +- .../ProjectInformationApp.tsx | 2 +- .../main/js/apps/projectKey/ProjectKeyApp.tsx | 2 +- .../main/js/apps/projectKey/UpdateForm.tsx | 4 +- .../js/apps/projectLinks/ProjectLinksApp.tsx | 2 +- .../BranchNewCodeDefinitionSettingModal.tsx | 2 +- .../ProjectNewCodeDefinitionApp.tsx | 2 +- .../ProjectQualityGateAppRenderer.tsx | 2 +- .../ProjectQualityProfilesAppRenderer.tsx | 2 +- .../apps/projects/components/AllProjects.tsx | 2 +- .../components/EmptyFavoriteSearch.tsx | 4 +- .../projects/components/EmptyInstance.tsx | 4 +- .../components/NoFavoriteProjects.tsx | 6 +- .../apps/projects/components/PageHeader.tsx | 4 +- .../apps/projects/components/PageSidebar.tsx | 4 +- .../projects/components/PerspectiveSelect.tsx | 4 +- .../components/ProjectsSortingSelect.tsx | 8 +- .../components/project-card/ProjectCard.tsx | 20 +- .../project-card/ProjectCardMeasure.tsx | 2 +- .../project-card/ProjectCardMeasures.tsx | 8 +- .../js/apps/projectsManagement/Header.tsx | 2 +- .../ProjectManagementApp.tsx | 2 +- .../js/apps/quality-gates/components/App.tsx | 2 +- .../components/CaycCompliantBanner.tsx | 2 +- .../ConditionReviewAndUpdateModal.tsx | 8 +- .../quality-gates/components/Conditions.tsx | 12 +- .../components/ConditionsTable.tsx | 6 +- .../components/DetailsContent.tsx | 6 +- .../quality-gates/components/ListHeader.tsx | 2 +- .../components/PermissionItem.tsx | 2 +- ...QualityGatePermissionsAddModalRenderer.tsx | 4 +- .../QualityGatePermissionsRenderer.tsx | 4 +- .../compare/ComparisonContainer.tsx | 2 +- .../compare/ComparisonResults.tsx | 2 +- .../components/ProfileNotFound.tsx | 4 +- .../details/ProfileHeader.tsx | 8 +- .../details/ProfilePermissionsGroup.tsx | 2 +- .../details/ProfilePermissionsUser.tsx | 2 +- .../home/EvolutionDeprecated.tsx | 2 +- .../quality-profiles/home/EvolutionRules.tsx | 4 +- .../home/EvolutionStagnant.tsx | 2 +- .../quality-profiles/home/LanguageSelect.tsx | 2 +- .../apps/quality-profiles/home/PageHeader.tsx | 2 +- .../components/EmptyHotspotsPage.tsx | 2 +- .../HotspotDisabledFilterTooltip.tsx | 4 +- .../components/HotspotHeader.tsx | 2 +- .../components/HotspotHeaderRightSection.tsx | 8 +- .../components/HotspotList.tsx | 4 +- .../components/HotspotListItem.tsx | 2 +- .../components/HotspotListMeta.tsx | 4 +- .../components/HotspotReviewHistory.tsx | 8 +- .../HotspotReviewHistoryAndComments.tsx | 2 +- .../components/HotspotSidebarHeader.tsx | 4 +- .../components/StatusUpdateSuccessModal.tsx | 4 +- ...HotspotDisabledFilterTooltip-test.tsx.snap | 4 +- .../components/status/StatusDescription.tsx | 4 +- .../js/apps/sessions/components/Login.tsx | 2 +- .../js/apps/sessions/components/Logout.tsx | 2 +- .../apps/sessions/components/Unauthorized.tsx | 2 +- .../components/SettingsAppRenderer.tsx | 2 +- .../components/SettingsSearchRenderer.tsx | 2 +- .../AlmBindingDefinitionFormRenderer.tsx | 2 +- .../authentication/ProvisioningSection.tsx | 6 +- .../EmailNotificationConfiguration.tsx | 12 +- .../EmailNotificationOverview.tsx | 6 +- .../email-notification/EmailTestModal.tsx | 2 +- .../settings/encryption/EncryptionApp.tsx | 2 +- .../js/apps/system/components/SystemApp.tsx | 2 +- .../src/main/js/apps/users/UsersApp.tsx | 6 +- .../js/apps/users/components/TokensForm.tsx | 4 +- .../users/components/UserListItemIdentity.tsx | 2 +- .../src/main/js/apps/web-api-v2/WebApiApp.tsx | 2 +- .../web-api-v2/components/ApiParameters.tsx | 2 +- .../js/apps/web-api/components/WebApiApp.tsx | 2 +- .../main/js/apps/webhooks/components/App.tsx | 2 +- .../SourceViewer/SourceViewerHeader.tsx | 30 +-- .../components/DuplicationPopup.tsx | 2 +- .../activity-graph/AddGraphMetric.tsx | 2 +- .../DefinitionChangeEventInner.tsx | 4 +- .../components/activity-graph/EventInner.tsx | 6 +- .../activity-graph/GraphsHeader.tsx | 2 +- .../activity-graph/GraphsLegendItem.tsx | 5 +- .../activity-graph/GraphsTooltips.tsx | 2 +- .../RichQualityGateEventInner.tsx | 4 +- .../js/components/charts/AdvancedTimeline.tsx | 4 +- .../AdvancedTimeline-test.tsx.snap | 208 +++++++++--------- .../LanguageDistribution-test.tsx.snap | 5 +- .../js/components/common/ActivityLink.tsx | 2 +- .../main/js/components/common/EmptySearch.tsx | 4 +- .../js/components/controls/ListFooter.tsx | 6 +- .../issue/components/IssueActionsBar.tsx | 2 +- .../issue/components/IssueMetaBar.tsx | 4 +- .../components/issue/components/IssueTags.tsx | 4 +- .../MeasureIndicator-test.tsx.snap | 2 +- .../NewCodeDefinitionSelector.tsx | 2 +- .../rules/IssueSuggestionCodeTab.tsx | 6 +- .../js/components/rules/RuleDescription.tsx | 2 +- .../tutorials/TutorialSelectionRenderer.tsx | 6 +- .../RepositoryVariables.tsx | 4 +- .../tutorials/components/AllSet.tsx | 2 +- .../tutorials/components/EditTokenModal.tsx | 2 +- .../components/TokenStepGenerator.tsx | 2 +- .../tutorials/github-action/SecretStep.tsx | 4 +- .../gitlabci/EnvironmentVariablesStep.tsx | 14 +- .../tutorials/other/OtherTutorial.tsx | 2 +- .../main/js/components/ui/AdminPageHeader.tsx | 4 +- .../main/js/components/ui/FilesCounter.tsx | 2 +- .../components/workspace/WorkspaceHeader.tsx | 2 +- .../components/workspace/WorkspaceNavItem.tsx | 2 +- .../components/measure/Measure.tsx | 21 +- server/sonar-web/tailwind-echoes.js | 81 +++++++ server/sonar-web/tailwind-utilities.js | 93 -------- server/sonar-web/tailwind.base.config.js | 53 +---- 279 files changed, 682 insertions(+), 810 deletions(-) create mode 100644 server/sonar-web/tailwind-echoes.js delete mode 100644 server/sonar-web/tailwind-utilities.js diff --git a/server/sonar-web/design-system/src/components/Accordion.tsx b/server/sonar-web/design-system/src/components/Accordion.tsx index f5f464b7fa1..dee353256f2 100644 --- a/server/sonar-web/design-system/src/components/Accordion.tsx +++ b/server/sonar-web/design-system/src/components/Accordion.tsx @@ -83,7 +83,7 @@ const accordionStyle = (props: ThemedProps) => css` outline 0.2s ease; & > button { - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} } ${tw`sw-rounded-2`} ${tw`sw-overflow-hidden`} diff --git a/server/sonar-web/design-system/src/components/Banner.tsx b/server/sonar-web/design-system/src/components/Banner.tsx index f7053a03924..a53d34c4341 100644 --- a/server/sonar-web/design-system/src/components/Banner.tsx +++ b/server/sonar-web/design-system/src/components/Banner.tsx @@ -114,7 +114,7 @@ const BannerInner = styled.div` ${tw`sw-box-border`} ${tw`sw-flex sw-items-center sw-justify-between sw-gap-3`} ${tw`sw-px-4`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} `; const BannerCloseIcon = styled(InteractiveIconBase)<{ diff --git a/server/sonar-web/design-system/src/components/BarChart.tsx b/server/sonar-web/design-system/src/components/BarChart.tsx index 71a5e4d8828..5b15de8dafe 100644 --- a/server/sonar-web/design-system/src/components/BarChart.tsx +++ b/server/sonar-web/design-system/src/components/BarChart.tsx @@ -96,7 +96,7 @@ function Xvalues( return ( const BreadcrumbWrapper = styled.nav` ${tw`sw-flex sw-items-center`} ${tw`sw-truncate`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} color: ${themeContrast('breadcrumb')}; background-color: ${themeColor('breadcrumb')}; diff --git a/server/sonar-web/design-system/src/components/BubbleChart.tsx b/server/sonar-web/design-system/src/components/BubbleChart.tsx index bdca3c8f6a7..f398cd08252 100644 --- a/server/sonar-web/design-system/src/components/BubbleChart.tsx +++ b/server/sonar-web/design-system/src/components/BubbleChart.tsx @@ -367,7 +367,7 @@ export function BubbleChart(props: BubbleChartProps) {
- {zoomLabel} + {zoomLabel} {': '} {zoomLevelLabel} @@ -444,7 +444,7 @@ const BubbleChartGrid = styled.line` `; const BubbleChartTick = styled.text` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-select-none`} fill: ${themeColor('pageContentLight')}; text-anchor: var(--align); diff --git a/server/sonar-web/design-system/src/components/CodeSnippet.tsx b/server/sonar-web/design-system/src/components/CodeSnippet.tsx index 6ca4d79d813..931031b855a 100644 --- a/server/sonar-web/design-system/src/components/CodeSnippet.tsx +++ b/server/sonar-web/design-system/src/components/CodeSnippet.tsx @@ -102,7 +102,7 @@ const Wrapper = styled.div` const StyledClipboardButton = styled(ClipboardButton)` ${tw`sw-select-none`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-top-6 sw-right-6`} ${tw`sw-absolute`} diff --git a/server/sonar-web/design-system/src/components/DropdownMenu.tsx b/server/sonar-web/design-system/src/components/DropdownMenu.tsx index c8027c1fc24..50a4cbb9d25 100644 --- a/server/sonar-web/design-system/src/components/DropdownMenu.tsx +++ b/server/sonar-web/design-system/src/components/DropdownMenu.tsx @@ -303,7 +303,7 @@ export const DropdownMenuWrapper = styled.ul` ${tw`sw-box-border`}; ${tw`sw-min-w-input-small`} ${tw`sw-py-2`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} &:focus { outline: none; @@ -319,7 +319,7 @@ const itemStyle = (props: ThemedProps) => css` transition: none; ${tw`sw-flex sw-items-center`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-box-border`} ${tw`sw-w-full`} ${tw`sw-text-left`} diff --git a/server/sonar-web/design-system/src/components/FacetBox.tsx b/server/sonar-web/design-system/src/components/FacetBox.tsx index f92d58c30a0..22c4e344ce1 100644 --- a/server/sonar-web/design-system/src/components/FacetBox.tsx +++ b/server/sonar-web/design-system/src/components/FacetBox.tsx @@ -204,7 +204,7 @@ const Header = styled.div` const HeaderTitle = styled.span<{ disabled?: boolean; }>` - ${tw`sw-body-sm-highlight`}; + ${tw`sw-typo-semibold`}; color: ${({ disabled }) => disabled ? themeColor('facetHeaderDisabled') : themeColor('facetHeader')}; diff --git a/server/sonar-web/design-system/src/components/FacetItem.tsx b/server/sonar-web/design-system/src/components/FacetItem.tsx index 91e258c9f3e..761cecb2b8a 100644 --- a/server/sonar-web/design-system/src/components/FacetItem.tsx +++ b/server/sonar-web/design-system/src/components/FacetItem.tsx @@ -102,14 +102,14 @@ BaseFacetItem.displayName = 'FacetItem'; // so that tests don't see the obfuscat export const FacetItem = styled(BaseFacetItem)``; const StyledButton = styled(ButtonSecondary)<{ active?: boolean; small?: boolean }>` - ${tw`sw-body-sm`}; + ${tw`sw-typo-default`}; ${tw`sw-box-border`}; ${tw`sw-h-7`}; ${tw`sw-px-1`}; ${tw`sw-rounded-1`}; ${tw`sw-w-full`}; - ${({ small }) => (small ? tw`sw-body-xs sw-pr-0` : '')}; + ${({ small }) => (small ? tw`sw-typo-sm sw-pr-0` : '')}; --background: ${({ active }) => (active ? themeColor('facetItemSelected') : 'transparent')}; --backgroundHover: ${({ active }) => (active ? themeColor('facetItemSelected') : 'transparent')}; diff --git a/server/sonar-web/design-system/src/components/FailedQGConditionLink.tsx b/server/sonar-web/design-system/src/components/FailedQGConditionLink.tsx index bf35fcfd35d..3704dff64f3 100644 --- a/server/sonar-web/design-system/src/components/FailedQGConditionLink.tsx +++ b/server/sonar-web/design-system/src/components/FailedQGConditionLink.tsx @@ -24,7 +24,7 @@ import { ButtonProps, DangerButtonSecondary } from '../sonar-aligned/components/ import { ChevronRightIcon } from './icons/ChevronRightIcon'; const StyledFailedQGConditionLink = styled(DangerButtonSecondary)` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-h-7`} ${tw`sw-pl-2`} ${tw`sw-pr-1`} diff --git a/server/sonar-web/design-system/src/components/FlowStep.tsx b/server/sonar-web/design-system/src/components/FlowStep.tsx index 0803b7d7ce1..1c4ed82be74 100644 --- a/server/sonar-web/design-system/src/components/FlowStep.tsx +++ b/server/sonar-web/design-system/src/components/FlowStep.tsx @@ -49,7 +49,7 @@ export function FlowStep(props: Props) { const StyledLink = styled(BaseLink)` ${tw`sw-p-1 sw-rounded-1/2`} ${tw`sw-flex sw-items-center sw-flex-wrap sw-gap-2`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} color: ${themeColor('pageContent')}; border-bottom: none; diff --git a/server/sonar-web/design-system/src/components/Histogram.tsx b/server/sonar-web/design-system/src/components/Histogram.tsx index b054114ef41..1aba9da6317 100644 --- a/server/sonar-web/design-system/src/components/Histogram.tsx +++ b/server/sonar-web/design-system/src/components/Histogram.tsx @@ -138,7 +138,7 @@ export class Histogram extends React.PureComponent { } const HistogramTick = styled.text` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} fill: ${themeColor('pageContentLight')}; ${TooltipWrapper} & { diff --git a/server/sonar-web/design-system/src/components/HtmlFormatter.tsx b/server/sonar-web/design-system/src/components/HtmlFormatter.tsx index dd61152a607..84377e23e21 100644 --- a/server/sonar-web/design-system/src/components/HtmlFormatter.tsx +++ b/server/sonar-web/design-system/src/components/HtmlFormatter.tsx @@ -22,12 +22,12 @@ import tw from 'twin.macro'; import { themeBorder, themeColor } from '../helpers'; export const HtmlFormatter = styled.div` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} a { color: ${themeColor('linkDefault')}; border-bottom: ${themeBorder('default', 'linkDefault')}; - ${tw`sw-no-underline sw-body-sm-highlight`}; + ${tw`sw-no-underline sw-typo-semibold`}; &:visited { color: ${themeColor('linkDefault')}; @@ -54,7 +54,7 @@ export const HtmlFormatter = styled.div` h2, h3 { color: ${themeColor('pageContentDark')}; - ${tw`sw-body-md-highlight`} + ${tw`sw-typo-lg-semibold`} ${tw`sw-my-6`} } @@ -62,7 +62,7 @@ export const HtmlFormatter = styled.div` h5, h6 { color: ${themeColor('pageContentDark')}; - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} ${tw`sw-mt-6 sw-mb-2`} } @@ -128,7 +128,7 @@ export const HtmlFormatter = styled.div` th { ${tw`sw-py-1 sw-px-3`} - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} ${tw`sw-text-center`} background-color: ${themeColor('backgroundPrimary')}; border: ${themeBorder('default')}; diff --git a/server/sonar-web/design-system/src/components/IlllustredSelectionCard.tsx b/server/sonar-web/design-system/src/components/IlllustredSelectionCard.tsx index b4cb668ec0d..72895b5662c 100644 --- a/server/sonar-web/design-system/src/components/IlllustredSelectionCard.tsx +++ b/server/sonar-web/design-system/src/components/IlllustredSelectionCard.tsx @@ -48,7 +48,7 @@ export function IllustratedSelectionCard(props: Props) { const Note = styled.span` color: ${themeColor('pageContentLight')}; - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} `; const ImageContainer = styled.div` diff --git a/server/sonar-web/design-system/src/components/Link.tsx b/server/sonar-web/design-system/src/components/Link.tsx index 5138a25c643..5da1315a8a4 100644 --- a/server/sonar-web/design-system/src/components/Link.tsx +++ b/server/sonar-web/design-system/src/components/Link.tsx @@ -186,7 +186,7 @@ export const NakedLink = styled(BaseLink)` /** @deprecated Use either Link or LinkStandalone from Echoes instead. */ export const DrilldownLink = styled(StyledBaseLink)` - ${tw`sw-heading-lg`} + ${tw`sw-heading-xl`} ${tw`sw-tracking-tight`} ${tw`sw-whitespace-nowrap`} diff --git a/server/sonar-web/design-system/src/components/LocationMarker.tsx b/server/sonar-web/design-system/src/components/LocationMarker.tsx index 979ae3aeebe..fb7dfd480a0 100644 --- a/server/sonar-web/design-system/src/components/LocationMarker.tsx +++ b/server/sonar-web/design-system/src/components/LocationMarker.tsx @@ -55,7 +55,7 @@ export const LocationMarker = forwardRef(InternalLocation export const StyledMarker = styled.div` ${tw`sw-flex sw-grow-0 sw-items-center sw-justify-center`} - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} ${tw`sw-rounded-1/2`} height: 1.125rem; diff --git a/server/sonar-web/design-system/src/components/NavBarTabs.tsx b/server/sonar-web/design-system/src/components/NavBarTabs.tsx index 09740e5e417..35666e032cd 100644 --- a/server/sonar-web/design-system/src/components/NavBarTabs.tsx +++ b/server/sonar-web/design-system/src/components/NavBarTabs.tsx @@ -98,7 +98,7 @@ export function DisabledTabLink(props: { label: string; overlay: React.ReactNode // Styling for due to its special className function, it conflicts when styled with Emotion. const NavBarTabLinkWrapper = styled.li` - ${tw`sw-body-md`}; + ${tw`sw-typo-lg`}; & > a { ${tw`sw-pb-3`}; ${tw`sw-block`}; @@ -122,13 +122,13 @@ const NavBarTabLinkWrapper = styled.li` & > a.active > span[data-text], & > a[aria-expanded='true'] > span[data-text], & > a:active > span { - ${tw`sw-body-md-highlight`}; + ${tw`sw-typo-lg-semibold`}; } // This is a hack to have a link take the space of the bold font, so when active other ones are not moving & > a > span[data-text]::before { ${tw`sw-block`}; - ${tw`sw-body-md-highlight`}; + ${tw`sw-typo-lg-semibold`}; ${tw`sw-h-0`}; ${tw`sw-overflow-hidden`}; ${tw`sw-invisible`}; diff --git a/server/sonar-web/design-system/src/components/NewCodeLegend.tsx b/server/sonar-web/design-system/src/components/NewCodeLegend.tsx index 58f701d369d..7ebad7a3529 100644 --- a/server/sonar-web/design-system/src/components/NewCodeLegend.tsx +++ b/server/sonar-web/design-system/src/components/NewCodeLegend.tsx @@ -34,7 +34,7 @@ export const NewCodeLegendIcon = styled.span` const NewCodeLegendText = styled.span` ${tw`sw-align-middle`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-ml-2`} color: ${themeColor('graphCursorLineColor')}; `; diff --git a/server/sonar-web/design-system/src/components/Pill.tsx b/server/sonar-web/design-system/src/components/Pill.tsx index 63deaf24560..b6d40d221c7 100644 --- a/server/sonar-web/design-system/src/components/Pill.tsx +++ b/server/sonar-web/design-system/src/components/Pill.tsx @@ -84,7 +84,7 @@ export const Pill = forwardRef>( ); const reusedStyles = css` - ${tw`sw-body-xs`}; + ${tw`sw-typo-sm`}; ${tw`sw-w-fit`}; ${tw`sw-inline-block`}; ${tw`sw-whitespace-nowrap`}; diff --git a/server/sonar-web/design-system/src/components/SelectionCard.tsx b/server/sonar-web/design-system/src/components/SelectionCard.tsx index 82317246792..f81c23b68f2 100644 --- a/server/sonar-web/design-system/src/components/SelectionCard.tsx +++ b/server/sonar-web/design-system/src/components/SelectionCard.tsx @@ -153,7 +153,7 @@ const StyledContent = styled.div` `; const StyledRecommended = styled.div` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-py-2 sw-px-4`} ${tw`sw-box-border`} ${tw`sw-rounded-b-2`} @@ -172,7 +172,7 @@ const StyledRecommendedIcon = styled(RecommendedIcon)` const StyledLabel = styled.label` ${tw`sw-flex`} ${tw`sw-mb-3 sw-gap-2`} - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} color: ${themeColor('selectionCardHeader')}; cursor: inherit; diff --git a/server/sonar-web/design-system/src/components/SpotlightTour.tsx b/server/sonar-web/design-system/src/components/SpotlightTour.tsx index a5481d261f0..caa21689bb6 100644 --- a/server/sonar-web/design-system/src/components/SpotlightTour.tsx +++ b/server/sonar-web/design-system/src/components/SpotlightTour.tsx @@ -140,7 +140,7 @@ function TooltipComponent({ return ( - {step.title} + {step.title} (props.large ? tw`sw-body-md sw-px-6 sw-py-4` : tw`sw-body-sm sw-px-3 sw-py-1`)} + ${(props) => (props.large ? tw`sw-typo-lg sw-px-6 sw-py-4` : tw`sw-typo-default sw-px-3 sw-py-1`)} ${tw`sw-font-semibold`}; ${tw`sw-rounded-t-1`}; diff --git a/server/sonar-web/design-system/src/components/Text.tsx b/server/sonar-web/design-system/src/components/Text.tsx index 7b80879f1fa..08437dcce22 100644 --- a/server/sonar-web/design-system/src/components/Text.tsx +++ b/server/sonar-web/design-system/src/components/Text.tsx @@ -163,7 +163,7 @@ export const LightLabel = styled.span` export const DarkLabel = styled.label` color: ${themeColor('pageContentDark')}; - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} `; /** @deprecated Use Text from Echoes instead. @@ -177,5 +177,5 @@ export const LightPrimary = styled.span` export const Highlight = styled.strong` color: ${themeColor('pageContentDark')}; - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} `; diff --git a/server/sonar-web/design-system/src/components/Tooltip.tsx b/server/sonar-web/design-system/src/components/Tooltip.tsx index 2ce932bdf20..58862d1a5d0 100644 --- a/server/sonar-web/design-system/src/components/Tooltip.tsx +++ b/server/sonar-web/design-system/src/components/Tooltip.tsx @@ -466,7 +466,7 @@ export const TooltipWrapper = styled.div` ${tw`sw-block`}; ${tw`sw-box-border`}; ${tw`sw-h-auto`}; - ${tw`sw-body-sm`}; + ${tw`sw-typo-default`}; &.top { margin-top: -${ARROW_MARGIN}px; @@ -494,7 +494,8 @@ const TooltipWrapperArrow = styled.div` ${tw`sw-w-0`}; ${tw`sw-h-0`}; ${tw`sw-border-solid`}; - ${tw`sw-border-transparent`}; + border-color: var(--echoes-color-support-transparent); + ${TooltipWrapper}.top & { border-width: ${ARROW_HEIGHT}px ${ARROW_WIDTH}px 0; border-top-color: ${themeColor('tooltipBackground')}; diff --git a/server/sonar-web/design-system/src/components/TutorialStep.tsx b/server/sonar-web/design-system/src/components/TutorialStep.tsx index c03575a2398..12d050e8890 100644 --- a/server/sonar-web/design-system/src/components/TutorialStep.tsx +++ b/server/sonar-web/design-system/src/components/TutorialStep.tsx @@ -38,7 +38,7 @@ export function TutorialStep({ children, title, stepNumber }: Props) { const StepDetails = styled.div` h3 { - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} ${tw`sw-my-2`} color: ${themeColor('pageContent')}; @@ -47,7 +47,7 @@ const StepDetails = styled.div` &, h4, h5 { - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-mb-2`} color: ${themeColor('pageContent')}; @@ -55,7 +55,7 @@ const StepDetails = styled.div` `; const Title = styled.h2` - ${tw`sw-body-md-highlight`} + ${tw`sw-typo-lg-semibold`} ${tw`sw-inline-block`} ${tw`sw-mb-4`} @@ -74,7 +74,7 @@ const Step = styled.li<{ stepNumber?: number }>` ${tw`sw-inline-block`} ${tw`sw-align-middle`} - ${tw`sw-heading-md`} + ${tw`sw-heading-lg`} ${tw`sw-mr-2 sw--mt-1`} } diff --git a/server/sonar-web/design-system/src/components/__tests__/Banner-test.tsx b/server/sonar-web/design-system/src/components/__tests__/Banner-test.tsx index 8a50ced11bc..f4ba243fd5d 100644 --- a/server/sonar-web/design-system/src/components/__tests__/Banner-test.tsx +++ b/server/sonar-web/design-system/src/components/__tests__/Banner-test.tsx @@ -44,7 +44,7 @@ it('should render with close button', async () => { function setupWithProps(props: Partial> = {}) { return renderWithContext( - {props.children ?? 'Test Message'} + {props.children ?? 'Test Message'} , ); } diff --git a/server/sonar-web/design-system/src/components/__tests__/NewCodeLegend-test.tsx b/server/sonar-web/design-system/src/components/__tests__/NewCodeLegend-test.tsx index da35487386d..c7929c29baa 100644 --- a/server/sonar-web/design-system/src/components/__tests__/NewCodeLegend-test.tsx +++ b/server/sonar-web/design-system/src/components/__tests__/NewCodeLegend-test.tsx @@ -26,8 +26,7 @@ it('should render NewCodeLegend', () => { render(); expect(screen.getByText('the text')).toHaveStyle({ - 'font-size': tailwindBaseConfig.theme.fontSize.sm[0], - 'line-height': tailwindBaseConfig.theme.fontSize.sm[1], + font: 'var(--echoes-typography-text-default-regular)', 'margin-left': tailwindBaseConfig.theme.spacing[2], }); }); diff --git a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/CodeSnippet-test.tsx.snap b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/CodeSnippet-test.tsx.snap index 838e266cad2..6b27c088c74 100644 --- a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/CodeSnippet-test.tsx.snap +++ b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/CodeSnippet-test.tsx.snap @@ -35,10 +35,7 @@ exports[`should highlight code content correctly 1`] = ` -ms-flex-align: center; align-items: center; height: 2.25rem; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 600; + font: var(--echoes-typography-text-default-semi-bold); padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; @@ -54,10 +51,7 @@ exports[`should highlight code content correctly 1`] = ` -moz-user-select: none; -ms-user-select: none; user-select: none; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); right: 1.5rem; top: 1.5rem; position: absolute; @@ -96,10 +90,7 @@ exports[`should highlight code content correctly 1`] = ` } .emotion-6 code { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-weight: 400; + font: var(--echoes-typography-code-default); background: rgb(252,252,253); color: rgb(51,53,60); } @@ -121,10 +112,7 @@ exports[`should highlight code content correctly 1`] = ` } .emotion-6 .hljs-comment { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-style: italic; + font: var(--echoes-typography-code-comment); color: rgb(109,111,119); } @@ -249,10 +237,7 @@ exports[`should show full size when multiline with no editing 1`] = ` -ms-flex-align: center; align-items: center; height: 2.25rem; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 600; + font: var(--echoes-typography-text-default-semi-bold); padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; @@ -268,10 +253,7 @@ exports[`should show full size when multiline with no editing 1`] = ` -moz-user-select: none; -ms-user-select: none; user-select: none; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); right: 1.5rem; top: 1.5rem; position: absolute; @@ -310,10 +292,7 @@ exports[`should show full size when multiline with no editing 1`] = ` } .emotion-6 code { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-weight: 400; + font: var(--echoes-typography-code-default); background: rgb(252,252,253); color: rgb(51,53,60); } @@ -335,10 +314,7 @@ exports[`should show full size when multiline with no editing 1`] = ` } .emotion-6 .hljs-comment { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-style: italic; + font: var(--echoes-typography-code-comment); color: rgb(109,111,119); } @@ -465,10 +441,7 @@ exports[`should show reduced size when single line with no editing 1`] = ` -ms-flex-align: center; align-items: center; height: 2.25rem; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 600; + font: var(--echoes-typography-text-default-semi-bold); padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; @@ -484,10 +457,7 @@ exports[`should show reduced size when single line with no editing 1`] = ` -moz-user-select: none; -ms-user-select: none; user-select: none; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); right: 1.5rem; top: 1.5rem; position: absolute; @@ -528,10 +498,7 @@ exports[`should show reduced size when single line with no editing 1`] = ` } .emotion-6 code { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-weight: 400; + font: var(--echoes-typography-code-default); background: rgb(252,252,253); color: rgb(51,53,60); } @@ -553,10 +520,7 @@ exports[`should show reduced size when single line with no editing 1`] = ` } .emotion-6 .hljs-comment { - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-style: italic; + font: var(--echoes-typography-code-comment); color: rgb(109,111,119); } diff --git a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/Histogram-test.tsx.snap b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/Histogram-test.tsx.snap index 8842fe3afeb..8e31fe80996 100644 --- a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/Histogram-test.tsx.snap +++ b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/Histogram-test.tsx.snap @@ -53,10 +53,7 @@ exports[`renders correctly with yValues 1`] = ` } .emotion-2 { - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); fill: rgb(106,117,144); } @@ -142,10 +139,7 @@ exports[`renders correctly with yValues and yTicks 1`] = ` } .emotion-2 { - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); fill: rgb(106,117,144); } @@ -261,10 +255,7 @@ exports[`renders correctly with yValues, yTicks, and yTooltips 1`] = ` } .emotion-2 { - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 0.875rem; - line-height: 1.25rem; - font-weight: 400; + font: var(--echoes-typography-text-default-regular); fill: rgb(106,117,144); } diff --git a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineFinding-test.tsx.snap b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineFinding-test.tsx.snap index 4b2719e5a41..7e61c609169 100644 --- a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineFinding-test.tsx.snap +++ b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineFinding-test.tsx.snap @@ -24,10 +24,7 @@ exports[`should render correctly as button 1`] = ` box-sizing: border-box; padding-top: 0.75rem; padding-bottom: 0.75rem; - font-family: Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; - font-size: 1rem; - line-height: 1.5rem; - font-weight: 600; + font: var(--echoes-typography-text-large-semi-bold); cursor: default; border: 1px solid rgb(253,162,155); color: rgb(62,67,87); diff --git a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineWrapper-test.tsx.snap b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineWrapper-test.tsx.snap index ca308966a94..bb8bcca7efc 100644 --- a/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineWrapper-test.tsx.snap +++ b/server/sonar-web/design-system/src/components/__tests__/__snapshots__/LineWrapper-test.tsx.snap @@ -9,10 +9,7 @@ exports[`should render with correct styling 1`] = ` -webkit-box-align: center; -ms-flex-align: center; align-items: center; - font-family: Ubuntu Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; - font-size: 0.875rem; - line-height: 1.125rem; - font-weight: 400; + font: var(--echoes-typography-code-default); } diff --git a/server/sonar-web/design-system/src/components/code-line/LineFinding.tsx b/server/sonar-web/design-system/src/components/code-line/LineFinding.tsx index 3d30a04bb25..42a89edee41 100644 --- a/server/sonar-web/design-system/src/components/code-line/LineFinding.tsx +++ b/server/sonar-web/design-system/src/components/code-line/LineFinding.tsx @@ -86,7 +86,7 @@ const LineFindingStyled = styled(BareButton)<{ selected: boolean }>` ${tw`sw-w-full`} ${tw`sw-box-border`} ${(props) => (props.selected ? tw`sw-py-3` : tw`sw-py-2`)}; - ${(props) => (props.selected ? tw`sw-body-md-highlight` : tw`sw-body-sm`)}; + ${(props) => (props.selected ? tw`sw-typo-lg-semibold` : tw`sw-typo-default`)}; ${(props) => (props.selected ? tw`sw-cursor-default` : tw`sw-cursor-pointer`)}; border: ${(props) => diff --git a/server/sonar-web/design-system/src/components/code-line/LineMarker.tsx b/server/sonar-web/design-system/src/components/code-line/LineMarker.tsx index 94517bc24ee..37db11650d7 100644 --- a/server/sonar-web/design-system/src/components/code-line/LineMarker.tsx +++ b/server/sonar-web/design-system/src/components/code-line/LineMarker.tsx @@ -59,7 +59,7 @@ function LineMarkerFunc( const Message = styled.div` ${tw`sw-absolute`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-rounded-1/2`} ${tw`sw-px-1`} ${tw`sw-left-0`} diff --git a/server/sonar-web/design-system/src/components/code-line/LineStyles.tsx b/server/sonar-web/design-system/src/components/code-line/LineStyles.tsx index c576954ab47..a4213b78d44 100644 --- a/server/sonar-web/design-system/src/components/code-line/LineStyles.tsx +++ b/server/sonar-web/design-system/src/components/code-line/LineStyles.tsx @@ -25,7 +25,7 @@ import { BareButton } from '../../sonar-aligned'; export const SCMHighlight = styled.h6` color: ${themeColor('tooltipHighlight')}; - ${tw`sw-body-sm-highlight`}; + ${tw`sw-typo-semibold`}; ${tw`sw-text-right`}; ${tw`sw-min-w-[6rem]`}; ${tw`sw-mr-4`}; diff --git a/server/sonar-web/design-system/src/components/icons/RequiredIcon.tsx b/server/sonar-web/design-system/src/components/icons/RequiredIcon.tsx index cf56db418b3..fe75c4bc716 100644 --- a/server/sonar-web/design-system/src/components/icons/RequiredIcon.tsx +++ b/server/sonar-web/design-system/src/components/icons/RequiredIcon.tsx @@ -26,7 +26,7 @@ export function RequiredIcon(props: React.ComponentPropsWithoutRef<'em'>) { } export const StyledEm = styled.em` - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-not-italic`} ${tw`sw-ml-2`} color: ${themeColor('inputRequired')}; diff --git a/server/sonar-web/design-system/src/components/input/DatePicker.tsx b/server/sonar-web/design-system/src/components/input/DatePicker.tsx index 89d4c415549..52b31445c44 100644 --- a/server/sonar-web/design-system/src/components/input/DatePicker.tsx +++ b/server/sonar-web/design-system/src/components/input/DatePicker.tsx @@ -157,7 +157,7 @@ export class DatePicker extends React.PureComponent {
css` width: var(--inputSize); transition: border-color 0.2s ease; - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-box-border`} ${tw`sw-rounded-2`} ${tw`sw-px-3 sw-py-2`} diff --git a/server/sonar-web/design-system/src/components/input/InputMultiSelect.tsx b/server/sonar-web/design-system/src/components/input/InputMultiSelect.tsx index 39fbfece029..83e3aeb24eb 100644 --- a/server/sonar-web/design-system/src/components/input/InputMultiSelect.tsx +++ b/server/sonar-web/design-system/src/components/input/InputMultiSelect.tsx @@ -39,7 +39,7 @@ export function InputMultiSelect(props: Props) { return ( css` ${tw`sw-flex sw-items-center sw-justify-between`} ${tw`sw-box-border`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-py-4 sw-pr-4`} ${tw`sw-w-full`} ${tw`sw-cursor-pointer`} diff --git a/server/sonar-web/design-system/src/components/subnavigation/SubnavigationSubheading.tsx b/server/sonar-web/design-system/src/components/subnavigation/SubnavigationSubheading.tsx index 1cf80e4e5e0..6b4ebff6bd3 100644 --- a/server/sonar-web/design-system/src/components/subnavigation/SubnavigationSubheading.tsx +++ b/server/sonar-web/design-system/src/components/subnavigation/SubnavigationSubheading.tsx @@ -24,7 +24,7 @@ import { themeColor, themeContrast } from '../../helpers/theme'; export const SubnavigationSubheading = styled.div` ${tw`sw-flex`} ${tw`sw-box-border`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-px-4 sw-pt-6 sw-pb-2`} ${tw`sw-w-full`} diff --git a/server/sonar-web/design-system/src/components/toast-message/__tests__/toast-utils-test.tsx b/server/sonar-web/design-system/src/components/toast-message/__tests__/toast-utils-test.tsx index 41d63e54447..ee77829bfa6 100644 --- a/server/sonar-web/design-system/src/components/toast-message/__tests__/toast-utils-test.tsx +++ b/server/sonar-web/design-system/src/components/toast-message/__tests__/toast-utils-test.tsx @@ -33,7 +33,7 @@ it('should call react-toastify with the right args', () => { addGlobalErrorMessage(error, { position: 'top-left' }); expect(toast).toHaveBeenCalledWith( -
+
error
, { icon: , type: 'error', position: 'top-left' }, @@ -42,7 +42,7 @@ it('should call react-toastify with the right args', () => { addGlobalSuccessMessage('it worked'); expect(toast).toHaveBeenCalledWith( -
+
it worked
, { icon: , type: 'success' }, diff --git a/server/sonar-web/design-system/src/components/toast-message/toast-utils.tsx b/server/sonar-web/design-system/src/components/toast-message/toast-utils.tsx index 4aba037b8a0..128ae48ce7c 100644 --- a/server/sonar-web/design-system/src/components/toast-message/toast-utils.tsx +++ b/server/sonar-web/design-system/src/components/toast-message/toast-utils.tsx @@ -45,7 +45,10 @@ export function dismissAllGlobalMessages() { function createToast(message: ReactNode, level: MessageLevel, overrides?: ToastOptions) { return toast( -
+
{message}
, { diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessage.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessage.tsx index 6b05991c12b..792f0a2c8dd 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessage.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessage.tsx @@ -146,7 +146,7 @@ export const StyledFlag = styled.div<{ ${tw`sw-overflow-auto`} ${tw`sw-text-left`} ${tw`sw-px-3 sw-py-2`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} color: ${themeContrast('flagMessageBackground')}; } `; diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessageV2.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessageV2.tsx index 6fe74085ab2..89c765fdb18 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessageV2.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/FlagMessageV2.tsx @@ -158,14 +158,14 @@ const IconWrapper = styled.div<{ `; const Title = styled.span` - ${tw`sw-body-md-highlight`} + ${tw`sw-typo-lg-semibold`} color: ${themeColor('flagMessageText')}; `; const StyledFlagContent = styled.div` ${tw`sw-pt-1/2`} ${tw`sw-overflow-auto`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} `; const DismissButton = styled.button<{ diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/Table.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/Table.tsx index 6de60ff4b2e..8fee1ad857f 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/Table.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/Table.tsx @@ -84,7 +84,7 @@ export function Table(props: Readonly) { {caption && ( -
+
{caption}
@@ -286,13 +286,13 @@ const StyledTable = styled.table<{ gridTemplate?: string }>` const CellComponentStyled = styled.td` color: ${themeColor('pageContent')}; ${tw`sw-items-center`} - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} ${tw`sw-py-4 sw-px-2`} ${tw`sw-align-middle`} thead > tr > & { color: ${themeColor('pageTitle')}; - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} } `; diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/buttons/Button.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/buttons/Button.tsx index d36d304732a..8c3a171086a 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/buttons/Button.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/buttons/Button.tsx @@ -132,7 +132,7 @@ export const buttonStyle = (props: ThemedProps) => css` ${tw`sw-inline-flex sw-items-center`} ${tw`sw-h-control`} - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} ${tw`sw-py-2 sw-px-4`} ${tw`sw-rounded-2`} ${tw`sw-cursor-pointer`} diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/typography/Note.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/typography/Note.tsx index 8ae52b955d5..279def52d0e 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/typography/Note.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/typography/Note.tsx @@ -25,5 +25,5 @@ import { themeColor } from '../../../helpers'; export const Note = styled.span` color: ${themeColor('pageContentLight')}; - ${tw`sw-body-sm`} + ${tw`sw-typo-default`} `; diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/typography/Title.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/typography/Title.tsx index 1abade832f7..30f71f3b4af 100644 --- a/server/sonar-web/design-system/src/sonar-aligned/components/typography/Title.tsx +++ b/server/sonar-web/design-system/src/sonar-aligned/components/typography/Title.tsx @@ -25,7 +25,7 @@ import { themeColor } from '../../../helpers/theme'; /** @deprecated Use Heading from Echoes instead. */ export const Title = styled.h1` - ${tw`sw-heading-lg`} + ${tw`sw-heading-xl`} ${tw`sw-mb-4`} color: ${themeColor('pageTitle')}; `; @@ -33,7 +33,7 @@ export const Title = styled.h1` /** @deprecated Use Heading from Echoes instead. */ export const SubTitle = styled.h2` - ${tw`sw-heading-md`} + ${tw`sw-heading-lg`} ${tw`sw-mb-4`} color: ${themeColor('pageTitle')}; `; @@ -43,13 +43,13 @@ export const SubTitle = styled.h2` export const HeadingDark = styled.h2` color: ${themeColor('pageContentDark')}; - ${tw`sw-body-sm-highlight`} + ${tw`sw-typo-semibold`} `; /** @deprecated Use Heading from Echoes instead. */ export const SubHeading = styled.h3` - ${tw`sw-body-md-highlight`} + ${tw`sw-typo-lg-semibold`} ${tw`sw-mb-2`} color: ${themeColor('pageContent')}; `; diff --git a/server/sonar-web/src/main/js/app/components/FormattingHelp.tsx b/server/sonar-web/src/main/js/app/components/FormattingHelp.tsx index 48b1869c56d..ddb3bbf1659 100644 --- a/server/sonar-web/src/main/js/app/components/FormattingHelp.tsx +++ b/server/sonar-web/src/main/js/app/components/FormattingHelp.tsx @@ -34,7 +34,7 @@ const COLUMNS = ['50%', '50%']; export default function FormattingHelp() { return ( - + Formatting Syntax - + {appState?.productionDatabase === false && (

- + {intl.formatMessage({ id: 'footer.production_database_warning' })} diff --git a/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx b/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx index 6053ebd3de9..fec94ea941a 100644 --- a/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx @@ -35,7 +35,7 @@ export default function NonAdminPagesContainer() { if (component && isApplication(component.qualifier) && !component.canBrowseAllChildProjects) { return ( diff --git a/server/sonar-web/src/main/js/app/components/NotFound.tsx b/server/sonar-web/src/main/js/app/components/NotFound.tsx index 2eb7ca4f6cf..80559d2dd77 100644 --- a/server/sonar-web/src/main/js/app/components/NotFound.tsx +++ b/server/sonar-web/src/main/js/app/components/NotFound.tsx @@ -26,7 +26,7 @@ export default function NotFound() { return ( <> - + {translate('page_not_found')} diff --git a/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx b/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx index 565db26147f..a94b983f60b 100644 --- a/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx +++ b/server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx @@ -72,7 +72,7 @@ export function PluginRiskConsent(props: Readonly) { {translate('plugin_risk_consent.title')} diff --git a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx index 9835794633f..7e669fc20a0 100644 --- a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx +++ b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx @@ -39,7 +39,7 @@ export interface ResetPasswordProps { export function ResetPassword({ currentUser }: Readonly) { return ( - +

diff --git a/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx b/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx index 63d1429414a..fca28a707dd 100644 --- a/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx +++ b/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx @@ -72,7 +72,7 @@ export default function IndexationNotificationRenderer(props: IndexationNotifica return (
+ diff --git a/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx b/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx index e66abae6eb9..c4387b5af82 100644 --- a/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx +++ b/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx @@ -52,7 +52,7 @@ export function PromotionNotification(props: CurrentUserContextInterface) {
- {translate('promotion.sonarlint.title')} + {translate('promotion.sonarlint.title')}

{translate('promotion.sonarlint.content')}

diff --git a/server/sonar-web/src/main/js/apps/account/Account.tsx b/server/sonar-web/src/main/js/apps/account/Account.tsx index 84a1b46b1f5..66bc4c26dd5 100644 --- a/server/sonar-web/src/main/js/apps/account/Account.tsx +++ b/server/sonar-web/src/main/js/apps/account/Account.tsx @@ -57,7 +57,7 @@ export default function Account() { )} - + - {user.name} + {user.name} ); } diff --git a/server/sonar-web/src/main/js/apps/account/notifications/GlobalNotifications.tsx b/server/sonar-web/src/main/js/apps/account/notifications/GlobalNotifications.tsx index aa7f9a13d9c..741e133ade1 100644 --- a/server/sonar-web/src/main/js/apps/account/notifications/GlobalNotifications.tsx +++ b/server/sonar-web/src/main/js/apps/account/notifications/GlobalNotifications.tsx @@ -42,7 +42,7 @@ export default function GlobalNotifications(props: Readonly) { {!props.header && ( -
{translate('notifications.send_email')}
+
{translate('notifications.send_email')}
)}
diff --git a/server/sonar-web/src/main/js/apps/account/notifications/Notifications.tsx b/server/sonar-web/src/main/js/apps/account/notifications/Notifications.tsx index cce33e291ee..4d272bb374d 100644 --- a/server/sonar-web/src/main/js/apps/account/notifications/Notifications.tsx +++ b/server/sonar-web/src/main/js/apps/account/notifications/Notifications.tsx @@ -48,10 +48,10 @@ export function Notifications({ const header = emailOnly ? undefined : ( - + {channels.map((channel) => ( - ))} diff --git a/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.tsx b/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.tsx index 48bfa4f5e8c..ac4a396384a 100644 --- a/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.tsx +++ b/server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.tsx @@ -70,7 +70,7 @@ export default function ProjectNotifications({ {project.projectName} {!header && ( -
{translate('notifications.send_email')}
+
{translate('notifications.send_email')}
)}
{translate('events')}{translate('events')} + {translate('notification.channel', channel)}
- {translate('my_profile.login')}: + {translate('my_profile.login')}: {currentUser.login && {currentUser.login}} {isExternalProvider && } @@ -69,7 +69,7 @@ export function Profile({ currentUser }: ProfileProps) { return (
- {translate('my_profile.email')}: + {translate('my_profile.email')}: {currentUser.email}
); diff --git a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx index 49d2bc1d7c7..841ff8048f7 100644 --- a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx +++ b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx @@ -80,7 +80,7 @@ export default function ProjectCard({ project }: Readonly) { - {formatted} + {formatted} diff --git a/server/sonar-web/src/main/js/apps/account/security/Tokens.tsx b/server/sonar-web/src/main/js/apps/account/security/Tokens.tsx index f177b304a49..a0d7051dda6 100644 --- a/server/sonar-web/src/main/js/apps/account/security/Tokens.tsx +++ b/server/sonar-web/src/main/js/apps/account/security/Tokens.tsx @@ -35,7 +35,7 @@ export default function Tokens({ login }: Readonly) { {translate('my_account.security')} -
+
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx index a60cd4d2b49..cadc1390946 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx @@ -78,7 +78,7 @@ export default function AuditAppRenderer(props: Readonly) return ( - + {translate('audit_logs.page')} diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx index c5b584c14ea..dca8016317f 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx @@ -228,7 +228,7 @@ export class BackgroundTasksApp extends React.PureComponent { return ( - + diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/StatPendingCount.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/StatPendingCount.tsx index 129f1d84c68..60c45253ebb 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/StatPendingCount.tsx +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/StatPendingCount.tsx @@ -38,7 +38,7 @@ function StatPendingCount({ appState, onCancelAllPending, pendingCount }: Readon return (
- {pendingCount} + {pendingCount} {translate('background_tasks.pending')} {appState.canAdmin && pendingCount > 0 && ( - {formatMeasure(pendingTime, 'MILLISEC')} + {formatMeasure(pendingTime, 'MILLISEC')} {translate('background_tasks.pending_time')} {failingCount > 0 ? ( {failingCount} ) : ( - {failingCount} + {failingCount} )} {translate('background_tasks.failures')} diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.tsx index c746616f053..690495b61ae 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.tsx +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.tsx @@ -34,7 +34,7 @@ export interface Props { export default function Stats({ component, pendingCount, pendingTime, ...props }: Readonly) { return ( -
+
{!component && ( <> diff --git a/server/sonar-web/src/main/js/apps/change-admin-password/ChangeAdminPasswordAppRenderer.tsx b/server/sonar-web/src/main/js/apps/change-admin-password/ChangeAdminPasswordAppRenderer.tsx index 97019251bdd..fbd6149c099 100644 --- a/server/sonar-web/src/main/js/apps/change-admin-password/ChangeAdminPasswordAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/change-admin-password/ChangeAdminPasswordAppRenderer.tsx @@ -66,7 +66,7 @@ export default function ChangeAdminPasswordAppRenderer( - + {success ? ( diff --git a/server/sonar-web/src/main/js/apps/code/components/CodeAppRenderer.tsx b/server/sonar-web/src/main/js/apps/code/components/CodeAppRenderer.tsx index 9b622c22503..806f2912122 100644 --- a/server/sonar-web/src/main/js/apps/code/components/CodeAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/code/components/CodeAppRenderer.tsx @@ -142,7 +142,7 @@ export default function CodeAppRenderer(props: Readonly) { const isPortfolio = isPortfolioLike(qualifier); return ( - + @@ -203,7 +203,7 @@ export default function CodeAppRenderer(props: Readonly) {
{(showComponentList || showSearch) && ( -
+
{ )} - +
) { return ( -
+
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/ProfileFacet.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/ProfileFacet.tsx index 4d16aa93642..a3713635afc 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/ProfileFacet.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/ProfileFacet.tsx @@ -110,7 +110,7 @@ export default class ProfileFacet extends React.PureComponent { { ) { const TAGS_TO_DISPLAY = 1; return ( - + {/* Type */} ) { {/* Tags */}
0 ? allTags : [translate('coding_rules.no_tags')]} diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsHeaderMeta.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsHeaderMeta.tsx index f4a47bcbe32..b8e472a8ee4 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsHeaderMeta.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsHeaderMeta.tsx @@ -38,7 +38,7 @@ export default function RuleDetailsHeaderMeta(props: Readonly) { const externalEngine = ruleDetails.repo.replace(new RegExp(`^${EXTERNAL_RULE_REPO_PREFIX}`), ''); return ( - + {/* Template */} {!ruleDetails.isExternal && ruleDetails.isTemplate && ( <> diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx index cb4e432e848..fbcd523b835 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx @@ -243,11 +243,7 @@ export default function RuleListItem(props: Readonly) {
{renderActivation()} - + {rule.name}
@@ -263,13 +259,13 @@ export default function RuleListItem(props: Readonly) {
-
+
{rule.impacts.length > 0 && ( )}
- +
  • {rule.langName}
  • @@ -324,8 +320,8 @@ export default function RuleListItem(props: Readonly) {
  • diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx index f2b71316ca8..a3395ea2989 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx @@ -200,7 +200,7 @@ export default function ComponentMeasuresApp() { - + {measures.length > 0 ? ( diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureHeader.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureHeader.tsx index ccece093bb7..1560017daaa 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureHeader.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureHeader.tsx @@ -59,13 +59,13 @@ export default function MeasureHeader(props: Readonly) {
    - {title} + {title}
    ) {
    {bubbleMetrics.colors && ( - + {translate('component_measures.legend.color')} {' '} {bubbleMetrics.colors.length > 1 @@ -209,7 +209,7 @@ export default function BubbleChartView(props: Readonly) { : getLocalizedMetricName(bubbleMetrics.colors[0])} )} - + {translate('component_measures.legend.size')} {' '} {getLocalizedMetricName(bubbleMetrics.size)} @@ -231,7 +231,7 @@ export default function BubbleChartView(props: Readonly) { } return ( - + {renderChartHeader()} {renderBubbleChart()}
    {getLocalizedMetricName(bubbleMetrics.x)}
    diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx b/server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx index b52c5f101cf..674b934c3b5 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx @@ -55,9 +55,11 @@ export default function ComponentsList({ components, metric, metrics, ...props } otherMetrics.length > 0 && ( - {getLocalizedMetricName(metric)} + + {getLocalizedMetricName(metric)} + {otherMetrics.map((metric) => ( - + {getLocalizedMetricName(metric)} ))} diff --git a/server/sonar-web/src/main/js/apps/component-measures/sidebar/DomainSubnavigation.tsx b/server/sonar-web/src/main/js/apps/component-measures/sidebar/DomainSubnavigation.tsx index c7a46d59b37..a2909d2340e 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/sidebar/DomainSubnavigation.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/sidebar/DomainSubnavigation.tsx @@ -78,7 +78,7 @@ export default function DomainSubnavigation(props: Readonly) { - {getLocalizedMetricDomain(domain.name)} + {getLocalizedMetricDomain(domain.name)} {helper && ( diff --git a/server/sonar-web/src/main/js/apps/create/project/Azure/AzurePersonalAccessTokenForm.tsx b/server/sonar-web/src/main/js/apps/create/project/Azure/AzurePersonalAccessTokenForm.tsx index fce1c4f4f2a..26a4acdd163 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Azure/AzurePersonalAccessTokenForm.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Azure/AzurePersonalAccessTokenForm.tsx @@ -77,10 +77,10 @@ export default function AzurePersonalAccessTokenForm({ return (
    - + {translate('onboarding.create_project.pat_form.title')} - + {translate('onboarding.create_project.pat_form.help.azure')} diff --git a/server/sonar-web/src/main/js/apps/create/project/Azure/AzureProjectCreateRenderer.tsx b/server/sonar-web/src/main/js/apps/create/project/Azure/AzureProjectCreateRenderer.tsx index 4113350fa63..422dab7e26d 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Azure/AzureProjectCreateRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Azure/AzureProjectCreateRenderer.tsx @@ -93,7 +93,7 @@ export default function AzureProjectCreateRenderer(
    {translate('onboarding.create_project.azure.title')} - + {isMonorepoSupported ? ( - + {translate('onboarding.create_project.pat_form.title')} - + {translate('onboarding.create_project.pat_form.help.bitbucket_cloud')} diff --git a/server/sonar-web/src/main/js/apps/create/project/BitbucketCloud/BitbucketCloudProjectCreateRender.tsx b/server/sonar-web/src/main/js/apps/create/project/BitbucketCloud/BitbucketCloudProjectCreateRender.tsx index 4c238b03e48..a2c3e2cc7c2 100644 --- a/server/sonar-web/src/main/js/apps/create/project/BitbucketCloud/BitbucketCloudProjectCreateRender.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/BitbucketCloud/BitbucketCloudProjectCreateRender.tsx @@ -77,7 +77,7 @@ export default function BitbucketCloudProjectCreateRenderer( {translate('onboarding.create_project.bitbucketcloud.title')} - + {isMonorepoSupported ? ( - {translate('no_results')} + {translate('no_results')}
    ) : (
      diff --git a/server/sonar-web/src/main/js/apps/create/project/BitbucketServer/BitbucketProjectCreateRenderer.tsx b/server/sonar-web/src/main/js/apps/create/project/BitbucketServer/BitbucketProjectCreateRenderer.tsx index 9c4eb92bbba..c6d24ce76ef 100644 --- a/server/sonar-web/src/main/js/apps/create/project/BitbucketServer/BitbucketProjectCreateRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/BitbucketServer/BitbucketProjectCreateRenderer.tsx @@ -73,7 +73,7 @@ export default function BitbucketProjectCreateRenderer(
      {translate('onboarding.create_project.bitbucket.title')} - + {isMonorepoSupported ? ( - + {translate('onboarding.create_project.pat_form.title')} - + {translate('onboarding.create_project.pat_form.help.bitbucket')} diff --git a/server/sonar-web/src/main/js/apps/create/project/CreateProjectModeSelection.tsx b/server/sonar-web/src/main/js/apps/create/project/CreateProjectModeSelection.tsx index ebb236a41a2..f654001be48 100644 --- a/server/sonar-web/src/main/js/apps/create/project/CreateProjectModeSelection.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/CreateProjectModeSelection.tsx @@ -144,7 +144,7 @@ export function CreateProjectModeSelection(props: CreateProjectModeSelectionProp const filteredAlm = separateAvailableOptions(almCounts); return ( -
      +
      {translate('onboarding.create_project.select_method')} diff --git a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreateRenderer.tsx b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreateRenderer.tsx index 45026131cf5..18d2ead9a5c 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreateRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreateRenderer.tsx @@ -114,7 +114,7 @@ export default function GitHubProjectCreateRenderer( <>
      {translate('onboarding.create_project.github.title')} - + {isMonorepoSupported ? ( - + {translate('onboarding.create_project.pat_form.title')} - + {translate('onboarding.create_project.pat_form.help.gitlab')} diff --git a/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreateRenderer.tsx b/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreateRenderer.tsx index a496c18867c..974471703d2 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreateRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreateRenderer.tsx @@ -102,7 +102,7 @@ export default function GitlabProjectCreateRenderer( <>
      {translate('onboarding.create_project.gitlab.title')} - + {isMonorepoSupported ? ( - {translate('no_results')} + {translate('no_results')}
      ) : (
        diff --git a/server/sonar-web/src/main/js/apps/create/project/components/AlmRepoItem.tsx b/server/sonar-web/src/main/js/apps/create/project/components/AlmRepoItem.tsx index 098dec33862..ff1a907b764 100644 --- a/server/sonar-web/src/main/js/apps/create/project/components/AlmRepoItem.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/components/AlmRepoItem.tsx @@ -99,24 +99,22 @@ export default function AlmRepoItem({ /> {sqProjectKey ? ( - + {primaryTextNode} ) : ( - - {primaryTextNode} - + {primaryTextNode} )}
      - {secondaryTextNode} + {secondaryTextNode}
      {almUrl !== undefined && (
      e.stopPropagation()} target="_blank" to={almUrl} @@ -130,7 +128,7 @@ export default function AlmRepoItem({ {sqProjectKey ? (
      - + {translate('onboarding.create_project.repository_imported')}
      diff --git a/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx b/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx index 57ae8afee50..04bfcf42525 100644 --- a/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx @@ -185,7 +185,7 @@ export default function NewCodeDefinitionSelection(props: Props) {
      ) { {repositories.length === 0 ? (
      - + {formatMessage({ id: 'no_results' })}
      @@ -143,7 +143,7 @@ export default function RepositoryList(props: Readonly) { {selected.size > 0 && ( - + ) { return (
      ) {
      diff --git a/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx b/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx index 6e79893b4eb..22414a46fca 100644 --- a/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx +++ b/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx @@ -47,7 +47,7 @@ export default function GroupsApp() { return ( - +
      diff --git a/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx b/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx index 13e0be93493..f7aa1b2d1a9 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx +++ b/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx @@ -82,7 +82,7 @@ export default function ListItem(props: Readonly) { return ( -
      {name}
      +
      {name}
      {group.default && ({translate('default')})} {managed && renderIdentityProviderIcon(manageProvider)} {isGroupLocal() && {translate('local')}} diff --git a/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx b/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx index 4da4b20756a..2fd9f000a79 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/ComponentBreadcrumbs.tsx @@ -58,7 +58,7 @@ export default function ComponentBreadcrumbs({ 'issues.on_file_x', `${displayProject ? issue.projectName + ', ' : ''}${componentName}`, )} - className="sw-flex sw-box-border sw-body-sm sw-w-full sw-pb-2 sw-pt-4 sw-truncate" + className="sw-flex sw-box-border sw-typo-default sw-w-full sw-pb-2 sw-pt-4 sw-truncate" > {displayProject && ( diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx index 23f787fd285..c9d1aa14aa0 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx @@ -166,7 +166,7 @@ export default class IssueHeader extends React.PureComponent {
      - + { const { user, type, diffs, date, html, key, updatable, markdown } = historyElt; return ( -
    • -
      +
    • +
      {user.name && (
      - + {user.active ? user.name : translateWithParameters('user.x_deleted', user.name)}
      @@ -113,7 +113,7 @@ export default function IssueReviewHistory(props: HotspotReviewHistoryProps) { {type === ReviewHistoryType.Comment && key && html && markdown && (
      diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueReviewHistoryAndComments.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueReviewHistoryAndComments.tsx index 286d41fb721..eaf4194e02f 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueReviewHistoryAndComments.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueReviewHistoryAndComments.tsx @@ -79,7 +79,7 @@ export default class IssueReviewHistoryAndComments extends React.PureComponent

      diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx index 30af209bcb4..c9995f74bc7 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx @@ -1314,7 +1314,7 @@ export class App extends React.PureComponent { return ( - +

      {openIssue ? ( - + {translate('issues.no_issues')}
      diff --git a/server/sonar-web/src/main/js/apps/issues/components/NoMyIssues.tsx b/server/sonar-web/src/main/js/apps/issues/components/NoMyIssues.tsx index 3ebb196a69e..1926d410bf9 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/NoMyIssues.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/NoMyIssues.tsx @@ -24,7 +24,7 @@ import { translate } from '../../../helpers/l10n'; export default function NoMyIssues() { return (
      - + {translate('issues.no_my_issues')}
      diff --git a/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx b/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx index c33c4e5d548..c77ad71029c 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/PageActions.tsx @@ -35,7 +35,7 @@ export default function PageActions(props: PageActionsProps) { const { canSetHome, effortTotal, paging } = props; return ( -
      +
      diff --git a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemLocationsQuantity.tsx b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemLocationsQuantity.tsx index 43b7d9d983a..5dc6902547c 100644 --- a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemLocationsQuantity.tsx +++ b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueItemLocationsQuantity.tsx @@ -34,7 +34,7 @@ export default function IssueItemLocationsQuantity(props: Props) {
      - {quantity} {message} + {quantity} {message}
      ); diff --git a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocation.tsx b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocation.tsx index 61c41a0a45e..0a4a2f4e719 100644 --- a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocation.tsx +++ b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocation.tsx @@ -57,9 +57,12 @@ export default function IssueLocation(props: Readonly) { return ( (node.current = n)} > diff --git a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocationsCrossFile.tsx b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocationsCrossFile.tsx index bb2f02a738c..a9f6ddb40d5 100644 --- a/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocationsCrossFile.tsx +++ b/server/sonar-web/src/main/js/apps/issues/issues-subnavigation/IssueLocationsCrossFile.tsx @@ -132,7 +132,7 @@ export default class IssueLocationsCrossFile extends PureComponent return (
      - + {collapsePath(group.componentName ?? '', COLLAPSE_PATH_LIMIT)} {group.locations.length > 0 && ( diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/FiltersHeader.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/FiltersHeader.tsx index 7c8abd5f118..a2c414dd1d1 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/FiltersHeader.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/FiltersHeader.tsx @@ -31,7 +31,7 @@ export function FiltersHeader({ displayReset, onReset }: Props) { return (
      - + {displayReset && (
    {intl.formatMessage({ id: 'overview.sonarlint_ad.learn_more' })} @@ -99,7 +99,7 @@ export default function SonarLintAd({ status }: Readonly) { function TickLink({ className, message }: Readonly<{ className?: string; message: string }>) { return ( - + {message} diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Home.tsx b/server/sonar-web/src/main/js/apps/permission-templates/components/Home.tsx index a7786499ffe..15705cbc40c 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/Home.tsx +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Home.tsx @@ -36,7 +36,7 @@ interface Props { export default function Home(props: Props) { return ( - +
    diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.tsx b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.tsx index d4f96c2fa0c..22d0ef3b1f9 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.tsx +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.tsx @@ -337,7 +337,7 @@ export default class Template extends React.PureComponent { return ( - + { ); return ( - + { return ( - + {this.props.initializing ? ( -
    +
    ) : ( -
    +
    {translate('no_results')}
    )} @@ -154,7 +154,7 @@ export default class ProjectActivityAnalysesList extends React.PureComponent {newCodePeriod.baselineAnalysisKey !== undefined && newCodePeriod.firstNewCodeAnalysisKey === undefined && ( - + {translate('project_activity.new_code_period_start')} @@ -199,7 +199,7 @@ export default class ProjectActivityAnalysesList extends React.PureComponent -
    +
      diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysis.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysis.tsx index 1597f4291ed..f7f790ca090 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysis.tsx +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysis.tsx @@ -121,7 +121,7 @@ function ProjectActivityAnalysis(props: ProjectActivityAnalysisProps) { ref={(ref) => (node = ref)} >
      - + {(formattedTime) => ( @@ -201,7 +201,7 @@ function ProjectActivityAnalysis(props: ProjectActivityAnalysisProps) { {isBaseline && ( - + {translate('project_activity.new_code_period_start')} diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityPageFilters.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityPageFilters.tsx index 7b76d0800d8..5a1bcea0ee8 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityPageFilters.tsx +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityPageFilters.tsx @@ -62,7 +62,7 @@ export default function ProjectActivityPageFilters(props: ProjectActivityPageFil {!isPortfolioLike(project.qualifier) && ( handleCategoryChange(data)} options={options} diff --git a/server/sonar-web/src/main/js/apps/projectBranches/ProjectBranchesApp.tsx b/server/sonar-web/src/main/js/apps/projectBranches/ProjectBranchesApp.tsx index 4eda24865bd..90f0f0bdef2 100644 --- a/server/sonar-web/src/main/js/apps/projectBranches/ProjectBranchesApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectBranches/ProjectBranchesApp.tsx @@ -37,7 +37,7 @@ function ProjectBranchesApp(props: ProjectBranchesAppProps) { return ( - +
      {translate('project_branch_pull_request.page')} diff --git a/server/sonar-web/src/main/js/apps/projectDeletion/App.tsx b/server/sonar-web/src/main/js/apps/projectDeletion/App.tsx index d104562c702..87a48fd31e6 100644 --- a/server/sonar-web/src/main/js/apps/projectDeletion/App.tsx +++ b/server/sonar-web/src/main/js/apps/projectDeletion/App.tsx @@ -36,7 +36,7 @@ export default function App() { return ( - +
      diff --git a/server/sonar-web/src/main/js/apps/projectDump/ProjectDumpApp.tsx b/server/sonar-web/src/main/js/apps/projectDump/ProjectDumpApp.tsx index 7c000544a0f..bae2834be5d 100644 --- a/server/sonar-web/src/main/js/apps/projectDump/ProjectDumpApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectDump/ProjectDumpApp.tsx @@ -40,7 +40,7 @@ export function ProjectDumpApp({ component, hasFeature }: Readonly) { return ( - +
      {translate('project_dump.page')} @@ -61,7 +61,7 @@ export function ProjectDumpApp({ component, hasFeature }: Readonly) { <>
      -

      {translate('project_dump.export')}

      +

      {translate('project_dump.export')}

      diff --git a/server/sonar-web/src/main/js/apps/projectDump/components/Import.tsx b/server/sonar-web/src/main/js/apps/projectDump/components/Import.tsx index 165815cefc3..2f9a9d73b34 100644 --- a/server/sonar-web/src/main/js/apps/projectDump/components/Import.tsx +++ b/server/sonar-web/src/main/js/apps/projectDump/components/Import.tsx @@ -196,7 +196,7 @@ export default function Import(props: Readonly) { return ( <>
      -

      {translate('project_dump.import')}

      +

      {translate('project_dump.import')}

      diff --git a/server/sonar-web/src/main/js/apps/projectInformation/ProjectInformationApp.tsx b/server/sonar-web/src/main/js/apps/projectInformation/ProjectInformationApp.tsx index a6cd0ba1bba..764111dae0e 100644 --- a/server/sonar-web/src/main/js/apps/projectInformation/ProjectInformationApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectInformation/ProjectInformationApp.tsx @@ -74,7 +74,7 @@ function ProjectInformationApp(props: Props) {
      -
      +
      {translate(isApp ? 'application' : 'project', 'info.title')} diff --git a/server/sonar-web/src/main/js/apps/projectKey/ProjectKeyApp.tsx b/server/sonar-web/src/main/js/apps/projectKey/ProjectKeyApp.tsx index d7bb648fc4b..c9577dffcec 100644 --- a/server/sonar-web/src/main/js/apps/projectKey/ProjectKeyApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectKey/ProjectKeyApp.tsx @@ -45,7 +45,7 @@ function ProjectKeyApp({ component, router }: Props) { return ( - +
      {translate('update_key.page')}
      {translate('update_key.page.description')}
      diff --git a/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx b/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx index 936480ca774..7d20cbb1b82 100644 --- a/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx +++ b/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx @@ -65,12 +65,12 @@ export default function UpdateForm(props: UpdateFormProps) {
      {translate('update_key.old_key')} {': '} - {component.key} + {component.key}
      {translate('update_key.new_key')} {': '} - {newKey} + {newKey}
      } diff --git a/server/sonar-web/src/main/js/apps/projectLinks/ProjectLinksApp.tsx b/server/sonar-web/src/main/js/apps/projectLinks/ProjectLinksApp.tsx index 21dfb68add7..eb6e1fce254 100644 --- a/server/sonar-web/src/main/js/apps/projectLinks/ProjectLinksApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectLinks/ProjectLinksApp.tsx @@ -103,7 +103,7 @@ export class ProjectLinksApp extends React.PureComponent { const { loading, links } = this.state; return ( - +
      diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchNewCodeDefinitionSettingModal.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchNewCodeDefinitionSettingModal.tsx index 6e8dd56f300..31360afa2ad 100644 --- a/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchNewCodeDefinitionSettingModal.tsx +++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchNewCodeDefinitionSettingModal.tsx @@ -175,7 +175,7 @@ export default class BranchNewCodeDefinitionSettingModal extends React.PureCompo const formBody = ( - +

      {translate('baseline.new_code_period_for_branch_x.question')}

      - + diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/ProjectQualityGateAppRenderer.tsx b/server/sonar-web/src/main/js/apps/projectQualityGate/ProjectQualityGateAppRenderer.tsx index 50528c55e9b..fb03e5d49ae 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityGate/ProjectQualityGateAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/projectQualityGate/ProjectQualityGateAppRenderer.tsx @@ -128,7 +128,7 @@ export default function ProjectQualityGateAppRenderer(props: ProjectQualityGateA return ( - + diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx b/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx index 788c1c708cb..6cf48a25acf 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx @@ -92,7 +92,7 @@ export default function ProjectQualityProfilesAppRenderer( return ( - + diff --git a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx index 0a2ea49e239..3d9eeead93c 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx @@ -314,7 +314,7 @@ export class AllProjects extends React.PureComponent { - + {this.renderSide()}
      diff --git a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx index 9427e0e0053..a6c279a5fc4 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx @@ -29,10 +29,10 @@ export default function EmptyFavoriteSearch({ query }: { query: Query }) { return (
      - + {translate('no_results_search.favorites')} -
      +
      - + {showNewProjectButton ? translate('projects.no_projects.empty_instance.new_project') : translate('projects.no_projects.empty_instance')} {showNewProjectButton && (
      -

      +

      {translate('projects.no_projects.empty_instance.how_to_add_projects')}

    diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx index 6825ad39b45..17d5027a8fa 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonContainer.tsx @@ -60,7 +60,7 @@ export function ComparisonContainer(props: Readonly) { }; return ( -
    +
    ) {
      {Object.keys(params).map((key) => (
    • - + {key} {': '} {params[key]} diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.tsx index 42892367d05..65f38fc6e79 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.tsx @@ -27,10 +27,10 @@ export default function ProfileNotFound() { return (
      -

      +

      {intl.formatMessage({ id: 'quality_profiles.not_found' })}

      - + {intl.formatMessage({ id: 'quality_profiles.back_to_list' })}
      diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx index c34c384bb7f..849368e199b 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx @@ -80,17 +80,15 @@ export default function ProfileHeader(props: Props) { >
      {!isProfileComparePath(location.pathname) && ( - +
      - + {translate('quality_profiles.updated_')} {' '}
      - - {translate('quality_profiles.used_')} - {' '} + {translate('quality_profiles.used_')}{' '}
      diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsGroup.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsGroup.tsx index 91715485d45..48edea8a0e5 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsGroup.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsGroup.tsx @@ -61,7 +61,7 @@ export default function ProfilePermissionsGroup(props: Readonly) { name={group.name} size="xs" /> - {group.name} + {group.name}
      ) { size="xs" />
      - {user.name} + {user.name} {user.login}
    diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx index 4b3080b4499..7902e0cc685 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx @@ -63,7 +63,7 @@ export default function EvolutionDeprecated({ profiles }: Readonly) { )} -
      +
        {sortedProfiles.map((profile) => (
      • diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx index 0e680661200..493df10b0ff 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx @@ -74,7 +74,7 @@ export default function EvolutionRules() { {intl.formatMessage({ id: 'quality_profiles.latest_new_rules' })} -
          +
            {latestRules.map((rule) => (
          • @@ -98,7 +98,7 @@ export default function EvolutionRules() {
          {latestRulesTotal > RULES_LIMIT && ( -
          +
          {intl.formatMessage( { id: 'quality_profiles.latest_new_rules.see_all_x' }, diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx index d44fe4cab52..a27fb3fccc2 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx @@ -49,7 +49,7 @@ export default function EvolutionStagnant(props: Readonly) { {intl.formatMessage({ id: 'quality_profiles.not_updated_more_than_year' })} -
            +
              {outdated.map((profile) => (
            • diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/LanguageSelect.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/LanguageSelect.tsx index 13ba07cab46..e962950d18e 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/LanguageSelect.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/LanguageSelect.tsx @@ -54,7 +54,7 @@ export default function LanguageSelect(props: Readonly) { return (
              - + {intl.formatMessage({ id: 'quality_profiles.filter_by' })} ) { {translate('quality_profiles.page')} -
              +
              {intl.formatMessage({ id: 'quality_profiles.intro' })} diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx index 4535bd0c076..d59e4f62cc9 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx @@ -43,7 +43,7 @@ export default function EmptyHotspotsPage(props: EmptyHotspotsPageProps) { height={100} src={`/images/${filtered && !filterByFile ? 'filter-large' : 'hotspot-large'}.svg`} /> - + {translate(`hotspots.${emptyTranslationKey}.title`)} diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotDisabledFilterTooltip.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotDisabledFilterTooltip.tsx index a2531185977..7171a35f459 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotDisabledFilterTooltip.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotDisabledFilterTooltip.tsx @@ -28,13 +28,13 @@ export function HotspotDisabledFilterTooltip() { const docUrl = useDocUrl(DocLink.InstanceAdminReindexation); return ( -
              +

              {translate('indexation.page_unavailable.description')}{' '} {translate('indexation.filter_unavailable.description')}


              - {translate('indexation.learn_more')} + {translate('indexation.learn_more')} { diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeader.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeader.tsx index a1ad559a864..34fd6605f0f 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeader.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeader.tsx @@ -81,7 +81,7 @@ export function HotspotHeader(props: HotspotHeaderProps) { discreet /> -
              +
              {rule.name} {rule.key} diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeaderRightSection.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeaderRightSection.tsx index 0cc28d8a11f..0fb243e5796 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeaderRightSection.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotHeaderRightSection.tsx @@ -38,17 +38,17 @@ export default function HotspotHeaderRightSection(props: Props) {
              - + {translate('risk_exposure', hotspot.rule.vulnerabilityProbability)}
              - {categoryStandard} + {categoryStandard} {hotspot.codeVariants && hotspot.codeVariants.length > 0 && ( - + {hotspot.codeVariants.join(', ')} @@ -71,7 +71,7 @@ interface HotspotHeaderInfoProps { function HotspotHeaderInfo({ children, title, className }: HotspotHeaderInfoProps) { return (
              -
              {title}:
              +
              {title}:
              {children}
              ); diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotList.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotList.tsx index b78c1a5c048..7935ec3d93a 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotList.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotList.tsx @@ -124,9 +124,7 @@ export default class HotspotList extends React.Component {
              - - {translate('hotspots.risk_exposure')}: - + {translate('hotspots.risk_exposure')}: {translate('risk_exposure', riskGroup.risk)} diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListItem.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListItem.tsx index 677656426d4..2196eb6b01f 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListItem.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListItem.tsx @@ -86,7 +86,7 @@ export default function HotspotListItem(props: HotspotListItemProps) { id="hotspots.location" defaultMessage={translate(locationMessage)} values={{ - 0: {locations.length}, + 0: {locations.length}, }} /> diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListMeta.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListMeta.tsx index 10e956c4bc6..6fd32b8bc53 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListMeta.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotListMeta.tsx @@ -50,7 +50,7 @@ export default function HotspotListMeta(props: Readonly) { translate(`hotspots.${emptyTranslationKey}.title`)} {(hotspotsTotal > 0 || hasSelectedHotspot) && ( - + ) { : translate(`hotspots.list_title.${statusFilter}`) } values={{ - 0: {hotspotsTotal}, + 0: {hotspotsTotal}, }} /> diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx index 45f70529053..5b0cf3fbd3f 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx @@ -56,15 +56,15 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) { {history.map((historyElt, historyIndex) => { const { user, type, diffs, date, html, key, updatable, markdown } = historyElt; return ( -
            • -
              +
            • +
              {user.name && (
              - + {user.active ? user.name : translateWithParameters('user.x_deleted', user.name)}
              @@ -87,7 +87,7 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) { {type === ReviewHistoryType.Comment && key && html && markdown && (
              diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistoryAndComments.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistoryAndComments.tsx index 84e8590b686..184451bc23c 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistoryAndComments.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistoryAndComments.tsx @@ -83,7 +83,7 @@ export default class HotspotReviewHistoryAndComments extends React.PureComponent
              diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotSidebarHeader.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotSidebarHeader.tsx index 81761c5c5dd..bcf5b869bcd 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotSidebarHeader.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotSidebarHeader.tsx @@ -84,7 +84,7 @@ function HotspotSidebarHeader(props: SecurityHotspotsAppRendererProps) { {component && ( - + {translate('metric.security_hotspots_reviewed.name')} diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/StatusUpdateSuccessModal.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/StatusUpdateSuccessModal.tsx index 81dd5767bcb..422a0f918f3 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/StatusUpdateSuccessModal.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/StatusUpdateSuccessModal.tsx @@ -59,11 +59,11 @@ export default function StatusUpdateSuccessModal(props: StatusUpdateSuccessModal -

              +

              {translateWithParameters('hotspots.successful_status_change_to_x', statusLabel)}

              -
              +

              indexation.page_unavailable.description @@ -57,7 +57,7 @@ exports[`should render correctly and stop event propagation 1`] = ` class="sw-mx-0 sw-my-3 sw-p-0 sw-w-full" /> indexation.learn_more diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/StatusDescription.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/StatusDescription.tsx index 04468e298a2..15e3dc4c1f0 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/status/StatusDescription.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/status/StatusDescription.tsx @@ -33,13 +33,13 @@ export default function StatusDescription(props: StatusDescriptionProps) { return (

              - + {`${translate('status')}: `} {translate('hotspots.status_option', statusOption)}

              - + {translate('hotspots.status_option', statusOption, 'description')} diff --git a/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx b/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx index dd45a7060e3..21ea7d31278 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx @@ -57,7 +57,7 @@ export default function Login(props: Readonly) { - + {translate('login.login_to_sonarqube')} diff --git a/server/sonar-web/src/main/js/apps/sessions/components/Logout.tsx b/server/sonar-web/src/main/js/apps/sessions/components/Logout.tsx index 3f7a91b5e80..0c00fc5f49d 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/Logout.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/Logout.tsx @@ -39,7 +39,7 @@ export default function Logout() { return ( - + {translate('logging_out')} diff --git a/server/sonar-web/src/main/js/apps/sessions/components/Unauthorized.tsx b/server/sonar-web/src/main/js/apps/sessions/components/Unauthorized.tsx index d94e2c0a8cc..d4dd0f9eba2 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/Unauthorized.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/Unauthorized.tsx @@ -28,7 +28,7 @@ export default function Unauthorized() { return ( - +

              {translate('unauthorized.message')}

              diff --git a/server/sonar-web/src/main/js/apps/settings/components/SettingsAppRenderer.tsx b/server/sonar-web/src/main/js/apps/settings/components/SettingsAppRenderer.tsx index c51f3bbf7e5..884ce277337 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/SettingsAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/SettingsAppRenderer.tsx @@ -75,7 +75,7 @@ function SettingsAppRenderer(props: Readonly) { -
              +
              -

              {r.name ?? r.subCategory}

              +

              {r.name ?? r.subCategory}

              {isRealSettingKey(r.key) && ( {translateWithParameters('settings.key_x', r.key)} )} diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/AlmBindingDefinitionFormRenderer.tsx b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/AlmBindingDefinitionFormRenderer.tsx index 0a2b1bdf067..317878dd22d 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/AlmBindingDefinitionFormRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/AlmBindingDefinitionFormRenderer.tsx @@ -107,7 +107,7 @@ export default class AlmBindingDefinitionFormRenderer extends React.PureComponen const formBody = ( - + {validationError && !canSubmit && (
              diff --git a/server/sonar-web/src/main/js/apps/settings/components/authentication/ProvisioningSection.tsx b/server/sonar-web/src/main/js/apps/settings/components/authentication/ProvisioningSection.tsx index 1d86f614874..a18e176b0f4 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/authentication/ProvisioningSection.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/authentication/ProvisioningSection.tsx @@ -94,7 +94,7 @@ export default function ProvisioningSection(props: Readonly) { value={ProvisioningType.jit} >
              -
              {jitTitle}
              +
              {jitTitle}
              {jitDescription}
              @@ -114,12 +114,12 @@ export default function ProvisioningSection(props: Readonly) { disabled={!hasFeatureEnabled || hasDifferentProvider} >
              -
              {autoTitle}
              +
              {autoTitle}
              {hasFeatureEnabled ? ( <> {hasDifferentProvider && ( -

              +

              {translate('settings.authentication.form.other_provisioning_enabled')}

              )} diff --git a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationConfiguration.tsx b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationConfiguration.tsx index 929ec4946a9..966260e0c89 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationConfiguration.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationConfiguration.tsx @@ -129,21 +129,15 @@ export default function EmailNotificationConfiguration(props: Readonly) { - - {translate('email_notification.subheading.1')} - + {translate('email_notification.subheading.1')} - - {translate('email_notification.subheading.2')} - + {translate('email_notification.subheading.2')} - - {translate('email_notification.subheading.3')} - + {translate('email_notification.subheading.3')} diff --git a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationOverview.tsx b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationOverview.tsx index e76898e482e..8685ae4a7f0 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationOverview.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailNotificationOverview.tsx @@ -40,7 +40,7 @@ export default function EmailNotificationOverview(props: Readonly
              - + {translate('email_notification.overview.heading')} @@ -100,7 +100,7 @@ export default function EmailNotificationOverview(props: Readonly) { return ( <> - +
              @@ -111,7 +111,7 @@ function PublicValue({ messageKey, value }: Readonly<{ messageKey: string; value function PrivateValue({ messageKey }: Readonly<{ messageKey: string }>) { return ( <> - + diff --git a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailTestModal.tsx b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailTestModal.tsx index 781b06a166b..962284abd66 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailTestModal.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/email-notification/EmailTestModal.tsx @@ -133,7 +133,7 @@ export default function EmailTestModal() { title={formatMessage({ id: 'email_notification.test.modal_title' })} >
              - + {formatMessage({ id: 'email_notification.test.title' })} diff --git a/server/sonar-web/src/main/js/components/activity-graph/DefinitionChangeEventInner.tsx b/server/sonar-web/src/main/js/components/activity-graph/DefinitionChangeEventInner.tsx index 363e77fd65f..58caf7160e4 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/DefinitionChangeEventInner.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/DefinitionChangeEventInner.tsx @@ -139,9 +139,9 @@ export class DefinitionChangeEventInner extends React.PureComponent +
              - + {translate('event.category', event.category)} diff --git a/server/sonar-web/src/main/js/components/activity-graph/EventInner.tsx b/server/sonar-web/src/main/js/components/activity-graph/EventInner.tsx index 68d72ffc5b9..ac98fba7d3c 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/EventInner.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/EventInner.tsx @@ -47,7 +47,7 @@ export default function EventInner({ event, readonly }: EventInnerProps) { } else if (isRichQualityProfileEvent(event)) { return (
              - + {translate('event.category', event.category)} @@ -69,11 +69,11 @@ export default function EventInner({ event, readonly }: EventInnerProps) {
              - + {translate('event.category', event.category)} {event.category === 'VERSION' && ':'} - + {event.name} diff --git a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx index b50b4413050..78d22c7c9ec 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx @@ -62,7 +62,7 @@ export default function GraphsHeader(props: Props) { return (
              -