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

WIP Scan invalid qr-code and dismiss error with no redirect #8327

Closed
wants to merge 1 commit into from
Closed

WIP Scan invalid qr-code and dismiss error with no redirect #8327

wants to merge 1 commit into from

Conversation

krisc
Copy link

@krisc krisc commented May 30, 2019

This PR fixes #5287

Originally, I submitted #7745, but it caused this regression #8044

This PR is the same as #7745 but uses an atom check in src/status_im/ui/screens/qr_scanner/views.cljs

This is a WIP because there is still more work to do:

  1. Another issue came up where after an invalid code is scanned, after dismissing the error message another QR code can be scanned (confirmed that the :barcode-read? screen paramater is indeed toggled), but an error message does not show up.
  2. The :qr-scanner.ui/qr-code-error-dismissed event is not yet fired when opening the QR scanner from starting a new chat. This changed from when I submitted my original PR. It used to be in src/status_im/contact/core.cljs but not anymore. If anyone can direct me where it is now, that would be greatly appreciated.

@krisc krisc requested a review from a team as a code owner May 30, 2019 16:00
@status-github-bot
Copy link

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?

@status-im-auto
Copy link
Member

status-im-auto commented May 30, 2019

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
9f48655 #1 2019-05-30 16:02:49 ~1 min ios 📄 log
9f48655 #1 2019-05-30 16:03:08 ~2 min linux 📄 log
9f48655 #1 2019-05-30 16:03:24 ~2 min macos 📄 log
9f48655 #1 2019-05-30 16:03:35 ~2 min windows 📄 log
9f48655 #1 2019-05-30 16:06:57 ~6 min android-e2e 📄 log
9f48655 #1 2019-05-30 16:07:07 ~6 min android 📄 log

@krisc
Copy link
Author

krisc commented May 30, 2019

My sincerest apologies that it's taking so long. Ever since we switched to nix, I've been struggling with building and running the app for testing. I follow these steps as my development flow. I'm using my android phone to test:

  1. make android-ports
  2. make startdev-android-real
  3. make react-native-android
  4. make run-android
  5. open http://localhost:4567/ in my browser for re-frisk

Somewhere in this process, my laptop usually freezes. If anyone has any tips for me, that would be greatly appreciated. However, it may be that my laptop is just too old and slow :(

@flexsurfer
Copy link
Member

@pombeirp could you help, please?

@pedropombeiro
Copy link
Contributor

@krisc can you provide some more details, like laptop hardware specs (how much RAM, is the disk an SSD, etc)? You mention that somewhere along the process, the laptop freezes. Can you pinpoint in which of those steps it freezes (make react-native-android, make run-android)?

@flexsurfer
Copy link
Member

hey @krisc is this PR still relevant or can we close it ?

@krisc
Copy link
Author

krisc commented Jun 13, 2019

Still relevant. Just waiting for some help.

@krisc
Copy link
Author

krisc commented Jun 13, 2019

Oops I missed @pombeirp comment somehow. I reply in a bit

@krisc
Copy link
Author

krisc commented Jun 13, 2019

@krisc can you provide some more details, like laptop hardware specs (how much RAM, is the disk an SSD, etc)? You mention that somewhere along the process, the laptop freezes. Can you pinpoint in which of those steps it freezes (make react-native-android, make run-android)?

This is the laptop I have with all the stock parts: https://www.lenovo.com/us/en/laptops/thinkpad/e-series/e545/

The freezing usually happens after make run-android. The app gets launched on my phone, and then the make react-native-android starts loading dependencies (I think that's what's happening?) This is when my laptop freezes. I noticed that it's less likely to freeze when I stop the terminal which ran make startdev-android-real. When the app is finished loading, I just re-run make startdev-android-real and then everything is fine. But if it does freeze, I just keep trying until it doesn't freeze. I think it's just that my laptop is old :/

@flexsurfer
Copy link
Member

@krisc @pombeirp hey any updates guys?

@krisc
Copy link
Author

krisc commented Jul 1, 2019

@krisc @pombeirp hey any updates guys?

I mentioned this in the #status-gitoin channel, but I'm participating in the Beyond Blockchain hackathon until July 10th and putting work on these bounties on hold until then.

@flexsurfer
Copy link
Member

hey @krisc feel free to reopen this one or create a new one , thanks

@flexsurfer flexsurfer closed this Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Do not redirect to home tab when closing error dialog after scanning invalid QR contact code
4 participants