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

[$500] iOS - Profile - Photo upload options are missing #32307

Closed
1 of 6 tasks
lanitochka17 opened this issue Nov 30, 2023 · 54 comments
Closed
1 of 6 tasks

[$500] iOS - Profile - Photo upload options are missing #32307

lanitochka17 opened this issue Nov 30, 2023 · 54 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 30, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in
  3. Tap on your profile picture
  4. Tap on your profile picture again
  5. Tap on the "Upload photo" button

Expected Result:

"Browse" option should be added so I can choose a photo from iCloud drive or from the iPhone internal storage

Actual Result:

Profile photo upload options are missing. Currently I can take a photo or choose one from the gallery

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6296580_1701377818506.OTFS0573.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cb01e156c8ab43dd
  • Upwork Job ID: 1730337464884461568
  • Last Price Increase: 2023-12-21
  • Automatic offers:
    • dukenv0307 | Contributor | 28118868
    • DylanDylann | Contributor | 28128145
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 30, 2023
@melvin-bot melvin-bot bot changed the title iOS - Profile - Photo upload options are missing [$500] iOS - Profile - Photo upload options are missing Nov 30, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01cb01e156c8ab43dd

Copy link

melvin-bot bot commented Nov 30, 2023

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 30, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Nov 30, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

@Krishna2323
Copy link
Contributor

Krishna2323 commented 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 chooseDocument option whenever the type passed to AttachmentPicker is 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 to AttachmentPicker since we validate the file type on upload.

Result

choose_document_option.mp4

@neonbhai
Copy link
Contributor

neonbhai commented 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]:

type !== CONST.ATTACHMENT_PICKER_TYPE.IMAGE && {
icon: Expensicons.Paperclip,
textTranslationKey: 'attachmentPicker.chooseDocument',
pickAttachment: showDocumentPicker,
},

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 File as this better align the purpose of this option.

This involves adding a translation key here:

attachmentPicker: {

        chooseFile: 'Choose file',

Result

Screen.Recording.2023-12-01.at.3.16.30.AM.mov

@neonbhai
Copy link
Contributor

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
Copy link
Contributor

dukenv0307 commented 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 the RNDocumentPicker.types.allFiles option here.

What changes do you think we should make in order to solve the problem?

  1. 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.
  2. In here, use getDocumentPickerOptions(type) to get the correct document picker options based on the picker type
  3. Remove the condition type !== CONST.ATTACHMENT_PICKER_TYPE.IMAGE here since we should allow the Choose from file option, we already restrict the file type in the steps above
  4. 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)

NA

@Santhosh-Sellavel
Copy link
Collaborator

@alexpensify This is a improvement not a bug, Can you confirm this internally, whether this is something we should fix or not, thanks!

@alexpensify
Copy link
Contributor

Thanks! I'll start a discussion on Monday.

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@alexpensify
Copy link
Contributor

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@alexpensify
Copy link
Contributor

I've bumped the 🧵 and there is feedback that it might be a dupe.

Copy link

melvin-bot bot commented Dec 7, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@alexpensify
Copy link
Contributor

I've asked for some more feedback in another Slack channel.

@melvin-bot melvin-bot bot added the Overdue label Dec 11, 2023
@alexpensify
Copy link
Contributor

Still waiting for more feedback

@melvin-bot melvin-bot bot removed the Overdue label Dec 11, 2023
@alexpensify
Copy link
Contributor

No update, I've asked again for more feedback.

Copy link

melvin-bot bot commented Dec 14, 2023

@alexpensify @Santhosh-Sellavel this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Dec 14, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Dec 18, 2023
@srikarparsi srikarparsi added the Bug Something is broken. Auto assigns a BugZero manager. label Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

Current assignee @alexpensify is eligible for the Bug assigner, not assigning anyone new.

@srikarparsi srikarparsi added the External Added to denote the issue can be worked on by a contributor label Jan 24, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

Current assignee @Santhosh-Sellavel is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

📣 @dukenv0307 🎉 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
Copy link
Contributor

Awesome, we are moving forward here.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 26, 2024
@Santhosh-Sellavel Santhosh-Sellavel removed their assignment Jan 27, 2024
@Santhosh-Sellavel
Copy link
Collaborator

@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
Copy link
Contributor

I can review PR as C+

@srikarparsi
Copy link
Contributor

Sounds good, assigning you to this and the PR @DylanDylann

@DylanDylann
Copy link
Contributor

@srikarparsi Could you help to assign me to this issue again ?

Copy link

melvin-bot bot commented 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
Copy link
Contributor

@dukenv0307 any update to address the PR feedback? Thanks!

@alexpensify
Copy link
Contributor

PR is moving forward but looks like there is an inquiry that needs to be addressed.

Copy link

melvin-bot bot commented Feb 27, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

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
Copy link
Member

FYI, there was a regression from this issue's PR #37240

@alexpensify
Copy link
Contributor

Thanks for flagging, it looks like the PR was handled in the other GH.

@alexpensify
Copy link
Contributor

Automation didn't kick in here, I think the 7-day mark is tomorrow.

@alexpensify
Copy link
Contributor

Here is the payment summary:

  • External issue reporter - n/a
  • Contributor that fixed the issue - @dukenv0307 $500
  • Contributor+ that helped on the issue and/or PR - @DylanDylann - $250

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

9 participants