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

feat(wallet): Fix icons and list rendering bugs #3827

Merged
merged 2 commits into from
Sep 15, 2021
Merged

feat(wallet): Fix icons and list rendering bugs #3827

merged 2 commits into from
Sep 15, 2021

Conversation

samsiegart
Copy link
Contributor

@samsiegart samsiegart commented Sep 15, 2021

Issue #3793

There was a bug that also affected the old implementation where changing a dapp petname would move it in the list (they're sorted alphabetically), but the text inputs would get swapped for the dapps that changed places. It was really obvious in the requests view because if multiple dapps showed up at once they'd all end up with the same petname. The fix was to properly index the list like: #each items as item, i -> #each items as item, i (id(item)). This also reduces some layout thrashing/flickering as requests are shown/hidden.

Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Feel free to land this, and you can address the style issue I raised in a later PR (if ever).

Comment on lines 17 to 19
'type': 'payment',
'data': i
'data': i,
'id': i.id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor stylistic thing: for properties that are valid identifiers, please remove the single-quotes.

i.e.

    type: 'payment',
    data: i,
    id: i.id,

Copy link
Contributor Author

@samsiegart samsiegart Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, done!

@samsiegart samsiegart enabled auto-merge (squash) September 15, 2021 17:04
@samsiegart samsiegart merged commit 02b7554 into master Sep 15, 2021
@samsiegart samsiegart deleted the wallet branch September 15, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants