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
Don’t merge request number and url. #121
Conversation
Put request number in a separate <text> element, so request url is shown unchanged (in hover and title). Right aligns the request number, and aligns the start position of all urls. Additionally reorders some code in row svg creation.
@micmro and @soulgalore - I need some input on this. I'm separating request number into it's own element, which I think is good. However some of the other changes might be controversial, and should maybe to broken out. The layout still doesn't look good for HARs with hundreds of entries, especially not if at least one entry has multiple warning triangles (e.g. www.dn.se). I'd propose some additional changes enabled by this separation:
|
This looks great!
Maybe the first one should have a ? Or we move it in, it will probably look better. |
@@ -16,6 +16,21 @@ import * as generalComponents from "./sub-components/svg-general-components"; | |||
import * as marks from "./sub-components/svg-marks"; | |||
|
|||
/** | |||
* Get a string that's as wide, or wider than any number from 0-n. | |||
* @param n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you just add a type for this?
@param {number} n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'll fix that. Will check for a lint rule as well.
My idea for the main icon is to view it as "response status" that covers mime type (for 2xx replies), redirect (for 3xx) and errors (for 4/5xx). Anything else (e.g. missing gzip) is a warning that's listed in the additional icon column. |
Put request number in a separate element, so request url is shown unchanged (in hover and title). Right aligns the request number, and aligns the start position of all urls. Additionally reorders some code in row svg creation.