Closed m-natarajan closed 6 days ago
Triggered auto assignment to @miljakljajic (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@miljakljajic Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Job added to Upwork: https://www.upwork.com/jobs/~014aa6bba3d11a7600
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (External
)
Not matching with Android native and giving option to record audio and video for attachment picker.
When using AttachmentPicker
for scanning here https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/pages/iou/request/step/IOURequestStepScan/index.tsx#L590, we don't limit the file types, so by default it will accept any file types https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/components/AttachmentPicker/index.tsx#L78
Allow the users of AttachmentPicker
to customize the file types that the input
will accept, that means the AttachmentPicker
will have a new params acceptedFileTypes
, which it will pass to input
. If acceptedFileTypes
exists it will be used, otherwise it will fallback to the existing logic https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/components/AttachmentPicker/index.tsx#L78
Then we can pass acceptedFileTypes
to AttachmentPicker
here https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/pages/iou/request/step/IOURequestStepScan/index.tsx#L590. The list of file types supported is here https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/CONST.ts#L114
We need to construct a string of accepted file types that is compatible with accept
prop of the input
. Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
Or a slightly better code design is we pass this list https://github.com/Expensify/App/blob/73ec7f8e3e3b34b81c5bbda91290ecb44aafc373/src/CONST.ts#L114 as is, as acceptedFileTypes
, then we have a transformer in AttachmentPicker
that will convert it to accept
-compatible string
NA
Proposal has a minor update for clarification
@daledah Thanks for your proposal!
Does the inconsistency only happen with mobile Chrome? Or both mobile web platforms have same issue?
As your solution suggests to pass accepted files types in App/src/components/AttachmentPicker/index.tsx
, I'm not sure if it would break some feature on web platforms.
Does the inconsistency only happen with mobile Chrome? Or both mobile web platforms have same issue?
@eh2077 Both mobile platforms have the issue, Safari is also allowing users to record/select videos.
As your solution suggests to pass accepted files types in App/src/components/AttachmentPicker/index.tsx, I'm not sure if it would break some feature on web platforms.
@eh2077 It won't break any feature because we only use it when selecting files for Scan, and accept
is a standard web feature for input
, the OS will allow selecting according to the file formats specified by accept
. From my testing everything looks fine.
@daledah 's proposal looks good to me. Coding details can be discussed in PR and we need to ensure mobile platforms have consistent behaviour.
πππ C+ reviewed
Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πΈ
Not overdue, we're waiting for @danieldoglas 's review
π£ @eh2077 π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @daledah You have been assigned to this job! Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs! Keep in mind: Code of Conduct | Contributing π
Deployed to prod two days ago. Will update the payment schedule header.
@daledah Can you take a look at this comment https://github.com/Expensify/App/pull/47028#issuecomment-2294890330 please?
@daledah please apply to this job too and we'll get you paid
@daledah Can you take a look at this comment https://github.com/Expensify/App/pull/47028#issuecomment-2294890330 please?
@daledah Friendly bump
@eh2077 I'm working on this PR
Seems like this one isn't ready to be paid yet
@daledah please apply to this job too and we'll get you paid
@miljakljajic I don't have any Upwork Connect so I could not apply. Could you send the offer directly to my profile here https://www.upwork.com/freelancers/~0138d999529f34d33f? Thx
Offer for @daledah is here: https://www.upwork.com/nx/wm/offer/103795902
Hi @miljakljajic, sorry this issue is not ready yet for payment. Because we haven't fully get the expected behaviors. We have active discussions on the closed PR https://github.com/Expensify/App/pull/47028
Don't worry, I have just extended the offer but I will not pay til payment is due. Thank you @eh2077
I'll post a summary of our discussions from the closed PR https://github.com/Expensify/App/pull/47028 soon
Did we decide to close without moving forward, or will payment still be due?
Did we decide to close without moving forward, or will payment still be due?
@miljakljajic Thanks for checking this. Sorry for the late update, I think it's better to hold it for a while to hear feedback from internal engineering team.
Here's the summary of the status on this issue
record audio
optionOn mobile Chrome, we still have the Camera Camcorder
option - the record video option
@daledah and I spent sometime to find a solution to remove the Camera Camcorder
option but we ended up a conclusion that, on mobile Chrome, we can't control options to show on the attachment picker modal. Instead, it's the default behaviour of mobile Browser. There's a demonstration video https://github.com/Expensify/App/pull/47028#issuecomment-2335154502 by @daledah
See also
That said, I tend to leave the record video option, Camera Camcorder
, as it is.
@danieldoglas What do you think?
cc @quinthar @daledah
I see. So, that's more of a limitation on Android, not on our side. If that's not something we can control, I think it's fine to keep it as is. @miljakljajic are you OK with that too?
I agree - it doesn't look like a bug. Closing. Thank you for investigating!
@miljakljajic This should be eligible for payment right? We have worked on a PR https://github.com/Expensify/App/pull/47028 here.
Yep, this is eligible for payment - we indeed solved the situation with the audio recording.
Sorry, paid!
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: 9.0.13-3 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: @quinthar Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721965815025499
Action Performed:
Expected Result:
Actual Result:
Not matching with Android native and giving option to record audio and video for attachment picker
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eh2077