-
Notifications
You must be signed in to change notification settings - Fork 403
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
Remove "Back to home" link on import error when using /from-post-message #5222
Comments
I never really noticed that link, but I think it's rarely useful. I think the most common use cases are to load a profile directly from the browser, or to load a profile from a profile link that has been shared. In both of these cases, the user has not seen the home page before encountering the error message. A link to some documentation helping to understand the error message might make more sense. |
To fix the initial description, it would be straightforward to update the code in profiler/src/components/app/AppViewRouter.js Line 121 in 469bf5c
Where the boolean could be something such as dataSource === 'from-file' for example.
You could also be interested in changing it here: profiler/src/components/app/ProfileLoaderAnimation.js Lines 63 to 65 in 469bf5c
I believe this check was introduced to remove the back home link when using from-url from Safari, but I think it could be better to use the same For the link in the list of uploaded profiles, I'm not fully sure, ideally it could be a |
When import fails, we show the following dialog.
When using
/from-post-message
, we know the user did not come from Firefox Profiler home. Can we remove the "Back to home" link in this case? If not, can we have a query param to disable navigating to home somehow?This is important, as in embedded environment (I'm thinking VS Code), going to home on failure to open a profile is not really useful or expected.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: