JoinSEEDS / seeds_light_wallet

http://www.joinseeds.earth/
MIT License
42 stars 22 forks source link

[2/2] Citizenship upgrade fixes #1905

Closed n13 closed 2 years ago

n13 commented 2 years ago

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)

When upgrading to citizen there were many bugs and graphics errors.

The graphic and state errors appeared when upgrading from resident to citizen -> the citizenship card then disappears.

I traced the cause of these issues to the usage of a fixed ListView component - that component does not like when its contents change size.

✅ Checklist

🕵️‍♂️ Notes for Code Reviewer

isVisitor value in settings - was not being used, removed.

isCitizen value in settings

Fixed list view issues

A fixed list view shows errors when component sizes inside the fixed list view change. So adding or removing the citizen card on the profile view caused graphics errors. The components inside the list view would change size, but the list view would not update.

Bugfix:

🙈 Screenshots

image

Process

Simulator Screen Shot - iPhone 11 - 2022-06-22 at 13 45 08 Simulator Screen Shot - iPhone 11 - 2022-06-22 at 13 45 13 Simulator Screen Shot - iPhone 11 - 2022-06-22 at 13 45 16

👯‍♀️ Paired with

n13 commented 2 years ago

Realizing I put 2 fixes in this PR, I will split this in 2

n13 commented 2 years ago

Fixed merge issues

n13 commented 2 years ago

I confirmed it is still all working, no graphics issues, merging this now

n13 commented 2 years ago

Simulator Screen Shot - iPhone 8 Plus - 2022-06-24 at 12 47 53 Simulator Screen Shot - iPhone 8 Plus - 2022-06-24 at 12 47 56 Simulator Screen Shot - iPhone 8 Plus - 2022-06-24 at 12 47 59