-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Due for payment 2025-02-18] [$500][not here] Prevent "Hmm... It's not here" when logging in by immediately navigating to a report user has access to #55721
Comments
Job added to Upwork: https://www.upwork.com/jobs/~021882791476183455793 |
Current assignee @muttmuure is eligible for the NewFeature assigner, not assigning anyone new. |
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to Design team member for new feature review - @shawnborton ( |
Contributor details |
📣 @OmarKoueifi! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue arises when a user navigates to a report they do not have access to (e.g., due to permission issues or the report being restricted). Instead of a smooth fallback mechanism, the user currently sees a message that says: "Hmm... it's not here. You don't have access to this chat". What is the root cause of that problem?The root cause lies in the What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Prevent the "Hmm... It's not here" message during login by promptly navigating the user to a report they can access What is the root cause of that problem?New requirement What changes do you think we should make in order to solve the problem?Introduce a new prop, redirectLastAccessedReport, in the FullPageNotFoundView component. This prop will handle redirection to the most recently accessed report when enabled. add following code at
And when calling FullPageNotFoundView, pass redirectLastAccessedReport as true for redirection where required Examples: App/src/pages/home/ReportScreen.tsx Line 793 in b59f23b
2-
3-
4-
5- Line 196 in 5ec2edd
6- App/src/pages/ErrorPage/NotFoundPage.tsx Line 26 in 5ec2edd
Extend to Other Components What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Automated Test Scenarios Validate that upon login: Note: I have tested the following links, and they are functioning correctly after the changes. Videos: Before: 55721-Before-1.mp4After: 55721-After-1.mp4 |
@rushatgabhane looks like you've got a few proposals to review :D |
hellooou! i don't think the above proposals are exactly what we want. this is the expected outcome -
Login is the only case where you should be redirected. If you're already logged in and visit an invalid report, then you should see the 404 page. |
@rushatgabhane how is the "last visited route" determined? Do we store the current route/screen on each navigation for logged-in users? Also, should this behavior only be applied in case where the user doesn't have permission to view a valid report ID? Or should it also apply for invalid/non-existent report IDs? |
i could be wrong, but we only store last visited route. it is stored as a NVP (name value pair) |
I believe we can also get the last accessed report using |
Thanks for clarifying the expected behavior! I believe my proposed solution already aligns with the desired outcome. Let me explain how my changes ensure this: 1. What I did:I introduced the 2. How the logic flows:
if (!canAccessReportPage(reportID)) {
Navigation.navigate(ROUTES.HOME);
return;
}
3. Why this matches the expected behavior:
1.When.signing.in.with.a.valid.report.link.mov
2.When.signing.in.with.an.invalid.report.link.mov
3.When.already.signed.in.mov
public.report.movAdditional ClarificationCurrently, it seems that the existing behavior (without my code changes) redirects the user to the last report they interacted with or sent a message to. This happens automatically as part of the app’s navigation logic, only when signing in. Should we keep this behavior, or should we explicitly redirect the user to:
I also tested |
give @OmarKoueifi the 💰 already! @Beamanator their proposal LGTM 🎀 👀 🎀 |
Current assignee @Beamanator is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@OmarKoueifi i think we should also add Concierge as a fallback. If |
Sounds good, will do. |
📣 @OmarKoueifi 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The PR will be ready tomorrow end of day or Monday morning, depending on the test results. |
Prevent It's not here message when logging in #55721
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-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 2025-02-18. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: ?
Slack conversation #quality:
Action Performed:
Expected Result:
I'd expect your most recently accessed report, or maybe even Concierge report, would be open instead of being greeted with "Hmm... it's not here"
Actual Result:
See that after you log in, you immediately are greeted with "Hmm... it's not here"
- Example logs from my expensifail account
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: