Add encryption flow to redux #59

Merged
skhameneh merged 7 commits from redux-encryption-flow into master 2018-07-25 03:50:35 +02:00
skhameneh commented 2018-07-18 04:59:33 +02:00 (Migrated from github.com)

See lbryio/lbry-redux#36

lbryio/lbry-desktop#1097 will be updated tomorrow with a dependency on these changes.

See lbryio/lbry-redux#36 lbryio/lbry-desktop#1097 will be updated tomorrow with a dependency on these changes.
akinwale (Migrated from github.com) reviewed 2018-07-18 04:59:33 +02:00
skhameneh (Migrated from github.com) reviewed 2018-07-18 05:01:09 +02:00
skhameneh (Migrated from github.com) commented 2018-07-18 05:01:09 +02:00

This should not be here, I will check my local commits and try to find why this change is appearing.

This should not be here, I will check my local commits and try to find why this change is appearing.
neb-b (Migrated from github.com) reviewed 2018-07-18 06:54:16 +02:00
neb-b (Migrated from github.com) commented 2018-07-18 06:54:16 +02:00

Guessing it's from Prettier.

Guessing it's from Prettier.
neb-b (Migrated from github.com) reviewed 2018-07-18 15:33:23 +02:00
neb-b (Migrated from github.com) left a comment

A few minor comments.

A few minor comments.
neb-b (Migrated from github.com) commented 2018-07-18 15:24:28 +02:00

What if this command fails?

What if this command fails?
@ -9,0 +10,4 @@
// TODO: Split into common success and failure types
// See details in https://github.com/lbryio/lbry/issues/1307
type ActionResult = {
type: any,
neb-b (Migrated from github.com) commented 2018-07-18 15:31:22 +02:00

There should probably be an error attribute here too. Not sure what the daemon returns but it would be nice to know if there was an error decrypting or some unrelated error.

There should probably be an error attribute here too. Not sure what the daemon returns but it would be nice to know if there was an error decrypting or some unrelated error.
neb-b (Migrated from github.com) commented 2018-07-18 15:32:07 +02:00

I would use createSelector here like you did below.

I would use `createSelector` here like you did below.
neb-b (Migrated from github.com) reviewed 2018-07-20 15:53:21 +02:00
neb-b (Migrated from github.com) commented 2018-07-20 15:53:20 +02:00

We should add Flow types to this.

We should add Flow types to this.
neb-b (Migrated from github.com) reviewed 2018-07-25 03:43:10 +02:00
@ -9,0 +14,4 @@
result: any,
};
type WalletState = {
neb-b (Migrated from github.com) commented 2018-07-25 03:43:10 +02:00

Maybe EncryptActionResult?

Maybe `EncryptActionResult`?
neb-b (Migrated from github.com) approved these changes 2018-07-25 03:43:38 +02:00
neb-b (Migrated from github.com) left a comment

I think we should rename that type to specify it's related to encryption

I think we should rename that type to specify it's related to encryption
skhameneh (Migrated from github.com) reviewed 2018-07-25 03:47:02 +02:00
@ -9,0 +14,4 @@
result: any,
};
type WalletState = {
skhameneh (Migrated from github.com) commented 2018-07-25 03:47:02 +02:00

Likely it'll split into multiple at some point.
We don't have any predictable pattern at the moment and this only contains result and could apply to any other action, I can change it but I still think we'll end up with another common pattern.

Likely it'll split into multiple at some point. We don't have any predictable pattern at the moment and this only contains `result` and could apply to any other action, I can change it but I still think we'll end up with another common pattern.
neb-b (Migrated from github.com) reviewed 2018-07-25 03:47:53 +02:00
@ -9,0 +14,4 @@
result: any,
};
type WalletState = {
neb-b (Migrated from github.com) commented 2018-07-25 03:47:53 +02:00

👍

👍
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-redux#59
No description provided.