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-02-07] [$500] iOS - back button position on skeleton loader and 'Hmm its not here' page is different #34915

Closed
6 tasks
lanitochka17 opened this issue Jan 22, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 22, 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: 1.4.29-0
Reproducible in staging?: Y
Reproducible in production?: 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/4210614
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. Open the app
  2. Login with any user and minimize the app
  3. From any other app (eg: Slack, gmail) open any non existing link eg: staging.new.expensify.com/anything
  4. Observe that when skeleton loader is displayed, back button position is slightly on right and when 'Hmm its not here' page is displayed, back button position is shifted slightly on left More explanation: https://applause-ts.slack.com/archives/G01CL838B8T/p1705942846594149

Expected Result:

App should keep a constant position for back button on all the pages

Actual Result:

Back button shifts slightly to left when page changes from skeleton loader to 'Hmm its not here' page

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

Bug6350889_1705948641200.iOS_back_button_issue.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013b2a0aec800ce383
  • Upwork Job ID: 1749515068968927232
  • Last Price Increase: 2024-01-22
  • Automatic offers:
    • c3024 | Reviewer | 28120114
    • dukenv0307 | Contributor | 28120116
@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 Jan 22, 2024
@melvin-bot melvin-bot bot changed the title iOS - back button position on skeleton loader and 'Hmm its not here' page is different [$500] iOS - back button position on skeleton loader and 'Hmm its not here' page is different Jan 22, 2024
Copy link

melvin-bot bot commented Jan 22, 2024

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

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

melvin-bot bot commented Jan 22, 2024

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

@jeremy-croff
Copy link
Contributor

Proposal

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

The layout shifts between the loading skeleton and the not found page.

What is the root cause of that problem?

The app uses a common Component. However the loading skeleton does not render this same component, it has it's own implementation where the styling differs.

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

We should update the ReportHeaderSkeletonView styling to match that of HeaderwithBackButton to get a consistent styling.

We should reuse the layout styling so that it's maintaing in one place.

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Jan 22, 2024

📣 @jeremy-croff! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@jeremy-croff

This comment was marked as off-topic.

Copy link

melvin-bot bot commented Jan 22, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@dukenv0307
Copy link
Contributor

Proposal

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

Back button shifts slightly to left when page changes from skeleton loader to 'Hmm its not here' page

What is the root cause of that problem?

Let's see the back button of the header skeleton, it has padding-left is 20px

<View style={[styles.appContentHeaderTitle, !isSmallScreenWidth && styles.pl5]}>

Screenshot 2024-01-23 at 10 54 00

While the back button icon of Not found page is wrapped in a view with 40px. The size of icon is 20x20 and it is in the center so it has 10px space on the left. Additionally, the wrap View of HeaderWithBackbutton has padding-left is 8px so it is 18px from the left margin

Screenshot 2024-01-23 at 11 00 00

That is the root cause of this issue, the back icon of header skeleton is 20px from the left margin while it's 18px for the back icon of HeaderWithBackbutton

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

We should make this space consistent by changing the style of ReportHeaderSkeletonView to match the style of HeaderWithBackbutton. To do that we can use touchableButtonImage style for back icon wrapper as we do in HeaderWithBackbutton and then add pl2 style for the wrap View of skeleton

<View style={[styles.appContentHeader, styles.pl2]}>
            <View style={[styles.appContentHeaderTitle]}>
                {isSmallScreenWidth && (
                    <PressableWithFeedback
                        onPress={onBackButtonPress}
                        style={[styles.touchableButtonImage]}

style={[styles.LHNToggle]}

What alternative solutions did you explore? (Optional)

NA

@c3024
Copy link
Contributor

c3024 commented Jan 23, 2024

Proposal here by @dukenv0307 looks good to me.

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Jan 23, 2024

Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@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

📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

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 📖

@dukenv0307
Copy link
Contributor

@c3024 The PR is ready for review.

Copy link

melvin-bot bot commented Jan 31, 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.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 31, 2024
@melvin-bot melvin-bot bot changed the title [$500] iOS - back button position on skeleton loader and 'Hmm its not here' page is different [HOLD for payment 2024-02-07] [$500] iOS - back button position on skeleton loader and 'Hmm its not here' page is different Jan 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jan 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.34-1 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-02-07. 🎊

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

Copy link

melvin-bot bot commented Jan 31, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@c3024] 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:
  • [@c3024] 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:
  • [@c3024] Determine if we should create a regression test for this bug.
  • [@c3024] 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.
  • [] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@amyevans
Copy link
Contributor

amyevans commented Feb 1, 2024

Hmm realizing we've never had a BZ assigned here

@amyevans amyevans added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 1, 2024
@amyevans amyevans added Weekly KSv2 and removed Daily KSv2 labels Feb 1, 2024
@c3024
Copy link
Contributor

c3024 commented Feb 5, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: This is a very minute style mismatch of the back arrow when not found page is displayed after a skeleton loading page. No specific PR needs to be held responsible.
  • [@c3024] 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: NA
  • [@c3024] 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: Not started because it cannot help in identifying this earlier.
  • [@c3024] Determine if we should create a regression test for this bug. This is a minor style mismatch that occurs in a rare case. So, regression test is not required.
  • [@c3024] 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. NA

@mkhutornyi
Copy link
Contributor

Another regression - #35892

@JmillsExpensify
Copy link

@c3024 Do you agree with the regression comment above? If so, then I'll update the payment summary based on that.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 7, 2024
@JmillsExpensify
Copy link

Quick reminder on the comment above.

@c3024
Copy link
Contributor

c3024 commented Feb 9, 2024

Another regression - #35892

@JmillsExpensify

No, I don't think that regression was caused by PRs related to this issue. That was caused by a commit unrelated to this PR. Here is more information about it.

@JmillsExpensify
Copy link

Great, thank you! Payment summary as follows:

@JmillsExpensify
Copy link

All contributor offers paid and no regression test required. Closing this issue out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants