-
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
[HOLD for payment 2022-02-09] Generic error page on desktop does not include a link to the website. #7316
Comments
Triggered auto assignment to @sketchydroide ( |
cc: @mananjadhav |
Thanks for tagging. This wasn’t a part of the original requirement if you check the GH issue body #6552 (comment) But I can pick this up, and here’s my proposal:
|
Seems like this is an external, my only question is exactly what link this is, I assume it's www.expensify.com, but it doesn't say anywhere in the GH. |
@sketchydroide I had worked on the previous task, where this is done for the mobile app and following is the link we're redirecting to: App/src/pages/GenericErrorPage/ErrorBodyText/index.native.js Lines 15 to 17 in 7dfe96f
Also, marking the comment where its mentioned redirect URL is Homepage. |
ok, thanks that sounds good, setting as external |
Triggered auto assignment to @trjExpensify ( |
👋 I'm a tad unclear from the OP what we intend to do here. Where are we adding this link on the page, and why only on desktop? |
@trjExpensify The link currently exists for Android and iOS as part of the #6856 (comment) PR. Screenshot from that PR with the text and link highlighted. Hope this helps. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @NikkiWines ( |
Ah, that's helpful. Thanks! I've updated the OP for clarity and exported the job to Upwork here: https://www.upwork.com/jobs/~01c2090be81cc5aedc |
Why go through all this fuss #7316 (comment). Also, this is a small one so I can take it but I have not issues if Manan wants to do it. Proposal cum suggestionI would suggest just renaming the index.js to index.web|website.js and index.native.js to index.js for ErrorBodyText. That should work. 🎀 👀 🎀 C+ reviewed |
Oh nice. I totally forgot we have support for index.web.js.
fine with whatever you guys decide. |
Also this error page should include a submission form as the error will appear on client side and not the server side , so an error submission button would help to identify and fix the bugs fast ... |
Yes @mananjadhav, that's why I created a separate issue 🙂
It's going to be the NewDot URL for whatever environment we're in. So
Good suggestion @parasharrajat 👍
It has to be Also @murataka I understand that fixing specific errors for specific crashes is better, but the fact of the matter is that we are not perfect and sometimes bugs make it to production. Of course we want to fix those and give the users an elegant error experience, but if we're landing at this page it means we have no idea what went wrong, and we're displaying this page instead of a blank white screen. It's somewhat unlikely that switching to web from desktop will resolve the bug, but it's possible and an easy step a user can take.
If they arrive on the web platform, we won't suggest they switch to another to resolve their issues. So we shouldn't have any "recursive error situation"
I think it would make sense to try and display their chat with concierge, but if they hit Furthermore, we have Firebase crashlytics which should catch and log these errors, though I'm not sure if it works for web/desktop. cc @Jag96 do you know off-hand? |
Also, yes it's easy but if I were CME on this I would give it to @mananjadhav since he implemented the generic error page in the first place. |
yes, I already am looking at an other issue, as the first step would be to implement some basic error page system which shows different errors, or just change the error messages to not redirect user to web or something similar. |
Looking in the firebase console, we only have ios/Android errors coming through at the moment. I'm not sure if reporting Desktop/Web is possible w/ firebase, but if it is we haven't done it yet. |
@roryabraham , Users may not use the chat to explain such errors, I offer something like |
I agree with @roryabraham and I think @mananjadhav is the right fit for this issue. @trjExpensify could you hire them for this role, please? |
📣 @mananjadhav You have been assigned to this job by @trjExpensify! |
Yep, donezo! 👍 |
Great. Sounds good. See you on the PR @mananjadhav. 😄 |
@roryabraham @parasharrajat @NikkiWines Are we storing the environment-wise URL anywhere? Few options:
|
You can use |
While we're at it, can we please get review all the URL constants and settle on one that's environment-specific and call it |
Yeah, They are confusing and some of them use Cash keyword so probably better to clean this up. |
I can do that, but I'll need some help in wrt to the context of each of the URL constants. |
I think we should get rid of Instead, I suggest the following:
Optional:
|
@NikkiWines @roryabraham Is it fine if we track these URL changes as a separate issue? These have impact on unrelated changes and will require testing those instances for 5-6 different places? |
That's fine by me 👍 |
Created a follow-up: #7489 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.34-0 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 2022-02-09. 🎊 |
@trjExpensify Upwork reminder |
Settled up with you @mananjadhav. @parasharrajat sent you an offer for C+ as you hadn't applied for this one yet 👍 |
Cool, settled up with @parasharrajat now as well. Closing! 👍 |
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:
Expected Result:
The generic error page should include a link to website, just like we serve on iOS and Android:
Actual Result:
Error page on desktop does not include the text including a link to new.expensify.com (screenshot below)
Workaround:
None
Platform:
Where is this issue occurring?
Version Number: 1.1.30-0
Reproducible in staging?: Y
Reproducible in production?:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Upwork job URL: https://www.upwork.com/jobs/~01c2090be81cc5aedc
Issue reported by: @roryabraham
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1642451766078800
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: