From 7349a563a39f6a9e3ed64c938d1c0fe5fe112337 Mon Sep 17 00:00:00 2001
From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Date: Wed, 15 Jun 2022 11:35:07 -0700
Subject: [PATCH] feat: Add pinning compliance links (#1943)
* feat: File pinningModal shows link to compliance reports
* feat: PinningManagerModal shows link to service's compliance report if available
* fix: use transifex string with interpolation
* chore: add magnifying glass emoji to string
---
public/locales/en/files.json | 1 +
public/locales/en/settings.json | 3 ++-
.../PinningManagerModal.js | 2 +-
.../PinningManagerServiceModal.js | 3 ++-
src/constants/pinning.js | 23 ++++++++++++++++++-
.../modals/pinning-modal/PinningModal.js | 2 ++
6 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/public/locales/en/files.json b/public/locales/en/files.json
index 7ae96d234..7a9b090ef 100644
--- a/public/locales/en/files.json
+++ b/public/locales/en/files.json
@@ -45,6 +45,7 @@
},
"pinningModal": {
"title": "Select where you would like to pin these items.",
+ "complianceLabel": "🔍 Check pinning services' compliance",
"footer": "Need to add or configure a pinning service? Go to <1>Settings1>.",
"localNode": "Local node",
"totalSize": "Total size: {size}"
diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json
index 291f1524d..d9aeb8cad 100644
--- a/public/locales/en/settings.json
+++ b/public/locales/en/settings.json
@@ -41,7 +41,8 @@
"apiEndpointPlaceholder": "URL for its API endpoint",
"secretApiKey": "Secret access token",
"secretApiKeyHowToLink": "How to generate a new token",
- "autoUpload": "Auto upload"
+ "autoUpload": "Auto upload",
+ "complianceLabel": "🔍 {nickname} pinning compliance report"
},
"autoUploadModal": {
"title": "Change upload policy for {name}",
diff --git a/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js b/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
index 298987096..eb29ddd39 100644
--- a/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
+++ b/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
@@ -46,7 +46,7 @@ const PinningManagerModal = ({ t, tReady, onLeave, className, remoteServiceTempl