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

Improve layout in ValidateOnDevice #1975

Merged
merged 5 commits into from
Nov 28, 2022

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Nov 25, 2022

📝 Description

Device actions have so much padding all over the place that some critical info is out of view and on some screens you need to (not obviously) scroll to see it. This is even worse with some of the bigger lottie animations where the title is not even visible depending on the screen size.
This particular screen has been validated with Aamir from design by the way, I'm not just improvising.

❓ Context

  • Impacted projects: ledger-live-mobile
  • Linked resource(s): FAT-689

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

Before (this is on an Android device with the display settings set to "big" to emulate what it would be like on a smaller screen): the essential info is almost out of the visible part of the scroll view.

layout.mp4

After: much more space and room for more information without scrolling

Screenshot 2022-11-25 at 16 31 30

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@ofreyssinet-ledger ofreyssinet-ledger requested a review from a team as a code owner November 25, 2022 15:51
@changeset-bot
Copy link

changeset-bot bot commented Nov 25, 2022

🦋 Changeset detected

Latest commit: 29fdc1e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
live-mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the mobile Has changes in LLM label Nov 25, 2022
@vercel
Copy link

vercel bot commented Nov 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
live-common-tools ✅ Ready (Inspect) Visit Preview Nov 25, 2022 at 5:20PM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Nov 25, 2022 at 5:20PM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Nov 25, 2022 at 5:20PM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Nov 25, 2022 at 5:20PM (UTC)

>
export const TitleText = ({ children }: { children: React.ReactNode }) => (
<Flex>
<Text textAlign="center" variant="h4" fontWeight="semiBold">
Copy link
Contributor Author

@ofreyssinet-ledger ofreyssinet-ledger Nov 25, 2022

Choose a reason for hiding this comment

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

validated with Aamir, we don't need the huge padding above and below and h4 is a better variant than the <Log /> component.

<InnerContainer>
<AnimationContainer>
<Flex marginBottom={isBigLottie ? 0 : 8}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

validated with Aamir

@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Base: 72.48% // Head: 42.85% // Decreases project coverage by -29.62% ⚠️

Coverage data is based on head (29fdc1e) compared to base (2d8ba90).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1975       +/-   ##
============================================
- Coverage    72.48%   42.85%   -29.63%     
============================================
  Files           41      624      +583     
  Lines         2726    25895    +23169     
  Branches       559     7155     +6596     
============================================
+ Hits          1976    11098     +9122     
- Misses         747    14745    +13998     
- Partials         3       52       +49     
Flag Coverage Δ
test 42.85% <ø> (-29.63%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...mmon/src/exchange/testCurrencyConfig/data/coins.ts 100.00% <ø> (ø)
libs/ledgerjs/packages/hw-app-trx/src/utils.ts
...erjs/packages/hw-app-btc/src/newops/accounttype.ts
...js/packages/hw-app-btc/src/newops/psbtFinalizer.ts
...js/packages/hw-app-btc/src/serializeTransaction.ts
.../ledgerjs/packages/hw-app-btc/src/newops/policy.ts
libs/ledgerjs/packages/hw-app-btc/src/BtcNew.ts
libs/ledgerjs/packages/hw-app-solana/src/Solana.ts
.../ledgerjs/packages/hw-app-btc/src/finalizeInput.ts
...-app-btc/src/startUntrustedHashTransactionInput.ts
... and 656 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ofreyssinet-ledger ofreyssinet-ledger merged commit ac8bdb8 into develop Nov 28, 2022
@ofreyssinet-ledger ofreyssinet-ledger deleted the bugfix/fat-689-tx-layout-issue branch November 28, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants