From f11fd84c8b3de843d07050135689cc80814dbe6a Mon Sep 17 00:00:00 2001
From: Yulia Shanyrova
Date: Tue, 7 Jun 2022 12:10:59 +0200
Subject: [PATCH] Retry button returned, infobox has been changed
---
.../PluginConfigPage.module.css | 8 +--
.../PluginConfigPage/PluginConfigPage.tsx | 61 +++++++++++++------
2 files changed, 47 insertions(+), 22 deletions(-)
diff --git a/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.module.css b/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.module.css
index 8996189b..2cca3ca5 100644
--- a/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.module.css
+++ b/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.module.css
@@ -1,7 +1,7 @@
-.delete_configuration_button {
- margin-top: 20px;
-}
-
.command-line {
width: 100%;
}
+
+.info-block {
+ margin-bottom: 24px;
+}
diff --git a/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.tsx b/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.tsx
index b83170a4..c105fb05 100644
--- a/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.tsx
+++ b/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.tsx
@@ -19,6 +19,7 @@ import cn from 'classnames/bind';
import CopyToClipboard from 'react-copy-to-clipboard';
import { OnCallAppSettings } from 'types';
+import Block from 'components/GBlock/Block';
import Text from 'components/Text/Text';
import WithConfirm from 'components/WithConfirm/WithConfirm';
import logo from 'img/logo.svg';
@@ -218,27 +219,31 @@ export const PluginConfigPage = (props: Props) => {
)}
+ {'Plugin <-> backend connection status'}
+
+ {pluginStatusMessage}
+
- {isSelfHostedInstall ? (
-
-
{'Plugin <-> backend connection status:'}
+
+ {/* {'Plugin <-> backend connection status'}
{pluginStatusMessage}
-
+ */}
+ {retrySync && (
+
+ Retry
+
+ )}
+ {isSelfHostedInstall ? (
-
+
Remove current configuration
-
- ) : (
- This is a cloud managed configuration.
- )}
+ ) : (
+ This is a cloud managed configuration.
+ )}{' '}
+
>
) : (
@@ -285,6 +290,21 @@ export const PluginConfigPage = (props: Props) => {
+
+
+ Need help?
+
+ 1. Talk to the developers in the #grafana-oncall channel at{' '}
+
+ Slack
+
+
+ 2. Search for issues or create a new one in the{' '}
+
+ GitHub
+
+
+
2. Conect the backend and the plugin
{'Plugin <-> backend connection status:'}
@@ -308,10 +328,15 @@ Seek for such a line: “Your invite token: <> , use it in the Graf
+ It should be rechable from Grafana. Possible options:
+ http://host.docker.internal:8000 (if you run backend in the docker locally)
+
+ http://localhost:8000
+ ...
+
+ }
>