Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues of cell management testing #298

Closed
silySuper opened this issue Oct 13, 2023 · 48 comments
Closed

Issues of cell management testing #298

silySuper opened this issue Oct 13, 2023 · 48 comments
Assignees
Labels
bug Something isn't working

Comments

@silySuper
Copy link

silySuper commented Oct 13, 2023

These issues found in light client mode.
1.Icon shows wrong.
UI document:
截屏2023-10-13 10 08 15

Actual:
截屏2023-10-13 09 43 04

2.Lost total number :
UI document:
截屏2023-10-13 10 07 04
Actual:
截屏2023-10-13 09 44 17

3.When description is long UI shows abnormal:
截屏2023-10-13 09 45 41

4.Click anywhere in record line can pop up cell detail window actually ,but in expect only click detail icon can pop up cell detail window.

2023-10-13.09.47.18.mov

5.When lock cell it shows warn:
截屏2023-10-13 10 12 50
but actually after lock cell ,then spend icon is not gray and can jump to send page ,send transaction successfully.

2023-10-13.10.17.18.mov

6.When click locked balance it jump to cell management page which include locked cell and unlocked cell,may be jump to locked cell page is better.

截屏2023-10-13 09 59 43

7.Locked reason does not show like this is requirement document:
截屏2023-10-13 10 32 51
Actual:
截屏2023-10-13 10 01 17

@silySuper silySuper added the bug Something isn't working label Oct 13, 2023
@silySuper silySuper added this to Neuron Oct 13, 2023
@Danie0918 Danie0918 assigned yanguoyu and unassigned Danie0918 Oct 13, 2023
@Danie0918 Danie0918 moved this to 👀 Testing in Neuron Oct 13, 2023
@yanguoyu
Copy link

yanguoyu commented Oct 13, 2023

  1. but actually after lock cell ,then spend icon is not gray and can jump to send page ,send transaction successfully.

IMO, it can not be used on others' pages, but I can use this cell in the cell manage page. @Danie0918 Can we use the manually locked cells in the cell manage page?

  1. When click locked balance it jump to cell management page which include locked cell and unlocked cell,may be jump to locked cell page is better.

Neuron does not have a page that only shows locked cells, what do you think? @Danie0918

7 .Locked reason does not show like this is requirement document:

Because of some cells are default locked, their locked reasons are different.

@silySuper
Copy link
Author

To N0.7 issue ,my lock reason is same to requirement document,because I have sent a locktime transaction,requirement description is more clear than actual description.

@Danie0918
Copy link
Contributor

  1. but actually after lock cell ,then spend icon is not gray and can jump to send page ,send transaction successfully.

IMO, it can not be used on others' pages, but I can use this cell in the cell manage page. @Danie0918 Can we use the manually locked cells in the cell manage page?

Manually locked cells can't be spent.

  1. When click locked balance it jump to cell management page which include locked cell and unlocked cell,may be jump to locked cell page is better.

Neuron does not have a page that only shows locked cells, what do you think? @Danie0918

Instead of adding a separate page, you can optimize it a bit by sorting by default to show the locked cells first.By the way, sorting is still in effect when there are no locked cells.

@yanguoyu
Copy link

yanguoyu commented Oct 13, 2023

Instead of adding a separate page, you can optimize it a bit by sorting by default to show the locked cells first.By the way, sorting is still in effect when there are no locked cells.

Do you mean when I click the locked balance, then Neuorn should go to the cell manage page, and set default sort by locked field? @Danie0918 cc @silySuper

@yanguoyu
Copy link

To N0.7 issue ,my lock reason is same to requirement document,because I have sent a locktime transaction,requirement description is more clear than actual description.

@Danie0918 Do we have tips for different default-locked cells? Currently, I remind users to operate the locked cells on the corresponding page.

@Danie0918
Copy link
Contributor

Do we have tips for different default-locked cells? Currently, I remind users to operate the locked cells on the corresponding page.

Yes.

@yanguoyu
Copy link

Do we have tips for different default-locked cells? Currently, I remind users to operate the locked cells on the corresponding page.

Yes.

Where can I find the tips for different default-locked cells?

@silySuper
Copy link
Author

8.Type field in overview page is different from history page at the same transaction.
截屏2023-10-13 11 08 53
截屏2023-10-13 11 09 09

@Danie0918
Copy link
Contributor

Do we have tips for different default-locked cells? Currently, I remind users to operate the locked cells on the corresponding page.

Yes.

Where can I find the tips for different default-locked cells?

Are we currently without relevant tips? This hint in the requirements is what I found in the custom assets.

@yanguoyu
Copy link

Do we have tips for different default-locked cells? Currently, I remind users to operate the locked cells on the corresponding page.

Yes.

