Feat new referrals #3462

Merged
jessopb merged 11 commits from feat-newReferrals into master 2020-01-14 20:54:53 +01:00
jessopb commented 2020-01-09 00:33:19 +01:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number:

What is the current behavior?

What is the new behavior?

Other information

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [ ] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: ## What is the current behavior? ## What is the new behavior? ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
neb-b (Migrated from github.com) requested changes 2020-01-13 17:12:41 +01:00
neb-b (Migrated from github.com) left a comment

small comments

small comments
neb-b (Migrated from github.com) commented 2020-01-13 16:16:47 +01:00

Since these are used more than not, they should be defaults. We should have props (one prop?) that hides them.

Since these are used more than not, they should be defaults. We should have props (one prop?) that hides them.
neb-b (Migrated from github.com) commented 2020-01-13 16:18:47 +01:00

channels: ?Array<ChannelClaim>

`channels: ?Array<ChannelClaim>`
neb-b (Migrated from github.com) commented 2020-01-13 16:19:13 +01:00

channels could be empty here

`channels` could be empty here
@ -52,0 +128,4 @@
</React.Fragment>
}
/>
neb-b (Migrated from github.com) commented 2020-01-13 16:39:03 +01:00

If it's possible, please change this component so it only returns a single fieldset-section. The wrapping div makes it so it loses the padding that comes with several fieldset-section's stacked on top of each other.

If it's possible, please change this component so it only returns a single `fieldset-section`. The wrapping div makes it so it loses the padding that comes with several `fieldset-section`'s stacked on top of each other.
neb-b (Migrated from github.com) commented 2020-01-13 16:22:42 +01:00

This should go in the body={}

This should go in the `body={}`
neb-b (Migrated from github.com) commented 2020-01-13 16:23:11 +01:00

This doesn't need a key since it's not in an array

This doesn't need a `key` since it's not in an array
neb-b (Migrated from github.com) commented 2020-01-13 16:25:57 +01:00

There should probably be two buttons. Done, which just closes the modal, and Explore other stuff or something similar which takes you to the discover/home page

@kauffj

There should probably be two buttons. `Done`, which just closes the modal, and `Explore other stuff` or something similar which takes you to the discover/home page @kauffj
neb-b (Migrated from github.com) commented 2020-01-13 16:26:33 +01:00

<Button button="link" label={__('Not Now')} onClick={handleDone} />

`<Button button="link" label={__('Not Now')} onClick={handleDone} />`
neb-b (Migrated from github.com) commented 2020-01-13 16:27:12 +01:00

Just sign in to lbry.tv to claim it.

`Just sign in to lbry.tv to claim it.`
neb-b (Migrated from github.com) commented 2020-01-13 16:27:27 +01:00

button="link"

`button="link"`
neb-b (Migrated from github.com) commented 2020-01-13 16:27:55 +01:00

same comments about the claim as above

same comments about the claim as above
@ -35,7 +38,14 @@ const RewardTile = (props: Props) => {
<Button button="primary" onClick={openRewardCodeModal} label={__('Enter Code')} />
)}
neb-b (Migrated from github.com) commented 2020-01-13 16:28:27 +01:00

@kauffj copy request

@kauffj copy request
neb-b (Migrated from github.com) commented 2020-01-13 16:29:46 +01:00

There is a HelpLink component that uses a help icon

There is a `HelpLink` component that uses a help icon
jessopb (Migrated from github.com) reviewed 2020-01-13 18:24:09 +01:00
jessopb (Migrated from github.com) commented 2020-01-13 18:24:09 +01:00

Ok, the utility of separate props may be better: hideNew, hideAnon may support different cases.

Ok, the utility of separate props may be better: hideNew, hideAnon may support different cases.
jessopb (Migrated from github.com) reviewed 2020-01-14 05:14:31 +01:00
@ -52,0 +128,4 @@
</React.Fragment>
}
/>
jessopb (Migrated from github.com) commented 2020-01-14 05:14:31 +01:00

Hm, when new... is selected, the FormField spawns a nested Form. So when I change it to correct the spacing in the inviteNew component, it loses its spacing in the publish page when new... is selected.

Hm, when new... is selected, the FormField spawns a nested Form. So when I change it to correct the spacing in the inviteNew component, it loses its spacing in the publish page when new... is selected.
kauffj (Migrated from github.com) reviewed 2020-01-14 18:00:28 +01:00
@ -0,0 +152,4 @@
return (
<Card
title={__(`Welcome!`)}
kauffj (Migrated from github.com) commented 2020-01-14 18:00:15 +01:00

@seanyesmunt I told @jessopb it was out of scope for his work so not to worry about it, but I think this step is probably the weakest part of the new onboarding/invite system. A brand new user has clicked a link a friend sent them, gone through account creation and email confirmation, and then is kind of just... dumped on the home page (which for now is just them following a single channel).

This doesn't need to be worked out before RC, but it would be good to consider the homepage UX for this case (brand new user following one channel that may be empty or not have much in it)

@seanyesmunt I told @jessopb it was out of scope for his work so not to worry about it, but I think this step is probably the weakest part of the new onboarding/invite system. A brand new user has clicked a link a friend sent them, gone through account creation and email confirmation, and then is kind of just... dumped on the home page (which for now is just them following a single channel). This doesn't need to be worked out before RC, but it would be good to consider the homepage UX for this case (brand new user following one channel that may be empty or not have much in it)
@ -0,0 +66,4 @@
/>
</Form>
<div className="card__actions">
<Button button="primary" label={__('Done')} onClick={closeModal} />
kauffj (Migrated from github.com) commented 2020-01-14 17:54:25 +01:00

I think this could just be the form submit button and it would eliminate an entire button from the modal

I think this could just be the form submit button and it would eliminate an entire button from the modal
@ -0,0 +67,4 @@
</Form>
<div className="card__actions">
<Button button="primary" label={__('Done')} onClick={closeModal} />
<Button button="link" label={__('Close')} onClick={closeModal} />
kauffj (Migrated from github.com) commented 2020-01-14 17:55:27 +01:00

I renamed this from cancel to close. Be careful with labeling things cancel if it doesn't actually undo things (or prevent submission of unsaved values).

I renamed this from cancel to close. Be careful with labeling things cancel if it doesn't actually undo things (or prevent submission of unsaved values).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#3462
No description provided.