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

iOS - Search - Search page cannot be dismissed by swiping to the right #51191

Open
1 of 8 tasks
lanitochka17 opened this issue Oct 21, 2024 · 5 comments
Open
1 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Overdue

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 21, 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: 9.0.51-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch hybrid app (or standalone ND app)
  2. Tap on the search icon on the top right
  3. Swipe to the right to dismiss the search page (iOS swiping style)

Expected Result:

The search page can be dismissed by swiping to the right (the old Find page can be dismissed by swiping to the left)

Actual Result:

The search page cannot be dismissed by swiping to the right

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence
Bug6641265_1729531612859.1729531201791_20241022_011757.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 21, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

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

@lanitochka17
Copy link
Author

@anmurali 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

@QichenZhu
Copy link
Contributor

Proposal

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

Swiping to the right doesn't dismiss the search modal on iOS.

What is the root cause of that problem?

Swiping is disabled on purpose in the line below.

const modalType = shouldUseNarrowLayout ? CONST.MODAL.MODAL_TYPE.CENTERED_UNSWIPEABLE : CONST.MODAL.MODAL_TYPE.POPOVER;

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

Simply setting the type to CONST.MODAL.MODAL_TYPE.CENTERED would make the modal swipable, but it might not be the right solution.

We need to understand why swiping was disabled first, maybe with the help of the original committer @SzymczakJ, and resolve their concerns.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2024
@SzymczakJ
Copy link
Contributor

Yes, I've set modal type to CENTRED_UNSWIPABLE on purpose because SelectionList behaved really strange(go on and test it yourself) on CENTRED modal. I didn't realise that it will break the swipe right pattern on iOS though.
Unfortunately I don't have a straightforward solution for this, I guess we will have to fix SelectionList behaviour on CENTRED_UNSWIPABLE modals.
I could take a look at it, after finishing this PR #51237, so it can take me like 1-2 days.

Copy link

melvin-bot bot commented Oct 24, 2024

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

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 Overdue
Projects
None yet
Development

No branches or pull requests

4 participants