-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix logic get document from native #35164
Conversation
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
copyTo: 'cachesDirectory', | ||
|
||
const getDocumentPickerOptions = (type) => { | ||
if (type === CONST.ATTACHMENT_PICKER_TYPE.IMAGE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dukenv0307 We only return image if type is IMAGE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanDylann i just updated code, please check again
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromechrome.moviOS: Nativeios.moviOS: mWeb Safarisa.movMacOS: Chrome / SafariScreen.Recording.2024-02-23.at.16.17.42.movMacOS: Desktopdesk.mov |
@dukenv0307 Please ping me after all errors is resolved |
@DylanDylann please check again |
@dukenv0307 Please update more step test to make sure that user only can select image for profile picture |
@dukenv0307 Because we only allow the user to upload an image, I think we should update the title "Choose document" to "Choose image" cc @srikarparsi @Expensify/design |
Well in that case, wouldn't we just remove that row completely? Because right above "Choose from gallery" essentially let's them choose an image. |
@shawnborton It seems It is different
|
Would it make sense for the options to instead be:
For some reason it's bothering/confusing me that there's a "choose from gallery" option AND a "choose file/photo/whatever" option. I feel like we can make these more distinct. And for the 3rd option, aren't they essentially choosing an image file to upload? |
I was responding to this comment here:
I thought you were saying that we were going to eliminate the ability to use the document finder for the avatar upload flow. Can you clarify what the behavior is here? |
We will enable the ability to use the document finder for the avatar upload flow. But we will filter images from document finder and only display it |
Then maybe we just do nothing here? That would be my vote. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good
Hey @dukenv0307 / @DylanDylann could you please upload screenshots of the whole flow on iOS and android whenever you get a chance - including selecting a picture from documents? |
@dukenv0307 Currently, after clicking |
@dukenv0307 Any update here? |
@DylanDylann i'm working on this issue |
47e6e2c
to
b9a957a
Compare
@dukenv0307 How about this problem ? |
@DylanDylann I'll update today |
add.mov@DylanDylann i just update the code, please check again. |
@dukenv0307 For the image from the document, we will add width and height from the path to the image object. It sounds good to me. Please upload all videos again |
@dukenv0307 Also please add the test step: |
@DylanDylann i just updated all videos screen shot and add more steps |
@srikarparsi Everything is updated. Please check again, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as well
🚀 Deployed to staging by https://github.com/srikarparsi in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Note: This PR caused a regression #37240 |
Details
Profile photo upload options are missing. Currently I can take a photo or choose one from the gallery
Fixed Issues
$ #32307
PROPOSAL: #32307 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov