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

[$250] Attachment - "This image has been resized" message overlaps with Android controls #54061

Open
2 of 8 tasks
lanitochka17 opened this issue Dec 12, 2024 · 13 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 12, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.75-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5338217&group_by=cases:section_id&group_id=292107&group_order=asc
Issue reported by: Applause - Internal Team
Component Other

Action Performed:

  1. Open the app
  2. Log in with a Gmail account
  3. Open any 1:1 DM
  4. Send a big picture attachment
  5. Open the image

Expected Result:

Elements shouldn't overlap

Actual Result:

"This image has been resized" message overlaps with Android controls

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6692060_1734002390701.az_recorder_20241212_121206.mp4

Bug6692060_1734002573544!bigggg

!ol

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021867655181903495230
  • Upwork Job ID: 1867655181903495230
  • Last Price Increase: 2024-12-27
Issue OwnerCurrent Issue Owner: @allgandalf
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 12, 2024
Copy link

melvin-bot bot commented Dec 12, 2024

Triggered auto assignment to @bfitzexpensify (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.

@nyomanjyotisa
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Onboarding - Onboarding modal closes for manage expenses when arriving on accounting modal

What is the root cause of that problem?

The overlap issue occurs due to missing safe area padding, which causes the UI to clash with system controls on Android.

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

We can wrap this code with ScreenWrapper and add includeSafeAreaPaddingBottom

return (
<>
<View style={styles.imageModalImageCenterContainer}>
<AttachmentViewImage
url={imageSource}
file={file}
isAuthTokenRequired={isAuthTokenRequired}
loadComplete={loadComplete}
isImage={isFileImage}
onPress={onPress}
onError={() => {
if (isOffline) {
return;
}
setImageError(true);
}}
/>
</View>
{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}
</>
);

        return (
            <>
                <ScreenWrapper
                    includeSafeAreaPaddingBottom={true}
                    testID={AttachmentView.displayName}
                >
                    <View style={styles.imageModalImageCenterContainer}>
                        <AttachmentViewImage
                            url={imageSource}
                            file={file}
                            isAuthTokenRequired={isAuthTokenRequired}
                            loadComplete={loadComplete}
                            isImage={isFileImage}
                            onPress={onPress}
                            onError={() => {
                                if (isOffline) {
                                    return;
                                }
                                setImageError(true);
                            }}
                        />
                    </View>
                    {isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}
                </ScreenWrapper>
            </>
        );

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

POC

New-Expensify-Android.mp4

@mkzie2
Copy link
Contributor

mkzie2 commented Dec 13, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

"This image has been resized" message overlaps with Android controls

What is the root cause of that problem?

We don't have a safe area padding bottom for HighResolutionInfo then it's overlapped with the Android controls

{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}

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

We need to get the safe area padding-bottom and add a wrap View to HighResolutionInfo with this padding-bottom

const insets = useSafeAreaInsets();
<View style={{paddingBottom: StyleUtils.getSafeAreaPadding(insets).paddingBottom}}>{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}</View>

{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}

Note: we should only apply padding-bottom style with the HighResolutionInfo to not break the image view with other normal images

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Dec 13, 2024
@melvin-bot melvin-bot bot changed the title Attachment - "This image has been resized" message overlaps with Android controls [$250] Attachment - "This image has been resized" message overlaps with Android controls Dec 13, 2024
Copy link

melvin-bot bot commented Dec 13, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 13, 2024
Copy link

melvin-bot bot commented Dec 13, 2024

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

@allgandalf
Copy link
Contributor

I will review today

@allgandalf
Copy link
Contributor

testing the proposals....

Copy link

melvin-bot bot commented Dec 20, 2024

@bfitzexpensify, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Dec 20, 2024
Copy link

melvin-bot bot commented Dec 20, 2024

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

@allgandalf
Copy link
Contributor

Will review today

@melvin-bot melvin-bot bot removed the Overdue label Dec 24, 2024
Copy link

melvin-bot bot commented Dec 26, 2024

@bfitzexpensify @allgandalf 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!

@melvin-bot melvin-bot bot added the Overdue label Dec 26, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

@bfitzexpensify, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Dec 27, 2024

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

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

5 participants