Where can I find the tips for different default-locked cells?

Are we currently without relevant tips? This hint in the requirements is what I found in the custom assets.

Currently, I remind users to operate the locked cells on the corresponding page.

Where can I find the tips for different default-locked cells?

I mean where can I find the document that describes tips content for different default-locked cells?

@Danie0918
Copy link
Contributor

I mean where can I find the document that describes tips content for different default-locked cells?

Currently it's not, my hints in the documentation are just examples.

If we don't have a default prompt, we may need to organize the use cases and then I'll provide the documentation.

@silySuper
Copy link
Author

9.Order by status is opposite to icon.
截屏2023-10-13 15 18 36

@yanguoyu
Copy link

9.Order by status is opposite to icon.

Order by status ASC, unlock cell will before than locked cell.

@silySuper
Copy link
Author

9.Order by status is opposite to icon.

Order by status ASC, unlock cell will before than locked cell.

Does it not order by English alphabet?In English alphabet L is before U,I see that order by type field satisfy English alphabet.
截屏2023-10-13 15 26 54

@yanguoyu
Copy link

1.类型-CKB, UDT, NTF, Unknown
2.状态-解锁, 锁定
@silySuper S

@yanguoyu
Copy link

I mean where can I find the document that describes tips content for different default-locked cells?

Currently it's not, my hints in the documentation are just examples.

If we don't have a default prompt, we may need to organize the use cases and then I'll provide the documentation.

There are these default lock types:

  1. lock script
    • Cheque
    • multisig-lock-time
    • multisig
    • anyone-can-pay
    • unknown
  2. type script
    • nft
    • nft-issue
    • nft-class
    • sudt
    • dao
    • unknown

@yanguoyu
Copy link

yanguoyu commented Oct 16, 2023

1, 2, 3, 4, 5, 6 have been fixed by nervosnetwork/neuron@8e3abb5 on the nervosnetwork/neuron#2859

@yanguoyu
Copy link

8.Type field in overview page is different from history page at the same transaction.

It's an issue on the develop branch, I opened a new PR to fix it. nervosnetwork/neuron#2876

@silySuper
Copy link
Author

silySuper commented Oct 17, 2023

9.Batch locking cells can be unlocked again after unlocking.

2023-10-17.10.36.46.mov

10.Batch consume send balance is not fit for max balance.

2023-10-17.10.55.26.mov

@yanguoyu
Copy link

9.Batch locking cells can be unlocked again after unlocking.

I guess it's normal, otherwise if users want to lock or unlock all cells, they should pick one by one. What do you think? @Danie0918

@silySuper
Copy link
Author

silySuper commented Oct 17, 2023

10.Batch locking cells can be unlocked again after unlocking.

I guess it's normal, otherwise if users want to lock or unlock all cells, they should pick one by one. What do you think? @Danie0918

To No.10 issue,another operation is the same result.Maybe judge status is better.

2023-10-17.15.25.26.mov

@silySuper
Copy link
Author

12.If I chosed cells include both locked and unlocked status.The balance in lock pop up window and in unlock pop up window show abnormal.In expect ,lock balance is about 236712,unlock balance is about 1513.8.

2023-10-17.15.29.21.2.mov

@yanguoyu
Copy link

9.Batch locking cells can be unlocked again after unlocking.

I guess it's normal, otherwise if users want to lock or unlock all cells, they should pick one by one. What do you think? @Danie0918

To No.9 issue,another operation is the same result.Maybe judge status is better.
2023-10-17.15.25.26.mov

It may be a bit weird for the user, when the operation is not valid.

For batch operations, if all of them are unlocked or locked, the corresponding operations should be disabled.A batch operation should operate normally only if it can have a target to execute.

This means that when the cells selected in a batch are all unlocked, then the unlock operation should be disabled unless it contains cells that can be unlocked.

Again this applies to the lock.

If users select locked and unlocked cells, could they batch lock or unlock these cells?

@Danie0918
Copy link
Contributor

9.Batch locking cells can be unlocked again after unlocking.

I guess it's normal, otherwise if users want to lock or unlock all cells, they should pick one by one. What do you think? @Danie0918

To No.9 issue,another operation is the same result.Maybe judge status is better.
2023-10-17.15.25.26.mov

It may be a bit weird for the user, when the operation is not valid.
For batch operations, if all of them are unlocked or locked, the corresponding operations should be disabled.A batch operation should operate normally only if it can have a target to execute.
This means that when the cells selected in a batch are all unlocked, then the unlock operation should be disabled unless it contains cells that can be unlocked.
Again this applies to the lock.

If users select locked and unlocked cells, could they batch lock or unlock these cells?

This is possible because unlock and lock can be applied to some of the cells.

