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

Philipye314/imp 2 qr code scanner #3

Merged
merged 63 commits into from
Oct 13, 2023

Conversation

philipye314
Copy link
Contributor

@philipye314 philipye314 commented Oct 1, 2023

What's new in this PR

Description

Created barcode scanner that reads information from a barcode and displays it on screen

Screenshots

(SORRY IDK WHY ITS SO BIG)
IMG_4565

How to review

Open the QRCodeScanner subfolder in app/BottomTabNavigation/QRCodeScanner. The display of the camera and the crosshair is all dictated by CSS in the corresponding styles.ts file. I'd like some feedback on how exactly the crosshair should be displayed (I. e. should it be around the camera window? should the camera window take up the full screen, with the crosshair overlayed on top?). Should just be reviewed as a final commit. Haven't been able to test user permissions because expo never asks me for camera permission, but I wrote some basic logic to handle that -- not sure if that's part of my job. Otherwise the QRCodeScanner should be functional and you'll know it works if the dummy text below the crosshair updates.

Next steps

Relevant Links

Online sources

Related PRs

CC: @stephaniewong2

@linear
Copy link

linear bot commented Oct 1, 2023

IMP-2 QR Code Scanner

Description

Create a new branch by clicking the far right icon in the top right corner and pull from main: git pull origin main -r

Create the QR Code Scanner. I will provide a dummy QR code to confirm that the QR Code Scanner works. The links below show the implementation V4V used last year but do a little bit of research and see if this is a best fit for us before starting! Let me (or anyone) know if you need any help along the way!

iPhone 14 - 2.png

Useful Links

V4V Bar Code Scanner:

https://github.com/calblueprint/vouchers4veggies/pull/38/files#diff-e33753df3a21ff971b095e7eeaa09bb3a9a82a883fedc109dea022d8cc982293

Expo BarCodeScanner documentation:

https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/

Related PRs

@philipye314 philipye314 marked this pull request as draft October 1, 2023 23:21
@philipye314 philipye314 force-pushed the philipye314/imp-2-qr-code-scanner branch from efc251e to 243119f Compare October 5, 2023 23:08
@philipye314 philipye314 marked this pull request as ready for review October 8, 2023 09:52
Copy link
Collaborator

@stephaniewong2 stephaniewong2 left a comment

Choose a reason for hiding this comment

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

So good! I think removing the require() statement should fix the eslint errors

foloye and others added 3 commits October 10, 2023 22:41
* wip: intializing db

* wip: fixing branch name

* feat: intialized database

* update to feature

* fixed eslint errors

* current supabase update

* fixed client initialization

* feat: intialize database is done

* changed touchableopactiy imports

---------

Co-authored-by: foloy <[email protected]>
Co-authored-by: Stephanie Wong <[email protected]>
Copy link
Collaborator

@stephaniewong2 stephaniewong2 left a comment

Choose a reason for hiding this comment

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

Few minor comments but besides that looks good to me! Don't forget to pull from main because it'll block you from merging!

src/screens/QRCodeScanner/QRCodeScanner.tsx Outdated Show resolved Hide resolved
src/app/(BottomTabNavigation)/Cases/styles.ts Outdated Show resolved Hide resolved
@philipye314 philipye314 merged commit a550039 into main Oct 13, 2023
2 checks passed
@philipye314 philipye314 deleted the philipye314/imp-2-qr-code-scanner branch October 15, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants