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

[$500] Room - Selection list RHP does not show sliding animation while being dismissed #38665

Closed
2 of 6 tasks
izarutskaya opened this issue Mar 20, 2024 · 39 comments
Closed
2 of 6 tasks
Assignees
Labels
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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 20, 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: 1.4.55-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com.
  2. Go to FAB > Start room.
  3. Go to Room.
  4. Click Workspace (or Who can post or Visibility).
  5. Click outside the RHP.

Expected Result:

The RHP will show sliding animation while being dismissed.

Actual Result:

The RHP does not show sliding animation while being dismissed.

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

Bug6420333_1710932931030.20240320_190525.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a45c6aecba3aa427
  • Upwork Job ID: 1770474516290019328
  • Last Price Increase: 2024-05-08
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 20, 2024
Copy link

melvin-bot bot commented Mar 20, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 20, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Mar 20, 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.

Copy link

melvin-bot bot commented Mar 20, 2024

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

@izarutskaya
Copy link
Author

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

We think this issue might be related to the #vip-vsb.

@allgandalf
Copy link
Contributor

This isn't a regression ig, #38015 actually fixed the issue that if we click outside of the selector we cllose the RHP, isn't that right @Krishna2323 ?

@rlinoz
Copy link
Contributor

rlinoz commented Mar 20, 2024

He did, but the videos in the Authors checklist there is an animation, and in the reviewers checklist there is not, so something happened along the way.

@Krishna2323 @hoangzinh

@rlinoz
Copy link
Contributor

rlinoz commented Mar 20, 2024

Not a deploy blocker though, so removing the label

@rlinoz rlinoz removed the DeployBlockerCash This issue or pull request should block deployment label Mar 20, 2024
@ghost
Copy link

ghost commented Mar 20, 2024

I don't see this issue happening in my case on the latest main

Screen.Recording.2024-03-20.at.5.34.35.PM.mp4

@Krishna2323
Copy link
Contributor

@rlinoz @GandalfGwaihir, thanks for the mention, checking...

@rlinoz
Copy link
Contributor

rlinoz commented Mar 20, 2024

@godofoutcasts94 you have to click outside the RHP.

@ghost
Copy link

ghost commented Mar 20, 2024

Yes i did

@Pranav2612000
Copy link

Pranav2612000 commented Mar 20, 2024

Proposal

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

  • Open up the RHP by using FAB > Start room
  • Open up any Value picker ( Workspace, Who can post or Visibility )
  • Click outside the RHP anywhere

We observe that the whole RHP closes. The expected result is that only the ValuePickerModal should
close and show the Room page again

What is the root cause of that problem?

In ValuePicker/index.tsx we are dismissing the Modal when pressed outside

onBackdropPress={Navigation.dismissModal}

This causes the whole modal to close

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

To fix this, we should pass the hidePickerModal as the value to the onBackdropPress prop. E.g

            <ValueSelectorModal
                isVisible={isPickerVisible}
                label={label}
                selectedItem={selectedItem}
                items={items}
                onClose={hidePickerModal}
                onItemSelected={updateInput}
                shouldShowTooltips={shouldShowTooltips}
                onBackdropPress={hidePickerModal}
            />

What alternative solutions did you explore? (Optional)

NA

@Pranav2612000
Copy link

Pranav2612000 commented Mar 20, 2024

@Krishna2323 This was added by you around 2 weeks back ( 904316b )
Was there a reason you used Navigation.dismissModal ?

@shahinyan11
Copy link

shahinyan11 commented Mar 20, 2024

Proposal

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

Room - Selection list RHP does not show sliding animation while being dismissed

What is the root cause of that problem?

The ValueSelectorModal opens separately in a RHP screen . And when we call Navigation.dismissModal in on backdrop press we the prev screen is closing with animation which will not affect to ValueSelectorModal

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

when the user clicks on the background Call hidePickerModal too. To do that we can update this line like below

onBackdropPress={()=>{
    Navigation.dismissModal()
    hidePickerModal()
}}

What alternative solutions did you explore? (Optional)

Make the ValueSelectorModal separate screen in ModalStackNavigators and update onPress to navigate to this screen

@CortneyOfstad
Copy link
Contributor

Pinged on the original PR here

@danieldoglas
Copy link
Contributor

This should probably be fixed by the original PR creator, since it's in the regression period. @Krishna2323

@CortneyOfstad
Copy link
Contributor

PR is still being reviewed 👍

@CortneyOfstad
Copy link
Contributor

PR still in review 👍

@CortneyOfstad
Copy link
Contributor

Bumped the PR as it looks like we're waiting on clarification on one comment

@rlinoz
Copy link
Contributor

rlinoz commented Apr 30, 2024

Reopening for proposals since we got to a dead end here.

@rlinoz rlinoz added Reviewing Has a PR in review Help Wanted Apply this label when an issue is open to proposals by contributors and removed Reviewing Has a PR in review labels Apr 30, 2024
@hoangzinh
Copy link
Contributor

@rlinoz I think we should add back the "daily" label for this issue.

@rlinoz rlinoz added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
@CortneyOfstad
Copy link
Contributor

Thanks @rlinoz!

Copy link

melvin-bot bot commented May 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
@rlinoz
Copy link
Contributor

rlinoz commented May 3, 2024

waiting for proposals

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 3, 2024
@rlinoz
Copy link
Contributor

rlinoz commented May 6, 2024

waiting for proposals

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
@shahinyan11
Copy link

shahinyan11 commented May 6, 2024

@rlinoz What about the suggestions above that you haven't reviewed yet?

@rlinoz
Copy link
Contributor

rlinoz commented May 6, 2024

@shahinyan11 which one specifically?

@shahinyan11
Copy link

@rlinoz this one

@rlinoz
Copy link
Contributor

rlinoz commented May 6, 2024

The proposal only works if we delay the dismiss: #38711 (comment)

And making it a separate screen was considered poor ROI before: #38711 (comment)

Copy link

melvin-bot bot commented May 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 8, 2024
@rlinoz
Copy link
Contributor

rlinoz commented May 8, 2024

I am inclined to close this for now, since we don't want to create the new screens yet.

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
@CortneyOfstad
Copy link
Contributor

Sounds good to me @rlinoz! Closing!

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 Engineering 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
No open projects
Development

No branches or pull requests

9 participants