@silySuper
Copy link
Author

1.Verified
2.Verified
3.Verified
4.Verified
5.Although after lock cell ,then spend icon is gray,but it can jump to send page ,send transaction successfully.

2023-10-17.16.59.36.2.mov

6.Verified
8.Verified

@yanguoyu
Copy link

10.Batch consume send balance is not fit for max balance.

IMO, when consuming some cells on the send page, clicking max will cost all of the selected cells. Or send the max of the wallet? @Danie0918 cc @silySuper
image

image

@Danie0918
Copy link
Contributor

10.Batch consume send balance is not fit for max balance.

IMO, when consuming some cells on the send page, clicking max will cost all of the selected cells. Or send the max of the wallet? @Danie0918 cc @silySuper image

image

Here the consume should be brought to the maximum value of the selected cell without the user manually clicking on max.

@yanguoyu
Copy link

10.Batch consume send balance is not fit for max balance.

IMO, when consuming some cells on the send page, clicking max will cost all of the selected cells. Or send the max of the wallet? @Danie0918 cc @silySuper image
image

Here the consume should be brought to the maximum value of the selected cell without the user manually clicking on max.

Okay, so the max value is the selected cells's total capacity but not wallet's total capacity.

@yanguoyu
Copy link

12.If I chosed cells include both locked and unlocked status.The balance in lock pop up window and in unlock pop up window show abnormal.In expect ,lock balance is about 236712,unlock balance is about 1513.8.

The title is unlocked balance, which means that total cell capacity will be unlocked. But not the current unlocked capacity.
I guess we should show all of the selected cells's capacity, what do you think? @Danie0918

@yanguoyu
Copy link

5,9 have been fixed. @silySuper

@silySuper
Copy link
Author

silySuper commented Oct 19, 2023

I want to regress in full node mode,but app always shows
截屏2023-10-19 10 29 30

This is my log:
neuron_debug_1697682768607.zip

@yanguoyu
Copy link

I want to regress in full node mode,but app always shows 截屏2023-10-19 10 29 30

This is my log: neuron_debug_1697682768607.zip

This is the log.

[2023-10-19 10:18:04.066] [error] Sync:ChildProcess: /private/var/folders/0g/2f1xzp_x46d7kr74mybk85jc0000gn/T/AppTranslocation/6C3F7234-9F9D-4D63-8FB0-9E95D4E8F132/d/Neuron 2.app/Contents/Resources/app.asar/node_modules/@ckb-lumos/rpc/lib/method.js:73
          throw new _exceptions.ResponseException(JSON.stringify(res.data.error));
                ^

ResponseException [Error]: {"code":-4,"message":"RPCModuleIsDisabled: This RPC method is in the module `Indexer`. Please modify `rpc.modules` in ckb.toml and restart the ckb node to enable it."}

It means you need to start ckb with --indexer, but the Neuron should show a dialog to notify users, I will check why the dialog is not shown.

@Danie0918
Copy link
Contributor

12.If I chosed cells include both locked and unlocked status.The balance in lock pop up window and in unlock pop up window show abnormal.In expect ,lock balance is about 236712,unlock balance is about 1513.8.

The title is unlocked balance, which means that total cell capacity will be unlocked. But not the current unlocked capacity. I guess we should show all of the selected cells's capacity, what do you think? @Danie0918

Sure, all of the selected cells's capacity should be shown here.

@silySuper
Copy link
Author

12.If I chosed cells include both locked and unlocked status.The balance in lock pop up window and in unlock pop up window show abnormal.In expect ,lock balance is about 236712,unlock balance is about 1513.8.

The title is unlocked balance, which means that total cell capacity will be unlocked. But not the current unlocked capacity. I guess we should show all of the selected cells's capacity, what do you think? @Danie0918

Sure, all of the selected cells's capacity should be shown here.

It means that only show all of the selected cells's capacity when batch lock or unlock ,and not distinguish lock or unlock cell in this window? @Danie0918
截屏2023-10-19 15 06 27

@yanguoyu
Copy link

I want to regress in full node mode,but app always shows 截屏2023-10-19 10 29 30
This is my log: neuron_debug_1697682768607.zip

This is the log.

[2023-10-19 10:18:04.066] [error] Sync:ChildProcess: /private/var/folders/0g/2f1xzp_x46d7kr74mybk85jc0000gn/T/AppTranslocation/6C3F7234-9F9D-4D63-8FB0-9E95D4E8F132/d/Neuron 2.app/Contents/Resources/app.asar/node_modules/@ckb-lumos/rpc/lib/method.js:73
          throw new _exceptions.ResponseException(JSON.stringify(res.data.error));
                ^

