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

[$250] Trip- No option to copy Modify trip or Trip support external link when right-click on the link #54540

Closed
6 of 8 tasks
IuliiaHerets opened this issue Dec 24, 2024 · 14 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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 24, 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: 9.0.78-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 11
App Component: Money Requests

Action Performed:

Precondition:

  1. Go to staging.new.expensify.com
  2. Go to Account settings.
  3. Right click on any option that will open external website (Domains, Help, View the code).
  4. Note that it shows option to copy the external link.
  5. Go to Trip room.
  6. Go to Trip thread.
  7. Click View trip details.
  8. Right click on Modify trip or Trip support button.

Expected Result:

There should be an option to copy Modify trip or Trip support external link when right-click on the button.

Actual Result:

There is no option to copy Modify trip or Trip support external link when right-click on the button.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6701804_1735047593465.bandicam_2024-12-24_21-34-11-875.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021873741980414961550
  • Upwork Job ID: 1873741980414961550
  • Last Price Increase: 2024-12-30
Issue OwnerCurrent Issue Owner: @paultsimura
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Dec 24, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

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

Copy link

melvin-bot bot commented Dec 24, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Dec 24, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 24, 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.

@jasperhuangg jasperhuangg added Daily KSv2 DeployBlockerCash This issue or pull request should block deployment and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 24, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

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

Copy link

melvin-bot bot commented Dec 24, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels Dec 24, 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.

@neil-marcellini neil-marcellini removed the DeployBlockerCash This issue or pull request should block deployment label Dec 24, 2024
@neil-marcellini neil-marcellini removed their assignment Dec 24, 2024
@Shahidullah-Muffakir
Copy link
Contributor

Shahidullah-Muffakir commented Dec 24, 2024

Edited by proposal-police: This proposal was edited at 2024-12-24 22:24:28 UTC.

Proposal

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

No option to copy Modify trip or Trip support external link when right-click on the link

What is the root cause of that problem?

The onSecondaryInteraction is not added in the TripDetailsPage, like it is added in the About and other pages for links.

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

We can add the onSecondaryInteraction prop to the MenuItem here in the TripDetailsPage :

<MenuItem
title={translate('travel.tripSupport')}

as:

                      <MenuItem
                        title={translate('travel.tripSupport')}
                        ref={popoverAnchor}
                        onSecondaryInteraction={(e) => ReportActionContextMenu.showContextMenu(CONST.CONTEXT_MENU_TYPES.LINK, e, CONST.TRAVEL_DOT_URL, popoverAnchor.current)}

and also for modifyTrip

we can invoke the buildTravelDotURL to return the exact URL instead of using hardcoded CONST.TRAVEL_DOT_URL

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

@thienlnam thienlnam added Daily KSv2 and removed Hourly KSv2 labels Dec 25, 2024
@melvin-bot melvin-bot bot added the Overdue label Dec 27, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

@thienlnam, @bfitzexpensify Eep! 4 days overdue now. Issues have feelings too...

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Dec 30, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

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

@melvin-bot melvin-bot bot changed the title Trip- No option to copy Modify trip or Trip support external link when right-click on the link [$250] Trip- No option to copy Modify trip or Trip support external link when right-click on the link Dec 30, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 30, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Dec 30, 2024
@mkzie2
Copy link
Contributor

mkzie2 commented Dec 30, 2024

I don't think it's a bug because the TRAVEL_DOT_URL requires the token and it doesn't make sense to display the copy with URL is TRAVEL_DOT_URL (it's not the same with the correct URL) or using buildTravelDotURL (this will call the API to request the sort live token that can be outdated quickly).

@paultsimura
Copy link
Contributor

@thienlnam @bfitzexpensify do we want to enable the right-click + copy functionality for these links?

@bfitzexpensify
Copy link
Contributor

Hm, yeah, after reviewing this, I'm not sure what the purpose would be of that flow. Closing this out.

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
None yet
Development

No branches or pull requests

8 participants