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

support(Deeplink): Add Deeplink for Add Account and Accounts page #1247

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

mcayuelas-ledger
Copy link
Contributor

@mcayuelas-ledger mcayuelas-ledger commented Sep 12, 2022

πŸ“ Description

Add Deeplink for Add Account and Accounts page

❓ Context

βœ… Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

πŸ“Έ Demo

πŸš€ Expectations to reach

Start LLM and use adb shell am start -W -a android.intent.action.VIEW -d "ledgerlive://add-account?currency=ethereum" com.ledger.live.debug to trigger Deeplink for add-account. Ethereum should be filled by default

Please make sure you follow these Important Steps.

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

@vercel
Copy link

vercel bot commented Sep 12, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
live-common-tools βœ… Ready (Inspect) Visit Preview Sep 26, 2022 at 0:34AM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Sep 26, 2022 at 0:34AM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Sep 26, 2022 at 0:34AM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Sep 26, 2022 at 0:34AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Sep 12, 2022

πŸ¦‹ Changeset detected

Latest commit: 9119933

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 Sep 12, 2022
@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Base: 48.12% // Head: 45.93% // Decreases project coverage by -2.18% ⚠️

Coverage data is based on head (7f3b451) compared to base (521582f).
Patch has no changes to coverable lines.

❗ Current head 7f3b451 differs from pull request most recent head 9119933. Consider uploading reports for the commit 9119933 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1247      +/-   ##
===========================================
- Coverage    48.12%   45.93%   -2.19%     
===========================================
  Files          688      631      -57     
  Lines        30322    27517    -2805     
  Branches      7905     7372     -533     
===========================================
- Hits         14591    12641    -1950     
+ Misses       15668    14830     -838     
+ Partials        63       46      -17     
Flag Coverage Ξ”
test 45.93% <ΓΈ> (-2.19%) ⬇️

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

Impacted Files Coverage Ξ”
libs/ledger-live-common/src/apps/polyfill.ts 66.66% <0.00%> (-22.81%) ⬇️
libs/ledger-live-common/src/range.ts 94.87% <0.00%> (-2.57%) ⬇️
...e-common/src/families/cosmos/js-synchronisation.ts 9.00% <0.00%> (-1.62%) ⬇️
...edger-live-common/src/exchange/swap/utils/index.ts 63.75% <0.00%> (-1.32%) ⬇️
...edger-live-common/src/hw/extractOnboardingState.ts 94.11% <0.00%> (-0.76%) ⬇️
...dger-live-common/src/currencies/sortByMarketcap.ts 86.00% <0.00%> (-0.54%) ⬇️
...er-live-common/src/families/stellar/api/horizon.ts 22.37% <0.00%> (-0.48%) ⬇️
libs/ledger-live-common/src/currencies/support.ts 91.66% <0.00%> (-0.34%) ⬇️
libs/ledger-live-common/src/mock/account.ts 96.15% <0.00%> (-0.03%) ⬇️
libs/ledger-live-common/src/apps/support.ts 31.81% <0.00%> (ΓΈ)
... and 73 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.

@github-actions
Copy link

github-actions bot commented Sep 12, 2022

@LFBarreto

Screenshots: ❌

It seems this PR contains screenshots that are different from the base branch.
If you are sure all those changes are correct, you can comment on this PR with /generate-screenshots to update those screenshots.

Make sure all the changes are correct before running the command, as it will commit and push the new result to the PR.

windows

Actual Diff Expected
market-btc-buy-page-actual market-btc-buy-page-diff market-btc-buy-page-expected
market-btc-buy-page-actual market-btc-buy-page-diff market-btc-buy-page-expected

Copy link
Contributor

@mle-gall mle-gall left a comment

Choose a reason for hiding this comment

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

LGTM !

@@ -5,7 +5,7 @@ import { filterPlatformApps } from "@ledgerhq/live-common/platform/filters";
import { getPlatformVersion } from "@ledgerhq/live-common/lib/platform/version";
import { NavigatorName, ScreenName } from "../const";

Copy link
Contributor

Choose a reason for hiding this comment

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

just a remark: I think that this whole file is useless and could be removed, in the end it's only used in apps/ledger-live-mobile/src/screens/NotificationCenter/NewsRow.tsx where the handler could be replaced by a simple call to
Linking.openURL (linking will then use the config specified in src/index.tsx to know how to handle the deeplink.

It would be a good opportunity to use a deeplinking related PR to do this clean up)

(There is just a need to double check that all the logic covered here is properly covered in the src/index.tsx config)

Copy link
Contributor

Choose a reason for hiding this comment

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

actually im unsure it will work with Linking.openURL πŸ€” thats why we made a seperate handler in the first place.
to try again later and remove it

Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger left a comment

Choose a reason for hiding this comment

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

LGTM, I just highlighted in my previous comments some opportunities with this PR to tackle some tech debt:

  • duplicated & out of sync documentation (wiki)
  • possible (to double check) removal of src/navigation/useDeepLinking.ts which is just a duplication of the configuration of Linking already implemented in src/index.tsx
  • typing of some navigation routes -> actually I'm not sure this should be handled in this PR as there are already ongoing efforts to do that at the scope of the entire ap

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.

None yet

5 participants