-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
Updated to solve the QR sizing issue, including the new full transaction or hash-only signing (this is not activated atm, hence the in-progress, will flip the switch when the mobile client is ready) EDIT: Until the app is updated with allowing for hashes and the feature enabled here, things like contract deployments still won't show up (any unsigned rlp over around 2.7k will not show the QR), however the confirmation case now will show the QR. |
# Conflicts: # js/scripts/test.js # js/src/ui/index.js
any reason we force the user to click a button in order to input the signed transaction? |
Seriously running out of space of the pop-up screen, with both the large QR codes & camera visible at the same time, it is not really optimal or quite usable (scrolling in some cases). Click is basically the state change from "show unsigned" to "read signed". Having said all that, I have been "playing" with some ideas here to try and get both on the same view, nothing that sticks yet without some other drawbacks. |
I think you can request permissions to access the camera only as a response to user interaction (so clicking something). Although if the permissions are already granted it should work fine. |
ok so maybe fire up the camera in the background if the permissions are there. if no permissions or the user wants an image if what the camera is seeing, then they click the button like now. |
also, this no longer builds properly when using
|
Just merged in the latest master into this branch. Just run |
As for the camera + QR display at once - apart from the sizing issues, it opens the following rabbit hole: Each external signed tx will have the camera view (one for each external tx), each will see the same and scan at the same time. With the current nested layouts, there is no way to elegantly solve this since each tx is not aware of anything outside its sandbox and info, The same issue is to be solved in #5322 - which is effectively a complete rework of how the view fits together, managing account/recipient/origin state at a higher level. My suggestion would be to tackle that annoyance in there. |
ok - so is this good to go otherwise? |
No show-stoppers I'm aware of. |
Required Native Signer app (recent commit >= 28 Mar)
External account creation -
Transaction sending -
Todo (follow-up PRs) -