]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14736 Highlight that installing plugins is manual
authorJeremy Davis <jeremy.davis@sonarsource.com>
Fri, 23 Apr 2021 08:49:45 +0000 (10:49 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 23 Apr 2021 20:03:29 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/marketplace/App.tsx
server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index bcb8929fcafd6ff24bce0defdb55e02b455c177c..9ccdb29511ce50cf861dc029907c1bf0eb504424 100644 (file)
@@ -22,6 +22,7 @@ import * as React from 'react';
 import { Helmet } from 'react-helmet-async';
 import { FormattedMessage } from 'react-intl';
 import { Link } from 'react-router';
+import { Alert } from 'sonar-ui-common/components/ui/Alert';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
 import { translate } from 'sonar-ui-common/helpers/l10n';
 import {
@@ -167,7 +168,7 @@ export class App extends React.PureComponent<Props, State> {
           <div className="page-description">
             <p>{translate('marketplace.page.plugins.description')}</p>
             {currentEdition !== EditionKey.community && (
-              <p className="spacer-top">
+              <Alert className="spacer-top" variant="info">
                 <FormattedMessage
                   id="marketplace.page.plugins.description2"
                   defaultMessage={translate('marketplace.page.plugins.description2')}
@@ -181,7 +182,7 @@ export class App extends React.PureComponent<Props, State> {
                     )
                   }}
                 />
-              </p>
+              </Alert>
             )}
           </div>
         </header>
index 495113fd830b85c8f3d9694635dd682637d6816e..8c6f8aa8ad0b098ad6b7fd42ec0c01fffec2fb91 100644 (file)
@@ -33,8 +33,9 @@ exports[`should render correctly: loaded 1`] = `
       <p>
         marketplace.page.plugins.description
       </p>
-      <p
+      <Alert
         className="spacer-top"
+        variant="info"
       >
         <FormattedMessage
           defaultMessage="marketplace.page.plugins.description2"
@@ -52,7 +53,7 @@ exports[`should render correctly: loaded 1`] = `
             }
           }
         />
-      </p>
+      </Alert>
     </div>
   </header>
   <PluginRiskConsentBox
@@ -131,8 +132,9 @@ exports[`should render correctly: loading 1`] = `
       <p>
         marketplace.page.plugins.description
       </p>
-      <p
+      <Alert
         className="spacer-top"
+        variant="info"
       >
         <FormattedMessage
           defaultMessage="marketplace.page.plugins.description2"
@@ -150,7 +152,7 @@ exports[`should render correctly: loading 1`] = `
             }
           }
         />
-      </p>
+      </Alert>
     </div>
   </header>
   <PluginRiskConsentBox
index 4dd601e704677ce3b4555f806b33813900800428..c724f9f71617e39edd7c33a21d0b7221e2ba836e 100644 (file)
@@ -2752,7 +2752,7 @@ marketplace.search=Search by features, tags, or categories...
 marketplace.risk_consent.title=Installation of plugins
 marketplace.risk_consent.description=Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins. 
 marketplace.risk_consent.installation=You can install plugins directly from the list below after you acknowledge the risk.
-marketplace.risk_consent.action=I understand the risk.
+marketplace.risk_consent.action=I understand the risk
 
 plugin_risk_consent.title=Installation of plugins
 plugin_risk_consent.description=A plugin has been detected.