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] Expense - Tab shift from manual-scan-distance is delayed #54638

Open
3 of 8 tasks
IuliiaHerets opened this issue Dec 28, 2024 · 6 comments
Open
3 of 8 tasks

[$250] Expense - Tab shift from manual-scan-distance is delayed #54638

IuliiaHerets opened this issue Dec 28, 2024 · 6 comments
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

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 28, 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: 9.0.79-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Money Requests

Action Performed:

  1. Launch app in mweb and Android
  2. Tab fab-- create expense
  3. Swipe the page and note the tab shift from manual-scan-distance

Expected Result:

Tab shift from manual-scan-distance must be consistent in both mweb and Android.

Actual Result:

Tab shift from manual-scan-distance is slow in mweb but not in Android.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6703184_1735334645891.Screenrecorder-2024-12-28-02-48-07-181_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021873846742783366143
  • Upwork Job ID: 1873846742783366143
  • Last Price Increase: 2024-12-30
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 28, 2024
Copy link

melvin-bot bot commented Dec 28, 2024

Triggered auto assignment to @Christinadobrzyn (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 melvin-bot bot added the Overdue label Dec 30, 2024
@Christinadobrzyn
Copy link
Contributor

I think this can be external

@melvin-bot melvin-bot bot removed the Overdue label Dec 30, 2024
@Christinadobrzyn Christinadobrzyn added External Added to denote the issue can be worked on by a contributor Overdue labels Dec 30, 2024
@melvin-bot melvin-bot bot changed the title Expense - Tab shift from manual-scan-distance is delayed [$250] Expense - Tab shift from manual-scan-distance is delayed Dec 30, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

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

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

melvin-bot bot commented Dec 30, 2024

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

@QichenZhu
Copy link
Contributor

Proposal

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

Tab highlight lags when switching tabs using gestures on web.

What is the root cause of that problem?

On native platforms, the highlight changes gradually during tab switching.

On web platforms, the highlight jumps suddenly after the tab finishes switching, because we have removed the highlight animation to fix #50265.

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

Since #50265 is a minor issue, we can revert the fix.

Before After
Record_2025-01-03-01-51-38-2025-01-02.12_54_55.061.mp4
Record_2025-01-03-01-53-43-2025-01-02.12_54_57.820.mp4

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

Not needed as this is a UI issue.

What alternative solutions did you explore? (Optional)

If #50265 still needs a fix, we can replace useEffect with useLayoutEffect in node_modules/react-native-tab-view/lib/module/PanResponderAdapter.js

  React.useLayoutEffect(() => {
    const offset = -navigationStateRef.current.index * layout.width;
    panX.setValue(offset);
  }, [layout.width, panX]);

@melvin-bot melvin-bot bot added the Overdue label Jan 2, 2025
@Christinadobrzyn
Copy link
Contributor

Hi @eVoloshchak can you check out the above proposal when you're back? TY!

@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2025
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
Projects
Status: No status
Development

No branches or pull requests

4 participants