From 901eb28665003436acba8548927db68a7ccc0c37 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:51:10 -0700 Subject: [PATCH 1/4] feat: File pinningModal shows link to compliance reports --- public/locales/en/files.json | 1 + src/constants/pinning.js | 4 ++++ src/files/modals/pinning-modal/PinningModal.js | 2 ++ 3 files changed, 7 insertions(+) diff --git a/public/locales/en/files.json b/public/locales/en/files.json index 7ae96d234..96d26822d 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/src/constants/pinning.js b/src/constants/pinning.js index 43923b738..5d407cfb5 100644 --- a/src/constants/pinning.js +++ b/src/constants/pinning.js @@ -1,6 +1,9 @@ // This is a list of predefined templates for popular services from the IPFS // community. We are open to reviewing PRs that add more entries here, // but only well-established and mission-aligned services will be accepted. + +const complianceReportsHomepage = 'https://ipfs-shipyard.github.io/pinning-service-compliance' + const pinningServiceTemplates = [ { name: 'Pinata', @@ -11,5 +14,6 @@ const pinningServiceTemplates = [ ] export { + complianceReportsHomepage, pinningServiceTemplates } diff --git a/src/files/modals/pinning-modal/PinningModal.js b/src/files/modals/pinning-modal/PinningModal.js index bc88cb2d7..43975075c 100644 --- a/src/files/modals/pinning-modal/PinningModal.js +++ b/src/files/modals/pinning-modal/PinningModal.js @@ -6,6 +6,7 @@ import Button from '../../../components/button/Button' import Checkbox from '../../../components/checkbox/Checkbox' import GlyphPin from '../../../icons/GlyphPin' import { Modal, ModalActions, ModalBody } from '../../../components/modal/Modal' +import { complianceReportsHomepage } from '../../../constants/pinning' import { connect } from 'redux-bundler-react' import './PinningModal.css' @@ -69,6 +70,7 @@ export const PinningModal = ({ t, tReady, onCancel, onPinningSet, file, pinningS Need to add or configure a pinning service? Go to Settings.
*/} + { t('pinningModal.complianceLabel') }{t('pinningModal.totalSize', { size: humanSize(size) })}
From dfd6b47a35035503f34a83bf1db7b100d5301735 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Wed, 8 Jun 2022 14:10:51 -0700 Subject: [PATCH 2/4] feat: PinningManagerModal shows link to service's compliance report if available --- .../PinningManagerModal.js | 2 +- .../PinningManagerServiceModal.js | 3 ++- src/constants/pinning.js | 19 ++++++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) 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