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

[PAID] [$250] Search - Saved search area is partially overlapped by url field #50592

Closed
1 of 6 tasks
lanitochka17 opened this issue Oct 10, 2024 · 32 comments
Closed
1 of 6 tasks
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 Oct 10, 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.47
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Open Search tab
  3. Open any saved search
  4. Click 3-dot menu next to it > Rename
  5. Enter an emoji or name with X:Y format and save it
  6. Tap "v" at the top of a Search page to open the menu
  7. Observe the saved search area.

Expected Result:

Saved search area is fully visible

Actual Result:

Saved search area is partially covered by the url field when opened after renaming it or right after saving the search

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
Bug6618621_1727541270278.Rename_search_mWeb.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021846258880159780544
  • Upwork Job ID: 1846258880159780544
  • Last Price Increase: 2024-10-15
  • Automatic offers:
    • ikevin127 | Reviewer | 104486937
    • mkzie2 | Contributor | 104486939
Issue OwnerCurrent Issue Owner: @strepanier03
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 10, 2024
Copy link

melvin-bot bot commented Oct 10, 2024

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

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

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 10, 2024

Edited by proposal-police: This proposal was edited at 2024-10-17 16:12:41 UTC.

Proposal

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

Saved search area is partially covered by the url field when opened after renaming it or right after saving the search

What is the root cause of that problem?

The issue happens if we exceed the maxHeight of the ScrollView in PopoverMenu. The wrap component of the PopoverMenu modal has paddingVertical is 16px so the item inside ScrollView here can be overlapped

<ScrollView style={isSmallScreenWidth ? {maxHeight: windowHeight - 250} : styles.createMenuContainer}>

<PopoverMenu
menuItems={allMenuItems as PopoverMenuItem[]}
isVisible={isPopoverVisible}
anchorPosition={styles.createMenuPositionSidebar(windowHeight)}
onClose={closeMenu}

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

For this case, we should move the padding-bottom and padding-top from the wrap component of PopoverMenu to the ScrollView.

<PopoverMenu
menuItems={allMenuItems as PopoverMenuItem[]}
isVisible={isPopoverVisible}
anchorPosition={styles.createMenuPositionSidebar(windowHeight)}
onClose={closeMenu}

We will pass innerContainerStyle as styles.pv0 and scrollContainerStyle as styles.pv4 to PopoverMenu here

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
Copy link

melvin-bot bot commented Oct 15, 2024

@strepanier03 Huh... This is 4 days overdue. Who can take care of this?

@strepanier03
Copy link
Contributor

Working on this now.

@melvin-bot melvin-bot bot removed the Overdue label Oct 15, 2024
@strepanier03
Copy link
Contributor

I don't have an iOS device to repro this on, but I think this is a very minor visual issue.

image

@strepanier03 strepanier03 added the External Added to denote the issue can be worked on by a contributor label Oct 15, 2024
@melvin-bot melvin-bot bot changed the title Search - Saved search area is partially overlapped by url field [$250] Search - Saved search area is partially overlapped by url field Oct 15, 2024
Copy link

melvin-bot bot commented Oct 15, 2024

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

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

melvin-bot bot commented Oct 15, 2024

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

@ikevin127
Copy link
Contributor

♻️ Reviewing today...

@ikevin127
Copy link
Contributor

@strepanier03 I tried reproducing this on iOS Simulator and had no luck.