ResponseException [Error]: {"code":-4,"message":"RPCModuleIsDisabled: This RPC method is in the module `Indexer`. Please modify `rpc.modules` in ckb.toml and restart the ckb node to enable it."}

It means you need to start ckb with --indexer, but the Neuron should show a dialog to notify users, I will check why the dialog is not shown.

I have added a log when checking the external ckb node. You can package and try again without --indexer and wait for about 30s, if the dialog also can not show, upload the log again, then I will try to fix it. @silySuper

@Danie0918
Copy link
Contributor

12.If I chosed cells include both locked and unlocked status.The balance in lock pop up window and in unlock pop up window show abnormal.In expect ,lock balance is about 236712,unlock balance is about 1513.8.

The title is unlocked balance, which means that total cell capacity will be unlocked. But not the current unlocked capacity. I guess we should show all of the selected cells's capacity, what do you think? @Danie0918

Sure, all of the selected cells's capacity should be shown here.

It means that only show all of the selected cells's capacity when batch lock or unlock ,and not distinguish lock or unlock cell in this window? @Danie0918 截屏2023-10-19 15 06 27

Yes, no distinction is made here.

@silySuper
Copy link
Author

silySuper commented Oct 23, 2023

5.Verified
10.Verified.

@Danie0918 Danie0918 self-assigned this Oct 23, 2023
@Danie0918
Copy link
Contributor

  • anyone-can-pay

This can be categorized as follows:

  1. [Lock time] The cell has a time lock and you can't use it until 2023-09-05.
  2. [Lockscript ] This is a Cheque/ACP/Multisig cell and does not support unlocking.
  3. [Typescript ] This is a NFT/SUDT/Nervos DAO asset and does not support unlocking.
  4. [Unkonw] This is an uncataloged asset,please check and confirm before proceeding.

@yanguoyu
Copy link

  1. [Lock time] The cell has a time lock and you can't use it until 2023-09-05.

@Danie0918 Sometimes this cell has reached the unlock time, but the user does not unlock it. Do you think we should change to another tip with this condition?

@Danie0918
Copy link
Contributor

  1. [Lock time] The cell has a time lock and you can't use it until 2023-09-05.

@Danie0918 Sometimes this cell has reached the unlock time, but the user does not unlock it. Do you think we should change to another tip with this condition?

[Lock time - expires ] The time lock for this cell has expired and you need to claim it in Customized Assets before using it.

@yanguoyu
Copy link

@silySuper Please verify the left issues with the latest package.

@silySuper
Copy link
Author

1.No.10 Batch consume send balance is not fit for max balance does not need to change? @Danie0918
2.No.7
(1).verified
(2).verified
(3).Send NFT successful,but cell mangement shows type is unknown.

2023-11-22.17.31.50.2.mov
截屏2023-11-22 17 29 40

(4).verified

@yanguoyu
Copy link

Send NFT successful,but cell mangement shows type is unknown.

The Spore type has been adapted.

No.10 Batch consume send balance is not fit for max balance does not need to change?

I can't get the point. Does the batch consume not send max?

2023-11-22.19.13.07.mov

@silySuper
Copy link
Author

Send NFT successful,but cell mangement shows type is unknown.

The Spore type has been adapted.

No.10 Batch consume send balance is not fit for max balance does not need to change?

I can't get the point. Does the batch consume not send max?

2023-11-22.19.13.07.mov

截屏2023-11-23 10 32 12

here need change to chosed balance ,the same to send page ?

@yanguoyu
Copy link

Send NFT successful,but cell mangement shows type is unknown.

The Spore type has been adapted.

No.10 Batch consume send balance is not fit for max balance does not need to change?

I can't get the point. Does the batch consume not send max?
2023-11-22.19.13.07.mov

截屏2023-11-23 10 32 12 here need change to chosed balance ,the same to send page ?

@Danie0918

@Danie0918
Copy link
Contributor

1.No.10 Batch consume send balance is not fit for max balance does not need to change? @Danie0918 2.No.7 (1).verified

Send NFT successful,but cell mangement shows type is unknown.

The Spore type has been adapted.

No.10 Batch consume send balance is not fit for max balance does not need to change?

I can't get the point. Does the batch consume not send max?
2023-11-22.19.13.07.mov

截屏2023-11-23 10 32 12 here need change to chosed balance ,the same to send page ?

@Danie0918

This does lead to some misunderstandings, can we hide the balance in this case? @yanguoyu

@yanguoyu
Copy link

This does lead to some misunderstandings, can we hide the balance in this case?

It has been hidden when spending appointed cells. @silySuper

@Danie0918 Danie0918 moved this from 👀 Testing to 🚩Pre Release in Neuron Nov 27, 2023
@Danie0918 Danie0918 moved this from 🚩Pre Release to ✅ Done in Neuron Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants