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

Allow Users to select Photo from Camera Roll to Field Notes #72

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

AndchooChen
Copy link
Collaborator

@AndchooChen AndchooChen commented Sep 17, 2023

Hello guys! Hope you are doing well! This pull request attempts to fix the issue 69 (OH YEAH).

As of now, when the user is creating a field note, the user is not able to add a photo from their gallery to insert into their field note. It only gives access to the user so that he or she can add a photo that is directly taken from the camera at that moment. The goal of this pull request is to give access to the user so that they can finally add photos from their camera roll.

Previously, users press on the photoScroller icon, it directs them to their camera app to snap a photo. With this PR, the icon will now ask the user if they want to instead choose from camera roll with an Alert. See screenshot below:

Screen Shot 2023-09-19 at 11 23 57 PM Screen Shot 2023-09-19 at 11 24 48 PM

In the previous version of the app, this alert would not pop up and would send users directly to their camera. Furthermore, in the AddNoteScreen.test, a test was created to check if the alert pops up correctly.

@yashb196 yashb196 self-requested a review September 17, 2023 19:15
@yashb196 yashb196 added enhancement New feature or request good first issue Good for newcomers labels Sep 17, 2023
@AndchooChen AndchooChen changed the title Allow Users to select Photo from Gallery in Add Field Notes Allow Users to select Photo from Camera Roll to Field Notes Sep 20, 2023
@AndchooChen AndchooChen marked this pull request as ready for review September 20, 2023 04:26
Copy link
Collaborator

@yashb196 yashb196 left a comment

Choose a reason for hiding this comment

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

The implementation is good and we can go ahead with this requesting you to please remove the project ID from the current patch as that might create issues for other people to run on their devices

@yashb196
Copy link
Collaborator

Approving the PR

@yashb196 yashb196 merged commit 0fece48 into main Sep 25, 2023
1 check passed
@AndchooChen AndchooChen linked an issue Sep 26, 2023 that may be closed by this pull request
@yashb196 yashb196 deleted the photoFromGallery branch June 15, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Dev-Done
Development

Successfully merging this pull request may close these issues.

Upload photos from Gallery
2 participants