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-05] [$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup #37606

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

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 1, 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.46-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:
Email or phone of affected tester (no customers): applausetester+jp_e_category@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Issue found when executing PR #34069

Action Performed:

  1. Open New Expensify app.
  2. Login
  3. Popup appears
  4. Click on the text link “Settings”

Expected Result:

Priority mode page opens

Actual Result:

Preferences page is visible for a moment when navigate via text link in Focus Mode popup

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

Bug6398320_1709303268047.And_Chat_-_Popup_window_appears_that_can_t_close_tapping_outside.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0128371baf608716e9
  • Upwork Job ID: 1765238125791371264
  • Last Price Increase: 2024-03-06
  • Automatic offers:
    • DylanDylann | Reviewer | 0
    • tienifr | Contributor | 0
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

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

@lanitochka17
Copy link
Author

@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

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

1 similar comment
Copy link

melvin-bot bot commented Mar 5, 2024

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

@JmillsExpensify
Copy link

I'm also not sure, so let's see what the community says.

@melvin-bot melvin-bot bot removed the Overdue label Mar 6, 2024
@JmillsExpensify JmillsExpensify added External Added to denote the issue can be worked on by a contributor Overdue labels Mar 6, 2024
@melvin-bot melvin-bot bot changed the title Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup [$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup Mar 6, 2024
Copy link

melvin-bot bot commented Mar 6, 2024

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

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

melvin-bot bot commented Mar 6, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Mar 6, 2024
@JmillsExpensify JmillsExpensify added Help Wanted Apply this label when an issue is open to proposals by contributors and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 6, 2024
@tienifr
Copy link
Contributor

tienifr commented Mar 6, 2024

Proposal

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

Preferences page is visible for a moment when navigate via text link in Focus Mode popup

What is the root cause of that problem?

  • settings/preferences/priority-mode is defined as the right modal here
  • settings/preferences is full-screen here

On large screen we need to show full screen for settings/preferences and just open the right modal for settings/preferences/priority-mode so we need to render both of them
But on small screen we just can show one of them at a time so we don't need to render full-screen when open right modal

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

The logic to show both full-screen and right modal is here, if metainfo.isFullScreenNavigatorMandatory is true we will show full-screen page

We get metainfo from this function

so we need the logic to check if the users are in small screen then disable isFullScreenNavigatorMandatory

function getAdaptedState(state: PartialState<NavigationState<RootStackParamList>>, policyID?: string): GetAdaptedStateReturnType {
...
 if (rhpNavigator) {
...
        if(isSmallScreenWidth){
            metainfo.isFullScreenNavigatorMandatory = false
        }

The fastest way to detect the small screen is using Dimension API

    const screenWidth = Dimensions.get('screen').width;
    const isSmallScreenWidth = screenWidth <= variables.mobileResponsiveWidthBreakpoint;

We also can pass isSmallScreenWidth from component but we have to do it in all place

What alternative solutions did you explore? (Optional)

We can consider to remove SCREENS.SETTINGS.PREFERENCES.PRIORITY_MODE in SCREENS.SETTINGS.PREFERENCES.ROOT in here

Result

Screen.Recording.2024-03-06.at.14.07.38.mov

@melvin-bot melvin-bot bot added the Overdue label Mar 8, 2024
@DylanDylann
Copy link
Contributor

@tienifr's proposal looks good to me. We also should set isCentralPaneAndBottomTabMandatory is false in the small screen

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Mar 11, 2024

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

@mkhutornyi
Copy link
Contributor

Can we hold this for ideal nav v2?

@thienlnam thienlnam changed the title [$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup [HOLD #37421][$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup Mar 11, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2024
@DylanDylann
Copy link
Contributor

@thienlnam Please uphold this issue. I still can reproduce after #37421 is merged

@DylanDylann
Copy link
Contributor

Waiting for a approval from @thienlnam

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

melvin-bot bot commented Mar 25, 2024

📣 @DylanDylann 🎉 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 Mar 25, 2024

📣 @tienifr 🎉 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 📖

@tienifr
Copy link
Contributor

tienifr commented Mar 26, 2024

The PR is up

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup [HOLD for payment 2024-04-05] [$500] Settings - Preferences page is visible for a moment when navigate via text link in Focus Mode popup Mar 29, 2024
Copy link

melvin-bot bot commented Mar 29, 2024

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

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

melvin-bot bot commented Mar 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-04-05. 🎊

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

Copy link

melvin-bot bot commented Mar 29, 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:

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

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@DylanDylann
Copy link
Contributor

DylanDylann commented Apr 10, 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:

[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA
[@DylanDylann] 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
[@DylanDylann] 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: NA
[@DylanDylann] Determine if we should create a regression test for this bug. Yes
[@DylanDylann] 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.

Regression Test Proposal
Pre-requisite: Using an account that enables focus mode

  1. Open New Expensify app.
  2. Login
  3. Popup appears
  4. Click on the text link “Settings”
  5. Verify that Preferences page is not visible and priority mode page opens

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2024
@JmillsExpensify
Copy link

Payment summary:

@JmillsExpensify
Copy link

For the regression test, isn't there a pre-requisite that you're in focus mode? I don't quite understand how that's going to prevent this from being tested and happening again.

@DylanDylann
Copy link
Contributor

@JmillsExpensify Yeah, we should have a pre-requisite as you said. I updated

@JmillsExpensify
Copy link

All contributors paid

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants