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 2023-12-07] [$500] Group chat - Cursor appears disabled briefly when opening user profile from group member view #31147

Closed
2 of 6 tasks
lanitochka17 opened this issue Nov 9, 2023 · 43 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 Nov 9, 2023

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.3.97-2
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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Open a group chat
  3. Click on the group chat header
  4. Click Members
  5. Click on any user

Expected Result:

The cursor will not appear disabled during the transition from group member view to user profile

Actual Result:

The cursor appears disabled briefly when transitioning from group member view to user profile

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

Bug6270227_1699549723542.20231110_003901.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @adelekennedy
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015fd8ea15744b4845
  • Upwork Job ID: 1729917653839990784
  • Last Price Increase: 2023-11-29
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 9, 2023
Copy link

melvin-bot bot commented Nov 9, 2023

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

Copy link

melvin-bot bot commented Nov 9, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 9, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Nov 9, 2023

👋 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 Nov 9, 2023

Triggered auto assignment to @Li357 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@adelekennedy
Copy link

I can reproduce - this seems small though so I wouldn't make this a deploy blocker

@adelekennedy adelekennedy added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Nov 9, 2023
@adelekennedy
Copy link

@Li357 I don't see an obvious cause for this when I'm looking through the list here Am I missing an obvious connection here?

@dukenv0307
Copy link
Contributor

dukenv0307 commented Nov 10, 2023

Proposal

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

Cursor appears disabled briefly when opening user profile from group member view

What is the root cause of that problem?

In OptionRow, when we click on the row, we will set isDisabled as true

setIsDisabled(true);

That makes shouldUseDisabledCursor is true because we removed singleExecution for web in this PR #24482. And then disable cursor displays briefly.

const shouldUseDisabledCursor = useMemo(() => isDisabled && !isExecuting, [isDisabled, isExecuting]);

return {isExecuting: false, singleExecution};

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

We should revert the change for useSingleExecution because we are using this in many places and may have other regressions with this change.

What alternative solutions did you explore? (Optional)

We can add the check platform here to not display the cursor disabled on web and desktop.

const shouldUseDisabledCursor = useMemo(() => isDisabled && !isExecuting, [isDisabled, isExecuting]);

@getusha
Copy link
Contributor

getusha commented Nov 10, 2023

We should not revert the change for useSingleExecution it was removed for web because it was causing a lot of bugs due to it's usage of InteractionManager.

@melvin-bot melvin-bot bot added the Overdue label Nov 13, 2023
Copy link

melvin-bot bot commented Nov 13, 2023

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

1 similar comment
Copy link

melvin-bot bot commented Nov 13, 2023

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

@Li357
Copy link
Contributor

Li357 commented Nov 13, 2023

Taking a look now!

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
@Li357
Copy link
Contributor

Li357 commented Nov 13, 2023

I agree we shouldn't do a revert here @dukenv0307. Are there other ways to ensure certain actions that have immediate results to not show as disabled?

@dukenv0307
Copy link
Contributor

dukenv0307 commented Nov 13, 2023

@Li357 In OptionRow we can add !props.isDisabled && styles.cursorPointer for style prop of PressableWithFeedback since it will override the cursor style default of BaseGenericPressable.

Or we can create an extra prop like isOnPressing with the default value as false. Update this condition to isDisabled && !isExecuting && !isOnPress.

const shouldUseDisabledCursor = useMemo(() => isDisabled && !isExecuting, [isDisabled, isExecuting]);

And in optionRow, we will create a state called isOnPressing with default as false, in onPress function set it to true

setIsDisabled(true);

and reset it as false here

result.finally(() => setIsDisabled(props.isDisabled));

And pass this as isOnPressing into PressableWithFeedback

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@adelekennedy
Copy link

chill Melvin - we're just back from the weekend

Copy link

melvin-bot bot commented Nov 21, 2023

@Li357, @adelekennedy Still overdue 6 days?! Let's take care of this!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 29, 2023
Copy link

melvin-bot bot commented Nov 29, 2023

📣 @thesahindia Please request via NewDot manual requests for the Contributor role ($500)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Nov 30, 2023
@melvin-bot melvin-bot bot changed the title [$500] Group chat - Cursor appears disabled briefly when opening user profile from group member view [HOLD for payment 2023-12-07] [$500] Group chat - Cursor appears disabled briefly when opening user profile from group member view Nov 30, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 30, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

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

Copy link

melvin-bot bot commented Nov 30, 2023

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

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

Copy link

melvin-bot bot commented Nov 30, 2023

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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 7, 2023
@adelekennedy
Copy link

Payouts due:

Contributor: $500 @dukenv0307 (Upwork)
Contributor+: $500 @thesahindia (NewDot)

@dukenv0307 jusy hired you for the job in Upwork - @thesahindia will you check the checklist to see if there are any next steps here?

Copy link

melvin-bot bot commented Dec 12, 2023

@Li357, @adelekennedy, @thesahindia, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Dec 12, 2023
@adelekennedy
Copy link

@thesahindia bump on the checklist

@adelekennedy
Copy link

Also removing Andrew as he's no longer handling issues and re-adding the engineering label

Copy link

melvin-bot bot commented Dec 12, 2023

Triggered auto assignment to @MonilBhavsar (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@thesahindia
Copy link
Member

@thesahindia will you check the checklist to see if there are any next steps here?

It was a minor regression from #24482. Also we don't need any regression test steps.

@thesahindia
Copy link
Member

Payment summary here 😄

@JmillsExpensify
Copy link

$500 payment approved for @thesahindia based on this comment.

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