App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-12-17] [$125] Add "Go to workspace" as a shortcut in all of the workspace chats, rooms and reports details page.

Open trjExpensify opened this issue 1 year ago β€’ 25 comments

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: v9.0.64-3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A 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: @trjExpensify Slack conversation: #convert thread

Action Performed:

  1. Create a workspace
  2. Navigate to the #admins room
  3. Click the header of the chat

Expected Result:

This is a new feature

  1. Add a Go to workspace row in the bottom position of the details screen of all workspace chats, rooms, threads originating from a parentChat associated with a workspace, expense reports and expense transaction threads.
image
  1. When clicked, navigate to the workspace settings page. On small screens that'll be the LHN workspace settings page, on large screens that will be the workspace profile page.

Actual Result:

Users are getting a little lost trying to find their workspace settings, and one of the places they're commonly looking is in the details screen of the chats/reports associated with the workspace. As such, we want to provide a shortcut to get to the workspace settings from there to hopefully help.

Workaround:

N/A, improvement.

Platforms:

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

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

Screenshots/Videos

In-line above.

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021860062325064165317
  • Upwork Job ID: 1860062325064165317
  • Last Price Increase: 2024-11-22
  • Automatic offers:
    • mkzie2 | Contributor | 105028511
Issue OwnerCurrent Issue Owner: @trjExpensify

trjExpensify avatar Nov 20 '24 13:11 trjExpensify

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

melvin-bot[bot] avatar Nov 20 '24 13:11 melvin-bot[bot]

Current assignee @trjExpensify is eligible for the NewFeature assigner, not assigning anyone new.

melvin-bot[bot] avatar Nov 20 '24 13:11 melvin-bot[bot]

Edited by proposal-police: This proposal was edited at 2024-11-20 13:47:59 UTC.

Proposal

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

Users are getting a little lost trying to find their workspace settings, and one of the places they're commonly looking is in the details screen of the chats/reports associated with the workspace. As such, we want to provide a shortcut to get to the workspace settings from there to hopefully help.

What is the root cause of that problem?

This is a new feature

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

  1. Create a new const here for Go to workspace and a translation key for Go to workspace

  2. Add the Go to workspace item here if the report?.policyID isn't fake policyID with action is a function that we will navigate to the LHN workspace settings page in small screen, navigate to the workspace profile page if it's the large screen.

if (report?.policyID && report?.policyID !== CONST.POLICY.ID_FAKE) {
    items.push({
        key: CONST.REPORT_DETAILS_MENU_ITEM.GO_TO_WORKSPACE,
        translationKey: 'common.goToWorkspace',
        icon: Expensicons.Workspace,
        action: () => {
            if (isSmallScreenWidth) {
                Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(report?.policyID));
                return;
            }
            Navigation.navigate(ROUTES.WORKSPACE_PROFILE.getRoute(report?.policyID));
        },
        isAnonymousAction: false,
        shouldShowRightIcon: true,
    })
}

https://github.com/Expensify/App/blob/9f83a4118ff0b8080ac8c037b36a26252a12b06f/src/pages/ReportDetailsPage.tsx#L520

What alternative solutions did you explore? (Optional)

mkzie2 avatar Nov 20 '24 13:11 mkzie2

Proposal from @mkzie2 looks good to me.

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed.

mananjadhav avatar Nov 20 '24 19:11 mananjadhav

Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] avatar Nov 20 '24 19:11 melvin-bot[bot]

@youssef-lr Please take a look when you have time.

mkzie2 avatar Nov 22 '24 04:11 mkzie2

@youssef-lr I am not sure if something else needs to be done. @mkzie2 was assigned the issue but I don't see a GH comment about the assignment + upwork link.

mananjadhav avatar Nov 22 '24 20:11 mananjadhav

yeah it seems like it failed to do so. Let me try again.

youssef-lr avatar Nov 22 '24 20:11 youssef-lr

Hmm it's not working, I'll check the logs and report back

youssef-lr avatar Nov 22 '24 20:11 youssef-lr

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

melvin-bot[bot] avatar Nov 22 '24 20:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Nov 22 '24 20:11 melvin-bot[bot]

πŸ“£ @mkzie2 πŸŽ‰ 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 πŸ“–

melvin-bot[bot] avatar Nov 22 '24 20:11 melvin-bot[bot]

Upwork job price has been updated to $125

melvin-bot[bot] avatar Nov 22 '24 20:11 melvin-bot[bot]

Adjusting price as this is a pretty simple feature request.

youssef-lr avatar Nov 22 '24 20:11 youssef-lr

@trjExpensify Do we always want to keep Go to workspace at the bottom? For example in thread report & transaction thread report:

Thread Transaction thread
Screenshot 2024-11-25 at 23 42 28 Screenshot 2024-11-25 at 23 42 41

mkzie2 avatar Nov 25 '24 16:11 mkzie2

Good question! @Expensify/design, what do you think? Breaking up the carets looks a bit weird.

trjExpensify avatar Nov 26 '24 14:11 trjExpensify

Agree, I think I would always keep Leave & Delete last in the list.

shawnborton avatar Nov 26 '24 14:11 shawnborton

Cool, sounds good to me!

trjExpensify avatar Nov 26 '24 22:11 trjExpensify

Waiting on @mkzie2 to fix the comments raised on the PR.

mananjadhav avatar Nov 28 '24 19:11 mananjadhav

@trjExpensify @youssef-lr Can one of you confirm the behavior here?

mananjadhav avatar Dec 04 '24 17:12 mananjadhav

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

melvin-bot[bot] avatar Dec 09 '24 19:12 melvin-bot[bot]

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

melvin-bot[bot] avatar Dec 09 '24 20:12 melvin-bot[bot]

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

melvin-bot[bot] avatar Dec 10 '24 22:12 melvin-bot[bot]

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.73-8 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/53076

If no regressions arise, payment will be issued on 2024-12-17. :confetti_ball:

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

  • @mananjadhav requires payment through NewDot Manual Requests
  • @mkzie2 requires payment automatic offer (Contributor)

melvin-bot[bot] avatar Dec 10 '24 22:12 melvin-bot[bot]

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [ ] [@mananjadhav] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [ ] [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

melvin-bot[bot] avatar Dec 10 '24 22:12 melvin-bot[bot]

The PR was reverted. Awaiting the revised PR.

mananjadhav avatar Dec 11 '24 07:12 mananjadhav

@mananjadhav The PR is ready.

mkzie2 avatar Dec 11 '24 08:12 mkzie2

πŸ‘‹ checklist time please, @mananjadhav!

trjExpensify avatar Dec 17 '24 12:12 trjExpensify

@trjExpensify There was a regression on the PR, so it was reverted. The follow-up PR is raised, which I'll finish the checklist on.

mananjadhav avatar Dec 17 '24 12:12 mananjadhav

Great, thanks!

trjExpensify avatar Dec 18 '24 02:12 trjExpensify