From a628776518872b4143c021f3a3f80385f7525ecb Mon Sep 17 00:00:00 2001
From: Thomas Zarebczan
Date: Tue, 16 Jul 2019 23:23:45 -0400
Subject: [PATCH 1/3] Few UX improvements - add message about deleting/editing
to comment create intro (feel free to remove, but I thought people would be
wondering after they used em) - add note on publish, link to faq - better
handling of own urls + takeovers - Add manage email preferences to account
page - move recent believe send/receive (on the fence, but I think this is
better) - rewards messaging - Add support button for own claims, fix up
messaging around this - Help page improvements - Add privacy policy to
settings/diagnostics option - maybe a couple things I'm forgetting
---
src/ui/component/cardVerify/view.jsx | 2 +-
src/ui/component/commentCreate/view.jsx | 5 ++
src/ui/component/publishFile/view.jsx | 7 +++
.../component/publishName/bid-help-text.jsx | 2 +
src/ui/component/socialShare/view.jsx | 29 ++-------
src/ui/component/userEmail/index.js | 11 +++-
src/ui/component/userEmail/view.jsx | 19 +++++-
src/ui/component/userVerify/view.jsx | 59 ++++++++++---------
src/ui/component/walletAddress/view.jsx | 4 +-
src/ui/component/walletSendTip/view.jsx | 8 ++-
src/ui/constants/icons.js | 1 +
src/ui/constants/transaction_types.js | 1 +
src/ui/modal/modalRevokeClaim/view.jsx | 11 ++++
src/ui/modal/modalSendTip/view.jsx | 7 ++-
src/ui/page/file/view.jsx | 15 +++--
src/ui/page/help/view.jsx | 18 +++++-
src/ui/page/rewards/view.jsx | 14 +++--
src/ui/page/settings/view.jsx | 5 +-
src/ui/page/wallet/view.jsx | 2 +-
src/ui/redux/selectors/publish.js | 5 +-
20 files changed, 142 insertions(+), 83 deletions(-)
diff --git a/src/ui/component/cardVerify/view.jsx b/src/ui/component/cardVerify/view.jsx
index 47a511075..5531a1283 100644
--- a/src/ui/component/cardVerify/view.jsx
+++ b/src/ui/component/cardVerify/view.jsx
@@ -98,7 +98,7 @@ class CardVerify extends React.Component {
componentWillUnmount() {
if (this.loadPromise) {
- this.loadPromise.cancel();
+ this.loadPromise.reject();
}
if (CardVerify.stripeHandler && this.state.open) {
CardVerify.stripeHandler.close();
diff --git a/src/ui/component/commentCreate/view.jsx b/src/ui/component/commentCreate/view.jsx
index 846d371bf..c1738ecba 100644
--- a/src/ui/component/commentCreate/view.jsx
+++ b/src/ui/component/commentCreate/view.jsx
@@ -49,6 +49,11 @@ export function CommentCreate(props: Props) {
'During the alpha, comments are not decentralized or censorship resistant (but we repeat ourselves).'
)}
+
+ {__(
+ 'For the initial release, deleting or editing comments is not possible. Please be mindful of this when posting.'
+ )}
+
{__(
'When the alpha ends, we will attempt to transition comments, but do not promise to do so. Any transition will likely involve publishing previous comments under a single archive handle.'
diff --git a/src/ui/component/publishFile/view.jsx b/src/ui/component/publishFile/view.jsx
index d9c05baa2..b2bfb6e11 100644
--- a/src/ui/component/publishFile/view.jsx
+++ b/src/ui/component/publishFile/view.jsx
@@ -3,6 +3,7 @@ import React from 'react';
import { regexInvalidURI } from 'lbry-redux';
import classnames from 'classnames';
import FileSelector from 'component/common/file-selector';
+import Button from 'component/button';
type Props = {
name: ?string,
@@ -39,6 +40,12 @@ function PublishFile(props: Props) {
+ {!isStillEditing && (
+
+ {__('For video content, use MP4s in H264/AAC format for best compatibility.')}{' '}
+ .
+
{`${__(
- 'This information is disclosed only to LBRY, Inc. and not to the LBRY network. It is only required to earn LBRY rewards.'
+ 'This information is disclosed only to LBRY, Inc. and not to the LBRY network. It is only required to save account information and earn rewards.'
)} `}
diff --git a/src/ui/component/userVerify/view.jsx b/src/ui/component/userVerify/view.jsx
index 0d3a26aee..90c3d08cc 100644
--- a/src/ui/component/userVerify/view.jsx
+++ b/src/ui/component/userVerify/view.jsx
@@ -30,14 +30,43 @@ class UserVerify extends React.PureComponent {
{__('Final Human Proof')}
- Finally, please complete one and only one of the options below.
+ To be approved for rewards, please complete one and only one of the options below. This
+ is optional, and you can click back or Skip Rewards at the bottom.
-
{__('1) Proof via Credit')}
+
{__('1) Proof via Phone')}
+
+ {`${__(
+ 'You will receive an SMS text message confirming that your phone number is correct. Does not work for Canada and possibly other regions'
+ )}`}
+
+
+
+
+
+
+
+
+ {__('Standard messaging rates apply. LBRY will not text or call you otherwise. Having trouble?')}{' '}
+
+
+
+
+
+
+
+
{__('2) Proof via Credit')}
{`${__(
'If you have a valid credit or debit card, you can use it to instantly prove your humanity.'
@@ -69,32 +98,6 @@ class UserVerify extends React.PureComponent {
-
-
-
{__('2) Proof via Phone')}
-
- {`${__('You will receive an SMS text message confirming that your phone number is correct.')}`}
-
-
-
-
-
-
-
-
- {__('Standard messaging rates apply. Having trouble?')}{' '}
-
-
-
-
-
{__('3) Proof via Chat')}
diff --git a/src/ui/component/walletAddress/view.jsx b/src/ui/component/walletAddress/view.jsx
index 7c5083f7c..ada798d42 100644
--- a/src/ui/component/walletAddress/view.jsx
+++ b/src/ui/component/walletAddress/view.jsx
@@ -71,9 +71,7 @@ class WalletAddress extends React.PureComponent {
- {__(
- 'You can generate a new address at any time, and any previous addresses will continue to work. Using multiple addresses can be helpful for keeping track of incoming payments from multiple sources.'
- )}
+ {__('You can generate a new address at any time, and any previous addresses will continue to work.')}
- {__(`This will appear as a tip for "${title}".`)}{' '}
+ {claimIsMine
+ ? __('This will increase your overall bid amount for ')
+ : __('This will appear as a tip for ')}
+ {`"${title}" which will boost its ability to be discovered while active.`}{' '}
{__('Are you sure you want to remove this support?')}
+
+ {__(
+ "These credits are permanently yours and can be removed at any time. Removing this support will reduce the claim's discoverability and return the LBC to your spendable balance."
+ )}
+
+
+ );
}
return (
diff --git a/src/ui/modal/modalSendTip/view.jsx b/src/ui/modal/modalSendTip/view.jsx
index e04d798bd..521d9b7b8 100644
--- a/src/ui/modal/modalSendTip/view.jsx
+++ b/src/ui/modal/modalSendTip/view.jsx
@@ -7,11 +7,12 @@ import UriIndicator from 'component/uriIndicator';
type Props = {
closeModal: () => void,
uri: string,
+ claimIsMine: boolean,
};
class ModalSendTip extends React.PureComponent {
render() {
- const { closeModal, uri } = this.props;
+ const { closeModal, uri, claimIsMine } = this.props;
return (
{
type="custom"
title={
- {__('Send a tip to')}
+ {claimIsMine ? __('Add support to') : __('Send a tip')}
}
>
-
+
);
}
diff --git a/src/ui/page/file/view.jsx b/src/ui/page/file/view.jsx
index b7af8dfc3..1d8409fec 100644
--- a/src/ui/page/file/view.jsx
+++ b/src/ui/page/file/view.jsx
@@ -164,7 +164,7 @@ class FilePage extends React.Component {
const showFile = isPlayableType || isPreviewType;
const speechShareable =
- costInfo && costInfo.cost === 0 && contentType && ['video', 'image'].includes(contentType.split('/')[0]);
+ costInfo && costInfo.cost === 0 && contentType && ['video', 'image', 'audio'].includes(contentType.split('/')[0]);
// We want to use the short form uri for editing
// This is what the user is used to seeing, they don't care about the claim id
// We will select the claim id before they publish
@@ -240,18 +240,17 @@ class FilePage extends React.Component {
}}
/>
)}
- {!claimIsMine && (
+ {
- {channelUri && }
-
+ {!claimIsMine && channelUri && }
- )}
+ }