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-06-24] [$250] The FAB or Search category selector are narrow #43657

Closed
2 of 6 tasks
mountiny opened this issue Jun 13, 2024 · 32 comments
Closed
2 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@mountiny
Copy link
Contributor

mountiny commented Jun 13, 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: v1.4.83-0
Reproducible in staging?: Y
Reproducible in production?: N
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: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718283502781369

Action Performed:

Break down in numbered steps

  1. Click on the + green button
  2. Or go to Search page and select Expenses to choose different category to show

Expected Result:

Describe what you think should've happened

The modal show take the entire width of the screen

Actual Result:

Describe what actually happened

The modal is very narrow

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

RPReplay_Final1718283365.MP4

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0163f71b7719038ed3
  • Upwork Job ID: 1801238352430390753
  • Last Price Increase: 2024-06-13
  • Automatic offers:
    • hoangzinh | Reviewer | 102723522
    • bernhardoj | Contributor | 102723525
Issue OwnerCurrent Issue Owner: @johncschuster
@mountiny mountiny added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title The FAB or Search category selector are narrow [$250] The FAB or Search category selector are narrow Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

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

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

melvin-bot bot commented Jun 13, 2024

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

Copy link

melvin-bot bot commented Jun 13, 2024

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

Copy link

melvin-bot bot commented Jun 13, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jun 13, 2024
Copy link
Contributor

👋 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.

@fedirjh
Copy link
Contributor

fedirjh commented Jun 13, 2024

This is a progression from #39520, it's caused by this extra view

It can be fixed with the following code :

<View style={[isSmallScreenWidth && styles.w100]}>

@bernhardoj
Copy link
Contributor

bernhardoj commented Jun 13, 2024

Proposal

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

The modal in mobile has a very narrow width.

What is the root cause of that problem?

In a recent focus trap PR, we added an extra plain View to the Modal children which doesn't have any style.

>
<FocusTrapForModal active={isVisible}>
<View>
<ModalContent onDismiss={handleDismissModal}>
<View
style={[styles.defaultModalContainer, modalPaddingStyles, modalContainerStyle, !isVisible && styles.pointerEventsNone]}

The correct width, spacing, etc. style of a modal is applied to the View inside ModalContent.

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

We can technically apply the same style to the extra View too, but instead of having 2 View, we can just have 1.

  1. Remove the extra View
  2. Move the FocusTrapForModal below the ModalContent
<ModalContent ...>
    <FocusTrapForModal active={isVisible}>
        <View style...>

@fedirjh
Copy link
Contributor

fedirjh commented Jun 13, 2024

@bernhardoj I guess this will break the focus trap, more context #39520 (comment)

cc @jnowakow

@bernhardoj
Copy link
Contributor

bernhardoj commented Jun 13, 2024

It works fine as far as I tested

Screen.Recording.2024-06-13.at.21.36.27.mov

I updated my comment to a proposal in case we want to fix this externally

Copy link

melvin-bot bot commented Jun 13, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@jnowakow
Copy link
Contributor

@bernhardoj's proposal seems to be better option than applying style to this additional view. It's important to have View as a child of FocusTrapForModal but there's no problem in placing it inside ModalContent.

@dangrous
Copy link
Contributor

That makes sense to me as well as long as it doesn't break the focus trap, which I defer to @jnowakow and @fedirjh to confirm. Seems like we're okay?

@fedirjh
Copy link
Contributor

fedirjh commented Jun 13, 2024

Looks good to me as well, it looks like the focus trap is working as expected. Let's proceed with @bernhardoj proposal.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 13, 2024
@mountiny
Copy link
Contributor Author

This was CPed and fixed

$250 to @bernhardoj and to @allroundexperts

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] The FAB or Search category selector are narrow [HOLD for payment 2024-06-24] [$250] The FAB or Search category selector are narrow Jun 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

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

Copy link

melvin-bot bot commented Jun 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.84-3 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-06-24. 🎊

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

Copy link

melvin-bot bot commented Jun 17, 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:

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 21, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-24] [$250] The FAB or Search category selector are narrow [HOLD for payment 2024-06-28] [HOLD for payment 2024-06-24] [$250] The FAB or Search category selector are narrow Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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-06-28. 🎊

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

Copy link

melvin-bot bot commented Jun 21, 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:

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

@johncschuster
Copy link
Contributor

Discussing in Slack to make sure I'm understanding the correct payment date

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 24, 2024
@johncschuster
Copy link
Contributor

johncschuster commented Jun 25, 2024

Payment Summary:

Contributor+: @allroundexperts - $250 - paid via Manual request
Contributor: @bernhardoj - $250 - paid via Upwork - PAID

@allroundexperts, can you complete the BZ Checklist when you get a moment? Thank you!

@luacmartins
Copy link
Contributor

I think the due date here is the 24th. Updated the title to reflect that.

@melvin-bot melvin-bot bot added the Overdue label Jun 27, 2024
@luacmartins luacmartins changed the title [HOLD for payment 2024-06-28] [HOLD for payment 2024-06-24] [$250] The FAB or Search category selector are narrow [HOLD for payment 2024-06-24] [$250] The FAB or Search category selector are narrow Jun 27, 2024
@johncschuster
Copy link
Contributor

Yep! Payment has already been issued via Upwork. We're just waiting on the BZ Checklist to be completed.

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2024
@johncschuster
Copy link
Contributor

@allroundexperts can you complete the BZ Checklist above? Once finished, we can close this up.

@allroundexperts
Copy link
Contributor

Checklist

  1. Add focus trap #39520
  2. The software mansion team was aware of this issue already here.
  3. N/A
  4. I think that the FAB and search category selector are being covered in other regression tests so a new one is not needed.

@melvin-bot melvin-bot bot added the Overdue label Jun 30, 2024
@johncschuster
Copy link
Contributor

Thanks, @allroundexperts! Please go ahead and request payment if you haven't already!

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@JmillsExpensify
Copy link

$250 approved for @allroundexperts

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants