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

Account selection: error and app freezing when deselecting account one by one #18753

Closed
qoqobolo opened this issue Feb 7, 2024 · 8 comments · Fixed by #18759
Closed

Account selection: error and app freezing when deselecting account one by one #18753

qoqobolo opened this issue Feb 7, 2024 · 8 comments · Fixed by #18759
Assignees
Labels
community-account-selection https://www.notion.so/Ledger-Drops-b0df9c843f904bb380133375bae3faa7
Milestone

Comments

@qoqobolo
Copy link
Contributor

qoqobolo commented Feb 7, 2024

Bug Report

Problem

11111video_2024-02-07_18-42-49.mp4

Reproduction

  1. Create several accounts
  2. Go to the account selection page
  3. Start deselecting accounts one by one

Actual behavior

Error occurs and the app freezes

Logs

Status-debug-logs (85).zip

Additional Information

@qoqobolo qoqobolo added bug E:Mobile Release 1.27 community-account-selection https://www.notion.so/Ledger-Drops-b0df9c843f904bb380133375bae3faa7 labels Feb 7, 2024
@qoqobolo qoqobolo added this to the 2.27.0 Alpha milestone Feb 7, 2024
@Parveshdhull Parveshdhull self-assigned this Feb 8, 2024
@Parveshdhull
Copy link
Member

Parveshdhull commented Feb 8, 2024

Hi @qoqobolo, Thank you very much for finding this issue.

Error occurs when we deselect account which makes us eligible for joining.
I fixed the bug and error don't occur anymore.

But even if there is no error, app is in weird state at the time. Please can you check out pr and let me know what should be the expected behavior. Is no error enough?

(Also please can you share designs related to these files. Thank you)

@Parveshdhull
Copy link
Member

pr #18759

@qoqobolo
Copy link
Contributor Author

qoqobolo commented Feb 8, 2024

Error occurs when we deselect account which makes us eligible for joining.

Oh interesting, that was my first thought but I failed to reproduce it this way for some reason.
Thanks for making it clear and for the fix @Parveshdhull !

But even if there is no error, app is in weird state at the time

Could you elaborate please on what you mean by weird state?
This missing icon?
Screenshot 2024-02-08 at 12 56 12

Also please can you share designs related to these files

Sure, here it is
https://www.figma.com/file/h9wo4GipgZURbqqr1vShFN/Communities-for-Mobile?type=design&node-id=15331-288058&mode=design&t=wQ3Qe2ZFSVFQCUFD-4

@Parveshdhull
Copy link
Member

Parveshdhull commented Feb 8, 2024

Hi, Thank you very much for designs, by weird state I mean (Once we deselect account with required token)

  1. In Addresses for permissions screen, should we keep showing Eligible to join as Member or hide it, or instead display You are not eligible anymore.
  2. In Request to join screen there are no indicator about eligibility but Slide to request to join is still enabled. Should we disable it?
  3. Once we deselect required account, overview screen just shows You are not eligible to join and don't let accounts to be selected again. Until community reopened.

Maybe they only looks confusing to me, or they are still in under development. Please let me know if removal of error is enough? In that case PR is ready :)

@Parveshdhull
Copy link
Member

Parveshdhull commented Feb 8, 2024

Oh interesting, that was my first thought but I failed to reproduce it this way for some reason.

Yes, also in my case sometime error only logged in metro without any crashes or freezing.

@Parveshdhull
Copy link
Member

  1. In Addresses for permissions screen, should we keep showing Eligible to join as Member or hide it, or instead display You are not eligible anymore.

Ok, in this case we should display These addresses don’t contain tokens needed to join (ref)

@Parveshdhull
Copy link
Member

Parveshdhull commented Feb 8, 2024

And disables confirm button. Cool I will disable this button and this will solve other 2 issues.

@qoqobolo
Copy link
Contributor Author

qoqobolo commented Feb 8, 2024

Cool I will disable this button and this will solve other 2 issues.

Thank you very much @Parveshdhull!
Yes the account selection feature is still under development, and it will be a great help from your side to the Ledger Drops crew who is working hard on it!
We've just started testing the branch and there is still a lot of work to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-account-selection https://www.notion.so/Ledger-Drops-b0df9c843f904bb380133375bae3faa7
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants