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

[HOLD for payment 2024-04-02] [$500] IOS- Extra margin below offline indicator in Profile page #38328

Closed
1 of 6 tasks
kbecciv opened this issue Mar 14, 2024 · 43 comments
Closed
1 of 6 tasks
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 Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 14, 2024

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.52-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch New Expensify.
  2. Go offline.
  3. Go to Profile from the bottom navigation.

Expected Result:

There is no extra margin below offline indicator.

Actual Result:

There is extra margin below offline indicator.

Workaround:

n/a

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0199282bcbfa5f2d37
  • Upwork Job ID: 1768345821971177472
  • Last Price Increase: 2024-03-14
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Mar 14, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to @yuwenmemon (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@kbecciv kbecciv changed the title Profile - Extra margin below offline indicator in Profile page IOS- Extra margin below offline indicator in Profile page Mar 14, 2024
@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Mar 14, 2024

Proposal

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

IOS- Extra margin below offline indicator in Profile page

What is the root cause of that problem?

we pass includeSafeAreaPaddingBottom = false but recording to this comment below the ScreenWrapper put paddingbottom equal SafeAreaPaddingBottom even if includeSafeAreaPaddingBottom = false
note SafeAreaPaddingBottom in ios equal the ios notch homebar height and mostly equal 0 in android and other platform

// We always need the safe area padding bottom if we're showing the offline indicator since it is bottom-docked.
if (includeSafeAreaPaddingBottom || (isOffline && shouldShowOfflineIndicator)) {
paddingStyle.paddingBottom = paddingBottom;
}

and in this case we should pass pass style styles.pb0 in , but we missed it

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

pass style styles.pb0 in <ScreenWrapper> in InitialSettingsPage here

we can also check other pages if need the same fix

What alternative solutions did you explore? (Optional)

@yuwenmemon
Copy link
Contributor

@ahmedGaber93 does that explain why we're only seeing it on iOS though?

@ahmedGaber93
Copy link
Contributor

@yuwenmemon

does that explain why we're only seeing it on iOS though?

i update the root cause with the explanation.

@yuwenmemon
Copy link
Contributor

Okay, my local iOS is taking forever to build so I'll at least take a look at what you're proposing @ahmedGaber93 - can you spin up a PR with screenshots on all platforms ASAP?

@yuwenmemon yuwenmemon added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

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

@ghost
Copy link

ghost commented Mar 14, 2024

I tried @ahmedGaber93 proposal. But is this what we need ? Becoz I think this will make offline message to be very small. @yuwenmemon ?
Screenshot 2024-03-14 at 11 25 18 PM

@ahmedGaber93
Copy link
Contributor

can you spin up a PR with screenshots on all platforms ASAP?

@yuwenmemon yes i can.

@yuwenmemon
Copy link
Contributor

@godofoutcasts94 I think that would be consistent with what I see for other pages:
Screenshot 2024-03-14 at 10 58 00 AM

@ahmedGaber93
Copy link
Contributor

also offline message padding bottom and padding top is consistent now.

@allgandalf
Copy link
Contributor

Proposal

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

Extra margin below offline indicator in Profile page

What is the root cause of that problem?

We add more padding if the device is offline:

// We always need the safe area padding bottom if we're showing the offline indicator since it is bottom-docked.
if (includeSafeAreaPaddingBottom || (isOffline && shouldShowOfflineIndicator)) {
paddingStyle.paddingBottom = paddingBottom;
}

For android web and desktop this value is almost 0 but for native iOS this exits (Thanks to @ahmedGaber93, i researched about this after he mentioned it in his proposal)

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

Remove the (isOffline && shouldShowOfflineIndicator) check from the condition, this will help us to maintain consistency among all pages because we use ScreenWrapper at a lot of pages and i have seen that we pass includeSafeAreaPaddingBottom as false in all of them :)

What alternative solutions did you explore? (Optional)

N/A

@yuwenmemon yuwenmemon added the External Added to denote the issue can be worked on by a contributor label Mar 14, 2024
@melvin-bot melvin-bot bot changed the title IOS- Extra margin below offline indicator in Profile page [$500] IOS- Extra margin below offline indicator in Profile page Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

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

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

melvin-bot bot commented Mar 14, 2024

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

@ahmedGaber93
Copy link
Contributor

@yuwenmemon this all screenshots for all platforms.

Screenshots/Videos

Android: Native

Screenshot 2024-03-14 at 8 36 40 PM

Android: mWeb Chrome

Screenshot 2024-03-14 at 8 36 18 PM

iOS: Native

Screenshot 2024-03-14 at 8 25 13 PM

iOS: mWeb Safari

