-
Notifications
You must be signed in to change notification settings - Fork 45
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
Ionic Bluetooth UI #1841
Ionic Bluetooth UI #1841
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1841 +/- ##
==========================================
- Coverage 81.18% 80.77% -0.41%
==========================================
Files 193 195 +2
Lines 5101 5161 +60
Branches 944 949 +5
==========================================
+ Hits 4141 4169 +28
- Misses 960 992 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Couple of things I noticed:
|
@donouwens mentioned really confusing wording on instructions upon connecting Ledger device. Should be for Bluetooth:
Should be for USB:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just looked at tests
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromBleLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromBleLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/FromBleLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
a4ca43d
to
c88bb9a
Compare
db2d6d1
to
26ae1bc
Compare
src/app/pages/OpenWalletPage/Features/FromLedger/__tests__/index.test.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/ListBleLedgerDevicesModal/index.tsx
Outdated
Show resolved
Hide resolved
src/app/pages/OpenWalletPage/Features/ListBleLedgerDevicesModal/index.tsx
Show resolved
Hide resolved
next: () => void | ||
} | ||
|
||
export function ListBleLedgerDevicesModal(props: ListBleLedgerDevicesModalProps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the difference is that we use native modal for usb and custom one for ble?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sort of. Listing is not native, connect to a single device is. This will probably be reworked for desktop support - but the API is still not officially released yet(at least the last time I checked).
There is one bug compared to master branch which affects extension master PR: |
Can you try again? And make a video of it. As I was unable to reproduce. |
32dbbb9
to
2f5a7ca
Compare
@buberdds this has been fixed now, even though the fix is not really sophisticated. The issue was, that the enumerating modal is not available on the Thanks for noticing BTW 👍 |
I am still having issues with using this:
depends on browser or browser's settings we are not showing hint about disabled Ledger button anymore (this affects mobile too when user has BLE disabled) disabled BLE button label - my laptop has BLE enabled, so this message fits mobile devices only
new extension popup Ledger options do not make sense - grant Ledger access and disabled Ledger button next to it
|
- update usb and ble instructions - change opening Ledger through usb to more general text
- due to "Error: Web Bluetooth API not available in this browser" in CI
- rename webExtensionLedgerAccess to webExtensionUSBLedgerAccess - use runtimeIs for determining current environment app is running in
- remove unused code - update FromLedger test, to reflect runtimeIs changes
- so there is no conflict when experimental flags are enabled on web
Yes, so currently there is no official support for desktop - due to Web Bluetooth API still being in experimental mode. This has been changed now. Previously it was only disabled in extension. Now it checks if the app is running on native Capacitor platform(Android or iOS)
After our sync, I dropped the check. So now Ledger button is always enabled on this screen. And the unsupported messages will appear in the next screen. Also updated Bluetooth and WebUSB messages, to make it more generic
After rebase I was unable to reproduce, not sure if this was fixed in the meantime. Can you confirm it works for you as well?
As per our sync discussion, we want to make it consistent. Also, there might be Bluetooth support coming to extension, when Web Bluetooth API is no longer in experimental mode.
I was unable to reproduce. Did your Ledger maybe run out of battery? Or something similar? I see that you have your Ledger paired. Can you try again, and write the exact steps to reproduce? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add GitHub issue to explore modal unification (usb /ble )
Solution
This PR is build upon #1739, #1784 and #1769. It adds additional steps, for user to choose either USB or BLE Ledger device. BLE Ledger device is currently only enabled and supported on mobile devices(through Ionic), this may be subject to change in the future.
Links
Android test:
https://github.com/oasisprotocol/oasis-wallet-web/assets/9722540/6e0542f4-f92e-4788-aaba-ed9c6ba009cb