App icon indicating copy to clipboard operation
App copied to clipboard

Clicking on the hyperlink, the Accounting Page opens without sliding animation

Open m-natarajan opened this issue 9 months ago β€’ 5 comments

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.67-0 Reproducible in staging?: y Reproducible in production?: no, new feature If this was caught during regression testing, add the test name, ID and link from TestRail: 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. Go to URL https://staging.new.expensify.com/

  2. Login with any account

  3. Go to the Workspace editor/settings page

  4. Enable Tags on the More Features page

  5. Enable accounting on the More Features page

  6. Connect to QBO on the More Features page

  7. Go back to the Tags Screen again

  8. Click the hyperlink in the text

Expected Result:

Accounting Page opens with a sliding animation

Actual Result:

Accounting Page opens without sliding animation

Workaround:

unknown

Platforms:

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

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/38435837/d0218f25-330c-4c13-881d-4f70ac07a000

View all open jobs on GitHub

m-natarajan avatar Apr 27 '24 22:04 m-natarajan

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

melvin-bot[bot] avatar Apr 27 '24 22:04 melvin-bot[bot]

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

melvin-bot[bot] avatar Apr 27 '24 22:04 melvin-bot[bot]

:wave: 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.

github-actions[bot] avatar Apr 27 '24 22:04 github-actions[bot]

@yuwenmemon 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.

m-natarajan avatar Apr 27 '24 22:04 m-natarajan

We think this bug might be related to #wave-collect - Release 1

m-natarajan avatar Apr 27 '24 22:04 m-natarajan

cc @aldo-expensify @hayata-suenaga if you have an idea

francoisl avatar Apr 29 '24 17:04 francoisl

Can't reproduce in MacOs WEB

from the video it looks like the animation is there, but it may be slow? I'm going to try to reproduce in android web

aldo-expensify avatar Apr 29 '24 18:04 aldo-expensify

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

melvin-bot[bot] avatar Apr 29 '24 19:04 melvin-bot[bot]

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

melvin-bot[bot] avatar Apr 29 '24 19:04 melvin-bot[bot]

This is not a blocker since the accounting is still behind beta

mountiny avatar Apr 29 '24 19:04 mountiny

Proposal

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

Accounting Page opens without sliding animation

What is the root cause of that problem?

We do not configure animation for Stack screen options

https://github.com/Expensify/App/blob/ff368b8774b98a2062328010e5e0bfcc3200e97b/src/libs/Navigation/AppNavigator/ModalStackNavigators/WorkspaceSettingsModalStackNavigator.tsx#L9

Note that navigating from Workspace initial page to each feature page has animation thanks to the settings:

https://github.com/Expensify/App/blob/5521a197cc703788d789ec8b512b79904f58c48a/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx#L19

But navigating between these feature screens do not due to the above explanation.

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

Configure the screen to only enable animation on small screen devices:

const screenOptions = useModalScreenOptions((styles) => ({
    cardStyle: styles.navigationScreenCardStyle,
    headerShown: false,
    cardStyleInterpolator: isSmallScreenWidth ? CardStyleInterpolators.forHorizontalIOS : undefined,
}));

What alternative solutions did you explore? (Optional)

We can reuse the modal navigator options from Workspace root navigators:

https://github.com/Expensify/App/blob/5521a197cc703788d789ec8b512b79904f58c48a/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx#L19

https://github.com/Expensify/App/blob/5521a197cc703788d789ec8b512b79904f58c48a/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx#L31

gijoe0295 avatar Apr 29 '24 20:04 gijoe0295

@gijoe0295 Thanks for the proposal.

Your RCA is correct, we don't have cardStyleInterpolator in WorkspaceSettingsModalStackNavigator screenOptions, so when we navigate between two screens, and the both is under this Navigator like from Tags to Accounting, it will finish without animation.

And this is different from when we navigate from workspace settings to Accounting (works well), because it uses the parent screenOptions here. https://github.com/Expensify/App/blob/ff368b8774b98a2062328010e5e0bfcc3200e97b/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx#L31-L32

@gijoe0295's proposal main/alternative solution will fix the issue, but I am lean to the alternative solution which use screenOptions.centralPaneNavigator like what we use in parent level (in the above code), and also because this Navigator is displayed in center pane area.

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed

ahmedGaber93 avatar May 01 '24 19:05 ahmedGaber93

Current assignee @yuwenmemon is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

melvin-bot[bot] avatar May 01 '24 19:05 melvin-bot[bot]

Issue not reproducible during KI retests. (First week)

mvtglobally avatar May 06 '24 19:05 mvtglobally

@yuwenmemon, @slafortune, @ahmedGaber93 Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar May 07 '24 01:05 melvin-bot[bot]

Reproducible:

https://github.com/Expensify/App/assets/153004152/748a7906-8a1b-42ae-9f87-d9e872631fc8

gijoe0295 avatar May 07 '24 02:05 gijoe0295

@yuwenmemon Could you check for assignment please?

gijoe0295 avatar May 07 '24 03:05 gijoe0295

πŸ“£ @ahmedGaber93 πŸŽ‰ 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

melvin-bot[bot] avatar May 07 '24 19:05 melvin-bot[bot]

πŸ“£ @gijoe0295 πŸŽ‰ 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 πŸ“–

melvin-bot[bot] avatar May 07 '24 19:05 melvin-bot[bot]

@gijoe0295 any update here?

yuwenmemon avatar May 09 '24 19:05 yuwenmemon

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

melvin-bot[bot] avatar May 15 '24 09:05 melvin-bot[bot]

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

  • https://github.com/Expensify/App/pull/41950

If no regressions arise, payment will be issued on 2024-05-22. :confetti_ball:

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

melvin-bot[bot] avatar May 15 '24 09:05 melvin-bot[bot]

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:

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

melvin-bot[bot] avatar May 15 '24 09:05 melvin-bot[bot]

Paid!

slafortune avatar May 23 '24 22:05 slafortune