You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Version Number: 1.4.6.1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Please re-state the problem that we are trying to solve in this issue.
Profile photo upload options are missing. Currently I can take a photo or choose one from the gallery
What is the root cause of that problem?
In here, we allow the "Choose document" options only if the picker type is not CONST.ATTACHMENT_PICKER_TYPE.IMAGE. This is not correct because it's normal that the user can select images from file, just that we should restrict the type of files they can pick instead of allowing all by the RNDocumentPicker.types.allFiles option here.
What changes do you think we should make in order to solve the problem?
Make this a getDocumentPickerOptions which will accept the picker type, if the picker type is IMAGE, we should only allow the type RNDocumentPicker.types.images, otherwise allow type RNDocumentPicker.types.allFiles.
In here, use getDocumentPickerOptions(type) to get the correct document picker options based on the picker type
Remove the condition type !== CONST.ATTACHMENT_PICKER_TYPE.IMAGEhere since we should allow the Choose from file option, we already restrict the file type in the steps above
We can consider rename the copy of the button from "Choose document" to something like "Choose from files" since it "document" is a bit vague and can mislead the user.
What alternative solutions did you explore? (Optional)
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
Extra Notes regarding payment: @DylanDylann - there is regression here but I mixed up the payments. I still input the $500 amount, instead of $250. This was my mistake and we will leave the amount paid as is.
Everyone has been paid via Upwork, so I'm closing.
BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
[-]iOS - Profile - Photo upload options are missing[/-][+][$500] iOS - Profile - Photo upload options are missing[/+]melvin-bot commentedon Nov 30, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01cb01e156c8ab43dd
melvin-bot commentedon Nov 30, 2023
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 30, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 30, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (
External)Krishna2323 commentedon Nov 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
iOS - Profile - Photo upload options are missing
What is the root cause of that problem?
We disable the
chooseDocumentoption whenever thetypepassed toAttachmentPickeris an image.What changes do you think we should make in order to solve the problem?
I think we can remove the prop
type={CONST.ATTACHMENT_PICKER_TYPE.IMAGE}passed toAttachmentPickersince we validate the file type on upload.Result
choose_document_option.mp4
neonbhai commentedon Nov 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
iOS - Profile - Photo upload options are missing
What is the root cause of that problem?
This happens as we remove the browse option when we are choosing an image in [AttachmentPicker/index.native.js]:
App/src/components/AttachmentPicker/index.native.js
Lines 184 to 188 in 4fc20d3
What changes do you think we should make in order to solve the problem?
We should remove this check from the code. This allows the user to choose an image from a path they remember in the interal storage or iCloud drive.
Result
Screen.Recording.2023-12-01.at.3.16.30.AM.mov
What alternative solutions did you explore? (Optional)
We can rename the option to
Choose Fileas this better align the purpose of this option.This involves adding a translation key here:
App/src/languages/en.ts
Line 287 in 4fc20d3
Result
Screen.Recording.2023-12-01.at.3.16.30.AM.mov
neonbhai commentedon Nov 30, 2023
Proposal
Updated
Added detailed links to where the problem is. With Alternative step to rename the option. Screencast showing how alt step will look like.
dukenv0307 commentedon Dec 1, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Profile photo upload options are missing. Currently I can take a photo or choose one from the gallery
What is the root cause of that problem?
In here, we allow the "Choose document" options only if the picker type is not
CONST.ATTACHMENT_PICKER_TYPE.IMAGE. This is not correct because it's normal that the user can select images from file, just that we should restrict the type of files they can pick instead of allowing all by theRNDocumentPicker.types.allFilesoption here.What changes do you think we should make in order to solve the problem?
getDocumentPickerOptionswhich will accept the picker type, if the picker type isIMAGE, we should only allow the typeRNDocumentPicker.types.images, otherwise allow typeRNDocumentPicker.types.allFiles.getDocumentPickerOptions(type)to get the correct document picker options based on the picker typetype !== CONST.ATTACHMENT_PICKER_TYPE.IMAGEhere since we should allow the Choose from file option, we already restrict the file type in the steps aboveWhat alternative solutions did you explore? (Optional)
NA
73 remaining items
Santhosh-Sellavel commentedon Jan 27, 2024
@alexpensify
PR is ready for review
I'm unavailable next week, so unassigning here please assign a new C+ here to move this forward
DylanDylann commentedon Jan 27, 2024
I can review PR as C+
srikarparsi commentedon Jan 28, 2024
Sounds good, assigning you to this and the PR @DylanDylann
DylanDylann commentedon Jan 29, 2024
@srikarparsi Could you help to assign me to this issue again ?
melvin-bot commentedon Jan 29, 2024
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
alexpensify commentedon Feb 12, 2024
@dukenv0307 any update to address the PR feedback? Thanks!
alexpensify commentedon Feb 20, 2024
PR is moving forward but looks like there is an inquiry that needs to be addressed.
melvin-bot commentedon Feb 27, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
parasharrajat commentedon Feb 27, 2024
FYI, there was a regression from this issue's PR #37240
alexpensify commentedon Feb 27, 2024
Thanks for flagging, it looks like the PR was handled in the other GH.
alexpensify commentedon Mar 5, 2024
Automation didn't kick in here, I think the 7-day mark is tomorrow.
alexpensify commentedon Mar 6, 2024
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~01cb01e156c8ab43dd
Extra Notes regarding payment: @DylanDylann - there is regression here but I mixed up the payments. I still input the $500 amount, instead of $250. This was my mistake and we will leave the amount paid as is.
Everyone has been paid via Upwork, so I'm closing.