From 82e54bcc77078b71ec406fc5df19fa7107cdef61 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Thu, 17 Sep 2020 17:10:09 +0200 Subject: [PATCH] SONAR-13643 Improve user feedback when there is no plugins --- .../src/main/js/apps/marketplace/App.tsx | 26 ++++++---- .../apps/marketplace/__tests__/App-test.tsx | 22 +++++---- .../__tests__/__snapshots__/App-test.tsx.snap | 47 ++++++++++++------- .../resources/org/sonar/l10n/core.properties | 3 ++ 4 files changed, 63 insertions(+), 35 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/marketplace/App.tsx b/server/sonar-web/src/main/js/apps/marketplace/App.tsx index 27289b329c4..1075118cb17 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/App.tsx +++ b/server/sonar-web/src/main/js/apps/marketplace/App.tsx @@ -20,6 +20,7 @@ import { sortBy, uniqBy } from 'lodash'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; +import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; import { translate } from 'sonar-ui-common/helpers/l10n'; import { getAvailablePlugins, @@ -135,16 +136,21 @@ export class App extends React.PureComponent { updateCenterActive={this.props.updateCenterActive} updateQuery={this.updateQuery} /> - {loadingPlugins && } - {!loadingPlugins && ( - - )} - {!loadingPlugins &&