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-08-07] [$250] Chat - Not here page does not have back button #45910

Closed
2 of 6 tasks
lanitochka17 opened this issue Jul 22, 2024 · 24 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 22, 2024

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: 9.0.10-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Open a chat and send a comment
  3. Copy the link of the comment sent on step 2
  4. Paste the link on the URL and add random numbers at the end and navigate to it

Expected Result:

The not here page have back button at the top left corner

Actual Result:

Not here page which gets displayed doesn't have any back button even if other "don't have access" pages have the back button

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

Bug6549442_1721654662608.Screen_Recording_20240722_161807_Chrome.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01dbe85c3ec54018bc
  • Upwork Job ID: 1815414741380280360
  • Last Price Increase: 2024-07-22
Issue OwnerCurrent Issue Owner: @sobitneupane
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

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

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.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@ishpaul777
Copy link
Contributor

maybe from #44488, reverting locally to confirm

@ishpaul777
Copy link
Contributor

sorry it didn't work i was not able see not found page at all after straight reverting(Pr here- #45914 )

Screen.Recording.2024-07-22.at.8.15.09.PM.mov

@bernhardoj
Copy link
Contributor

Proposal

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

There is no back button when linking to a not found action.

What is the root cause of that problem?

If we look at the code, the not found page when the linked action is not found never has a header with a back button.

if (
(!isLinkedActionInaccessibleWhisper && isLinkedActionDeleted) ||
(shouldShowSkeleton &&
!reportMetadata.isLoadingInitialReportActions &&
reportActionIDFromRoute &&
sortedAllReportActions &&
sortedAllReportActions?.length > 0 &&
reportActions.length === 0 &&
!isLinkingToMessage)
) {
return (
<BlockingView
icon={Illustrations.ToddBehindCloud}
iconWidth={variables.modalTopIconWidth}
iconHeight={variables.modalTopIconHeight}
title={translate('notFound.notHere')}
shouldShowLink
linkKey="notFound.noAccess"
onLinkPress={navigateToEndOfReport}
/>
);
}

It was added in 104884a the first time. #44488 fixes the not found condition which now shows the not found correctly when the linked action doesn't found, just like when it's introduced.

So, this is a feature request to show the header.

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

We can add a header with a back button above the blocking view component.

<>
<HeaderWithBackButton shouldShowBackButton={shouldUseNarrowLayout} onBackButtonPress={navigateToEndOfReport}/>
<BlockingView />
</>

We only show it on narrow layout and the back press will call the same function as onLinkPress of the blocking view, that is to clear the report action route params.

@tgolen tgolen removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 22, 2024
@tgolen
Copy link
Contributor

tgolen commented Jul 22, 2024

I'm going to demote this since it's not a regression and it's not a typical flow that will disrupt anything. I agree that this is probably something we should add and I appreciate the early proposal from @bernhardoj

@tgolen tgolen added the External Added to denote the issue can be worked on by a contributor label Jul 22, 2024
@melvin-bot melvin-bot bot changed the title Chat - Not here page does not have back button [$250] Chat - Not here page does not have back button Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

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

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

melvin-bot bot commented Jul 22, 2024

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

@tgolen tgolen added Daily KSv2 and removed Hourly KSv2 labels Jul 22, 2024
@kabeer95
Copy link

Proposal

Problem Statement

When a user navigates to a chat comment URL without access, the "Not Here" page is displayed without a back button, making it difficult for users to navigate back to the previous page.

Root Cause

The root cause of this problem is that the "Not Here" page is missing a back button, unlike other "don't have access" pages that have a back button. This inconsistency in design is causing a poor user experience.

Proposed Solution

To solve this problem, I propose adding a back button to the top left corner of the "Not Here" page. This button should allow users to easily navigate back to the previous page.

Changes To implement this solution, we need to make the following changes:

Modify

the BlockingView component to include a backButton property with a text property for the button text and an onPress property for the navigation function.

Implement

the navigateBack function to navigate back to the previous page.
Code Changes The modified code will look like this:

javascript

if (
    (!isLinkedActionInaccessibleWhisper && isLinkedActionDeleted) ||
    (shouldShowSkeleton &&
        !reportMetadata.isLoadingInitialReportActions &&
        reportActionIDFromRoute &&
        sortedAllReportActions &&
        sortedAllReportActions?.length > 0 &&
        reportActions.length === 0 &&
        !isLinkingToMessage)
) {
    return (
        <BlockingView
            icon={Illustrations.ToddBehindCloud}
            iconWidth={variables.modalTopIconWidth}
            iconHeight={variables.modalTopIconHeight}
            title={translate('notFound.notHere')}
            shouldShowLink
            linkKey="notFound.noAccess"
            onLinkPress={navigateToEndOfReport}
            backButton={{
                text: translate('common.goBack'),
                onPress: navigateBack,
            }}
        />
    );
}

Alternative Solutions

I explored the following alternative solutions:

Adding a "Go Back" link instead of a button, but this may not be as visually appealing or intuitive for users.
Redirecting users to a default page instead of displaying the "Not Here" page, but this may not provide enough context to users about why they don't have access to the page.

@sobitneupane
Copy link
Contributor

Thanks for the proposal everyone.

Proposal from @bernhardoj looks good.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 24, 2024

Current assignee @tgolen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 24, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 24, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @sobitneupane

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 31, 2024
@melvin-bot melvin-bot bot changed the title [$250] Chat - Not here page does not have back button [HOLD for payment 2024-08-07] [$250] Chat - Not here page does not have back button Jul 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 31, 2024
Copy link

melvin-bot bot commented Jul 31, 2024

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

Copy link

melvin-bot bot commented Jul 31, 2024

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

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

  • @sobitneupane requires payment through NewDot Manual Requests
  • @bernhardoj requires payment through NewDot Manual Requests

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

Issue is ready for payment but no BZ is assigned. @dylanexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

Copy link

melvin-bot bot commented Aug 7, 2024

Payment Summary

Upwork Job

BugZero Checklist (@dylanexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1815414741380280360/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@bernhardoj
Copy link
Contributor

Requested in ND.

@JmillsExpensify
Copy link

@dylanexpensify do you mind providing a confirmed payment summary.

@dylanexpensify
Copy link
Contributor

Payment summary:

Please apply/request!

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

Copy link

melvin-bot bot commented Aug 12, 2024

@tgolen, @sobitneupane, @bernhardoj, @dylanexpensify Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
@sobitneupane
Copy link
Contributor

Regression Test Proposal

  1. Open a chat and send a comment
  2. Copy the link of the comment
  3. Paste the link and add random numbers at the end and send it in the chat.
  4. Click on the link
  5. On small screen devices, verify not found page is displayed with a back button and on large screen, verify not found page does not have back button.

Do we agree 👍 or 👎

@garrettmknight
Copy link
Contributor

$250 approved for @sobitneupane

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 Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants