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

[$1000] mWeb - Long pressing assignee of task not working properly #23026

Closed
1 of 6 tasks
kbecciv opened this issue Jul 17, 2023 · 88 comments
Closed
1 of 6 tasks

[$1000] mWeb - Long pressing assignee of task not working properly #23026

kbecciv opened this issue Jul 17, 2023 · 88 comments
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 Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Jul 17, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Click FAB -> Assign task
  2. Add task details -> Select assignee
  3. Long press on Assignee of task (Which is highlighted)

Expected Result:

It show open proper page when opened in new tab

Actual Result:

It shows "Hmm... it's not here" when opened assignee in new tab

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.40-5
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation

IMG_7822.MOV
IMG_7823.MOV

Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689340118378199

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e03d9b2126b6eabd
  • Upwork Job ID: 1681650265478438912
  • Last Price Increase: 2023-09-27
  • Automatic offers:
    • abdulrahuman5196 | Contributor | 26933751
    • DinalJivani | Reporter | 26933753
    • ShogunFire | Contributor | 26983720
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

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

@melvin-bot
Copy link

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

@samh-nl
Copy link
Contributor

samh-nl commented Jul 17, 2023

The videos are incorrect?

@DinalJivani
Copy link

Yes @samh-nl these are wrong videos..!
CC: @kbecciv

@huzaifa-99
Copy link
Contributor

huzaifa-99 commented Jul 18, 2023

Proposal

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

We want the <TextLink/> of the MentionUserRenderer.js to open in a new tab on long press (which is the expected behaviour of <TextLink/>)

What is the root cause of that problem?

We are using relative link in MentionUserRenderer.js, when we open this link in a new window, report route prefix /r is appended which breaks the Url.

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

In MentionUserRenderer.js, add a / before the route to make it absolute

href={'/' + ROUTES.getDetailsRoute(loginWithoutLeadingAt)} // or via string literal

Optionally we can create a util to convert relative path to absolute path.

What alternative solutions did you explore? (Optional)

N/A

@laurenreidexpensify
Copy link
Contributor

@DinalJivani are the videos correct now?

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 19, 2023
@melvin-bot melvin-bot bot changed the title mWeb - Long pressing assignee of task not working properly [$1000] mWeb - Long pressing assignee of task not working properly Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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

@DinalJivani
Copy link

@DinalJivani are the videos correct now?

No not yet below are correct videos by @kbecciv

IMG_7822.MOV
IMG_7823.MOV

@melvin-bot melvin-bot bot added the Overdue label Jul 21, 2023
@ShogunFire
Copy link
Contributor

@kbecciv Can you confirm the expected behaviour on long press ? For other links it looks like we open the context menu, and on web when we right click (which is often the equivalent of long press) we open the context menu

@ShogunFire
Copy link
Contributor

ShogunFire commented Jul 21, 2023

Proposal

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

When we long press an assignee it doesn't show the context menu and opens a page instead

What is the root cause of that problem?

In the PressableWithoutFeedback in TaskPreview here:

<PressableWithoutFeedback
onPress={() => Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))}
style={[styles.flexRow, styles.justifyContentBetween]}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={props.translate('task.task')}
>

We don't handle the long press event, like we do in IOUPreview or ReportPreview

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

We should handle the long press event in TaskPreview.
For that we need to pass the right props from ReportActionItem here:

<TaskPreview
taskReportID={props.action.originalMessage.taskReportID.toString()}
action={props.action}
isHovered={hovered}
/>

The right props are

chatReportID={props.report.reportID}
contextMenuAnchor={popoverAnchorRef}
checkIfContextMenuActive={toggleContextMenuFromActiveReportAction}

then in TaskPreview we just need to pass the long press handler to the Pressable:
onLongPress={(event) => showContextMenuForReport(event, props.contextMenuAnchor, props.chatReportID, props.action, props.checkIfContextMenuActive)}

Result:

2023-07-21.16-28-55.mp4

What alternative solutions did you explore? (Optional)

Here is my branch if you want to try:
https://github.com/ShogunFire/App/tree/longPressForTaskPreviews

@laurenreidexpensify
Copy link
Contributor

Thanks @DinalJivani - have updated issue with correct videos

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 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 Jul 26, 2023
@abdulrahuman5196
Copy link
Contributor

Will work on review today.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 26, 2023
@laurenreidexpensify
Copy link
Contributor

@abdulrahuman5196 bump for review ^^ thanks

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@abdulrahuman5196
Copy link
Contributor

Sorry for the delay - Reviewing today

@abdulrahuman5196
Copy link
Contributor

Pending review from @AndrewGable

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@laurenreidexpensify
Copy link
Contributor

@DinalJivani will issue correct $250 payment when everything is issued

@abdulrahuman5196
Copy link
Contributor

abdulrahuman5196 commented Oct 4, 2023

Gentle Ping @AndrewGable

@ShogunFire
Copy link
Contributor

@abdulrahuman5196 I think he already assigned me, sorry I was on a trek. I will do the PR today

@abdulrahuman5196
Copy link
Contributor

OOPS. Sorry I didn't see that. My bad.

@AndrewGable
Copy link
Contributor

No worries - Hope the trek was fun 🥾!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 4, 2023
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

This issue has not been updated in over 15 days. @AndrewGable, @ShogunFire, @abdulrahuman5196, @laurenreidexpensify eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@ShogunFire
Copy link
Contributor

@abdulrahuman5196 The PR is ready for review

@laurenreidexpensify laurenreidexpensify added Weekly KSv2 and removed Monthly KSv2 labels Nov 15, 2023
@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:
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:
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:

Its not regression. But it existed this way from beginning.

Determine if we should create a regression test for this bug.

Yes

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.

  1. Click FAB -> Assign task
  2. Add task details
  3. Select assignee
  4. Long press on Assignee of task
  5. Verify that the context menu shows on platforms with touch screen

@laurenreidexpensify
Seems melvin didn't update here automatically. The issue is for payment due today - #28840 (comment)

@ShogunFire
Copy link
Contributor

Can someone makes the paiement for this ?

@abdulrahuman5196
Copy link
Contributor

@laurenreidexpensify Could you kindly process payment on this? Pending for sometime.

@laurenreidexpensify laurenreidexpensify added Daily KSv2 and removed Weekly KSv2 labels Nov 30, 2023
@laurenreidexpensify
Copy link
Contributor

Sorry for the delay here everyone - the automation fail meant I failed to pick this up in time.

Payment Summary:

  • Bug report: @DinalJivani $250 (old rates, reported before 24 Oct) - payment issued in Upwork
  • Contributor: @ShogunFire $1000, offer sent in Upwork
  • C+: @abdulrahuman5196 $1000, payment issued in Upwork

@laurenreidexpensify
Copy link
Contributor

@laurenreidexpensify
Copy link
Contributor

Outstanding action to close: Pay @ShogunFire once job is accepted in Upwork

@laurenreidexpensify
Copy link
Contributor

Updated Payment Summary:

Contributor: @ShogunFire $1000, paid in Upwork

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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

10 participants