I reviewed a PR recently (#50244) which fixed the scrolling of the list on large layout devices where it wasn't working, and I think it's expected that when opening the popover menu, the list scroll is at the top when the layout has scrolling space expanded due to one or multiple saved search items, depending on device height.

Therefore I propose to close this as a non-issue. Otherwise I'd need more information on the device this was reproduced on and more detailed steps on how exactly - if I can reproduce then I'll also be able to test whether the existing proposal fixes the issue.

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 16, 2024

@ikevin127 You can try to save many saved searches and open the first saved search. Besides, I think the only problem here is that we have a space at the bottom.

Screenshot 2024-10-16 at 10 51 33 Screenshot 2024-10-16 at 10 52 52

@ikevin127
Copy link
Contributor

Thanks for the info! I noticed the space at the bottom on my side as well even though it was not going over any of the saved search options.

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

I think there might be a mistake regarding the platforms on which the issue is occuring as the ✅ iOS: Native is checked but all videos where this was reproduced are on ✅ iOS: mWeb Safari from what I can see.

Before removing the white space from the bottom as suggested by the proposal, I want to ask whether the white space at the bottom was put there on purpose. If nobody knows I guess we can move forward with removing it.

This is how things look on my side (dark theme) and with Safari tab bar both on the bottom and on the top:

Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2024-10-16.at.14.34.37.mp4

cc @luacmartins @Kicu @Expensify/design Tagging all which either worked on SearchFiltersNarrow.tsx or might want have a say in whether we want that bottom space removed or anything else changed when it comes to this issue's Expected result.

Note

My take

I think that the bottom spacing referenced in #50592 (comment) is there for a reason as it matches the popover's side / top spacing (see below) and back to this issue: when we have multiple saved search items in the list or even if there's just one and the height of the device is small -> it's expected we would have overlapping while still being able to scroll -> therefore not an issue.

It would only be an issue if the overlapping would not allow scrolling and the option item would be cut by that spacing without being able to scroll to see it fully.

But maybe some of you might see this from a different perspective, hence I tagged you and opened this up for discussion.

Top / Bottom Spacing Side Spacing
Screenshot 2024-10-16 at 14 44 24 Screenshot 2024-10-16 at 14 44 10

@shawnborton
Copy link
Contributor

I think the bottom space is fine to be there, but it should scroll with the entire content of the modal. So basically we want these kinds of modals to have 16px padding on the top and bottom, but that padding should be considered as part of the scrollable area that is kept within the overall modal height, if that makes sense.

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 17, 2024

@shawnborton I think we should only move the padding bottom to the scrollable area. Moving the padding-top to the scrollable area the content will be close to the top edge when scrolling.

@shawnborton
Copy link
Contributor

I don't think I agree with you, I think both top and bottom should be in the scrollable area. But let's see some videos to compare :)

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 17, 2024

@shawnborton Here is the video

  • Only the bottom padding is in the scrollable area
Screen.Recording.2024-10-17.at.19.39.56.mov
  • Both top and bottom padding are in the scrollable area
Screen.Recording.2024-10-17.at.19.39.31.mov

@shawnborton
Copy link
Contributor

I think the second video (both top and bottom can scroll) looks much better to me. Curious what the rest of the @Expensify/design thinks though!

@dannymcclain
Copy link
Contributor

I agree—I think that feels more natural/expected to me.

@muttmuure muttmuure moved this to MEDIUM in [#whatsnext] #quality Oct 17, 2024
@mkzie2
Copy link
Contributor

mkzie2 commented Oct 17, 2024

Updated proposal.

@ikevin127 The design is confirmed. Please help to take a look at my proposal again.

@ikevin127
Copy link
Contributor

Given this was confirmed with the design team, @mkzie2's updated proposal looks good to me. The RCA is correct and the proposed solution addresses the issue as required.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 17, 2024

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

@dubielzyk-expensify
Copy link
Contributor

100% with the second video 👍

@ikevin127
Copy link
Contributor

ikevin127 commented Oct 18, 2024

cc @luacmartins for assignment here based on proposal review from #50592 (comment).

Edit: A heartfelt thank you!

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

melvin-bot bot commented Oct 18, 2024

📣 @ikevin127 🎉 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 Oct 18, 2024

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

@ikevin127
Copy link
Contributor

@mkzie2 Please let us know when we can expect a PR to be ready for review 🧑‍💻

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 Weekly KSv2 labels Oct 22, 2024
@melvin-bot melvin-bot bot changed the title [$250] Search - Saved search area is partially overlapped by url field [HOLD for payment 2024-10-30] [$250] Search - Saved search area is partially overlapped by url field Oct 23, 2024
Copy link

melvin-bot bot commented Oct 23, 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 Oct 23, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.52-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-10-30. 🎊

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

Copy link

melvin-bot bot commented Oct 23, 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:

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

@ikevin127
Copy link
Contributor

Regression Test Proposal

  1. Go to Search.

  2. Create several saved search items if none (to make the popover scrollable).

  3. Press the header's dropdown button.

  4. Verify there's top padding in the popover.

  5. Scroll the list.

  6. Verify there's NO top AND bottom padding while scrolling.

  7. Scroll to the bottom.

  8. Verify there's bottom padding.

    In other words, the padding is scrolled with the list instead of being fixed at the top or bottom.

Do we agree 👍 or 👎.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 29, 2024
@strepanier03
Copy link
Contributor

Reg test submitted. Handling payments now.

@strepanier03
Copy link
Contributor

Payment Summary

@strepanier03 strepanier03 changed the title [HOLD for payment 2024-10-30] [$250] Search - Saved search area is partially overlapped by url field [PAID] [$250] Search - Saved search area is partially overlapped by url field Oct 30, 2024
@github-project-automation github-project-automation bot moved this from MEDIUM to Done in [#whatsnext] #quality Oct 30, 2024
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
Development

No branches or pull requests

8 participants