Screenshot 2024-03-14 at 8 35 24 PM

MacOS: Chrome / Safari

Screenshot 2024-03-14 at 8 08 39 PM

MacOS: Desktop

Screenshot 2024-03-14 at 8 30 41 PM

@allgandalf
Copy link
Contributor

allgandalf commented Mar 14, 2024

@yuwenmemon @ishpaul777 , can you review this proposal once, i think fixing it on all pages might be a priority here :)

@ishpaul777
Copy link
Contributor

I'll review proposal in few minutes 🙇‍♂️

@ahmedGaber93
Copy link
Contributor

@GandalfGwaihir we need this lines for other screen to force safeareapaddingbottom when offline

Screen.Recording.2024-03-14.at.8.45.43.PM.mov

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.52-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-03-22. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 15, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@ishpaul777] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@ishpaul777] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@ishpaul777] Determine if we should create a regression test for this bug.
  • [@ishpaul777] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Mar 15, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 18, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-22] [$500] IOS- Extra margin below offline indicator in Profile page [HOLD for payment 2024-03-25] [HOLD for payment 2024-03-22] [$500] IOS- Extra margin below offline indicator in Profile page Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-03-25. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 18, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@ishpaul777] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@ishpaul777] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@ishpaul777] Determine if we should create a regression test for this bug.
  • [@ishpaul777] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@alexpensify alexpensify changed the title [HOLD for payment 2024-03-25] [HOLD for payment 2024-03-22] [$500] IOS- Extra margin below offline indicator in Profile page [HOLD for payment 2024-03-25] [$500] IOS- Extra margin below offline indicator in Profile page Mar 22, 2024
@alexpensify
Copy link
Contributor

alexpensify commented Mar 25, 2024

Here is the payment summary:

  • External issue reporter - N/A
  • Contributor that fixed the issue - @ahmedGaber93 $500
  • Contributor+ that helped on the issue and/or PR - @ishpaul777 $500

Upwork Job: https://www.upwork.com/jobs/~0199282bcbfa5f2d37

Extra Notes regarding payment: @ahmedGaber93 and @ishpaul777 can you please accept the offers in Upwork? After that, I can complete the required process? Thanks!

@ahmedGaber93
Copy link
Contributor

Screenshot 2024-03-26 at 6 07 38 AM

When I am clicking "Accept offer", it failed with this error.
Other offers work fine with me, and I already accept another offer today without this error.

@alexpensify any idea about this error?

@alexpensify
Copy link
Contributor

@ahmedGaber93 - the issue is on the Upwork side, but thank you for sharing. Sorry for the extra step, but I sent over a new offer based on the feedback in the response error.

@ishpaul777 and @ahmedGaber93 - Please try to accept again and I can complete the payment process in Upwork.

@ahmedGaber93
Copy link
Contributor

Offer accepted, thanks @alexpensify

@alexpensify
Copy link
Contributor

I've paid @ahmedGaber93 via Upwork. I'll need to keep this one open because I'm waiting for @ishpaul777 to accept the new proposal.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Mar 26, 2024

@alexpensify Can we please hold payment till 2 April, is it possible?

@alexpensify
Copy link
Contributor

alexpensify commented Mar 26, 2024

@ishpaul777 - yes, but can you please share a little more context?

@ishpaul777
Copy link
Contributor

No big deal just becuase i have applied for GSTIN which upwork wants me to submit otherwise i got charged extra tax.
https://support.upwork.com/hc/en-us/articles/360041114713-India-GST-for-freelancers

@alexpensify
Copy link
Contributor

Thanks, I'll set a reminder to check on April 2. Please keep me posted if I need to change this payment date.

@alexpensify alexpensify removed the Awaiting Payment Auto-added when associated PR is deployed to production label Mar 27, 2024
@alexpensify alexpensify changed the title [HOLD for payment 2024-03-25] [$500] IOS- Extra margin below offline indicator in Profile page [HOLD for payment 2024-04-02] [$500] IOS- Extra margin below offline indicator in Profile page Mar 27, 2024
@alexpensify
Copy link
Contributor

Updated per the request here.

@ishpaul777
Copy link
Contributor

Thank you! 🤗

@alexpensify
Copy link
Contributor

@ishpaul777 - can you please share an update if your Upwork profile is ready for this payment? If yes, I'll work on the required steps tomorrow morning. Thanks!

@ishpaul777
Copy link
Contributor

Thanks for holding @alexpensify! Can you please send in the offer https://www.upwork.com/freelancers/~01f4fddf5caa8bfc3a

@alexpensify
Copy link
Contributor

All set here, I've paid everyone here via Upwork. Summary:

#38328 (comment)

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 Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

7 participants