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

Fix animation transition for middle action in SwippeableRow #1030

Merged
merged 3 commits into from
Aug 21, 2022

Conversation

aussedatlo
Copy link
Contributor

@aussedatlo aussedatlo commented Jun 18, 2022

Description

Relates to issue: None

Fix animation transition for middle action in both OnchainSwippeableRow and LightningSwippeableRow.
In fact, the middle button (if supported) had a different animation width compared to other, resulting in strange result.

Before:

error.webm

After:

correction.webm

Tested with Nexus 5 (emulated)

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Configuration change
  • Locales update
  • Quality assurance
  • Other

Checklist

  • I’ve run npm run tsc and made sure my code compiles correctly
  • I’ve run npm run lint and made sure my code didn’t contain any problematic patterns
  • I’ve run npm run prettier and made sure my code is formatted correctly
  • I’ve run npm run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • Android
  • iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • LND
  • c-lightning-REST
  • spark
  • Eclair
  • LndHub

Locales

  • I’ve added new locale text that requires translations
  • I’m aware that new translations should be made on the Zeus Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • Contributors will need to run npm install after this PR is merged in
  • 3rd party dependencies have been modified:
    • verify that package.json and package-lock.json have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • Changes were made that require an update to the README
  • Changes were made that require an update to onboarding

depends on supportsCoinControl and not supportsRouting
The actual value of 100 does not match with any other width animated value.
The value should be 200 because if present, the width of others is 200.
Since the routing and coins width animations are correct,
the button can appear on the right at the beginning of the swap.
Adding opacity transition hide this buttons.
@aussedatlo aussedatlo changed the title Fix animation transition for middle action in both OnchainSwippeableRow and LightningSwippeableRow Fix animation transition for middle action in SwippeableRow Jun 18, 2022
@aussedatlo
Copy link
Contributor Author

Any news on integrating this ?

@aussedatlo
Copy link
Contributor Author

Behavior reproduced on emulated nexus 5, with LND on polar.
Updated description with before and after videos.

@kaloudis
Copy link
Contributor

kaloudis commented Aug 8, 2022

@aussedatlo looks great! thanks for including the videos to illustrate the change

have you tried this against LNDHub instances?

@kaloudis kaloudis added this to the v0.6.6 milestone Aug 8, 2022
@kaloudis
Copy link
Contributor

LGTM w/ LNDHub! Thanks for the PR.

@kaloudis kaloudis merged commit 65c6537 into ZeusLN:master Aug 21, 2022
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