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-03-07] [$500] Group - After selecting user in Group chat, the modal is not sliding upwards #37256

Closed
1 of 6 tasks
lanitochka17 opened this issue Feb 27, 2024 · 32 comments
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

@lanitochka17
Copy link

lanitochka17 commented Feb 27, 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: 1.4.44-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): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Access staging.new.expensify.com
  2. Sign into a valid account
  3. Click on the "+" > "Start chat"
  4. Select user to "Add to group"

Expected Result:

User expects that when a user is selected, the modal is slid upwards to show the selection

Actual Result:

The modal does not slide upwards. Also, a few selected members are missing after scrolling back upwards.

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

Bug6393518_1709000644338.Chat_view_is_not_sliding_upwards_on_Staging_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013e254d49afd2fba2
  • Upwork Job ID: 1762306611837190144
  • Last Price Increase: 2024-02-27
  • Automatic offers:
    • ishpaul777 | Contributor | 0
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

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

@melvin-bot melvin-bot bot changed the title Group - After selecting user in Group chat, the modal is not sliding upwards [$500] Group - After selecting user in Group chat, the modal is not sliding upwards Feb 27, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 27, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 27, 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 Feb 27, 2024

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

@lanitochka17
Copy link
Author

Production:

Bug6393518_1709000644345.On_PROD.mp4

@youssef-lr
Copy link
Contributor

This seems to be coming from here, I reverted it locally and I can't reproduce. cc @Piotrfj @allroundexperts.

@askavyblr
Copy link

askavyblr commented Feb 27, 2024

Proposal

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

The modal does not slide upwards when the user selects "Add to group"

What is the root cause of that problem?

useEffect(() => {
const newSections = sliceSections();
const newOptions = flattenSections();
if (prevLocale.current !== props.preferredLocale) {
prevLocale.current = props.preferredLocale;
setAllOptions(newOptions);
setSections(newSections);
return;
}
const newFocusedIndex = props.selectedOptions.length;
const prevFocusedOption = _.find(newOptions, (option) => focusedOption && option.keyForList === focusedOption.keyForList);
const prevFocusedOptionIndex = prevFocusedOption ? _.findIndex(newOptions, (option) => focusedOption && option.keyForList === focusedOption.keyForList) : undefined;
setSections(newSections);
setAllOptions(newOptions);
setFocusedIndex(prevFocusedOptionIndex || (_.isNumber(props.focusedIndex) ? props.focusedIndex : newFocusedIndex));
// we want to run this effect only when the sections change
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.sections]);

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

set the setFocusedIndex when the selection gets changed

What alternative solutions did you explore? (Optional)

CreateGroup-U.webm

@techievivek
Copy link
Contributor

@Piotrfj @allroundexperts Can you please take care of this deployblocker.

@nagypite
Copy link

nagypite commented Feb 27, 2024

There's some scrolling happening, but mostly to the wrong position (just below the selected list).

Additionally the selection logic seems to be faulty as well: the selected options sometimes reset when a new option is selected.

Here is a recording to prove the above points (left side: prod, right side: staging):
Thumbnail for the screencast below
Screencast at: 2024-02-27 11-06-34.webm

Copy link

melvin-bot bot commented Feb 27, 2024

📣 @nagypite! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@nagypite
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~0161b2e93e88f95be5

Copy link

melvin-bot bot commented Feb 27, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@allroundexperts
Copy link
Contributor

This might fix this issue as well.

@allroundexperts
Copy link
Contributor

Will test and confirm.

@allroundexperts
Copy link
Contributor

Okay. @Piotrfj is on it already!

@askavyblr
Copy link

I update the proposal plz take a look
cc: @allroundexperts

@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 29, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

@puneetlath
Copy link
Contributor

@kevinksullivan FYI @ishpaul777 will need to be paid out for being the C+ on this revert PR: #37454

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Feb 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] Group - After selecting user in Group chat, the modal is not sliding upwards [HOLD for payment 2024-03-07] [$500] Group - After selecting user in Group chat, the modal is not sliding upwards Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 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 Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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-03-07. 🎊

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

Copy link

melvin-bot bot commented Feb 29, 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:

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

@kevinksullivan
Copy link
Contributor

@ishpaul777 please complete the checklist above so we can wrap up payments.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Mar 7, 2024

[@ishpaul777] The PR that introduced the bug has been identified. Link to the PR: #31606

[@ishpaul777] 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: #31606 (comment)

[@ishpaul777] 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: n/a straight revert

[@ishpaul777] Determine if we should create a regression test for this bug. - This was caught from QA for a big refactor PR so we dont need one

[@ishpaul777] 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. - n/a
nope

@melvin-bot melvin-bot bot added the Overdue label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

@kevinksullivan, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@ishpaul777
Copy link
Contributor

@kevinksullivan Gentle bump for payment!

@melvin-bot melvin-bot bot removed the Overdue label Mar 13, 2024
@mallenexpensify
Copy link
Contributor

Contributor+: @ishpaul777 paid $500 via Upwork

@ishpaul777 , I created a TestRail for this because QA does monthly tests for edge cases and design-related issues and they might want to include this.
https://github.com/Expensify/Expensify/issues/378695

Thx!

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