Bug 190388

Summary: Web Inspector: indent all network entries when "Group by Node" is checked
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, inspector-bugzilla-changes, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 189606    
Bug Blocks:    
Attachments:
Description Flags
[Image] Screenshot of Issue
none
Patch
none
[Image] After Patch is applied
none
Archive of layout-test-results from ews202 for win-future
none
[Image] Screenshot of Resources
none
Patch none

Devin Rousso
Reported 2018-10-08 19:14:05 PDT
It looks weird to have only some of the network entry rows be indented. It should be more uniform.
Attachments
[Image] Screenshot of Issue (1.26 MB, image/png)
2018-10-08 19:14 PDT, Devin Rousso
no flags
Patch (5.65 KB, patch)
2018-10-08 20:35 PDT, Devin Rousso
no flags
[Image] After Patch is applied (565.05 KB, image/png)
2018-10-08 20:35 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews202 for win-future (12.72 MB, application/zip)
2018-10-09 04:41 PDT, EWS Watchlist
no flags
[Image] Screenshot of Resources (65.85 KB, image/png)
2018-10-09 16:12 PDT, Devin Rousso
no flags
Patch (4.41 KB, patch)
2018-10-09 22:54 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2018-10-08 19:14:56 PDT
Created attachment 351846 [details] [Image] Screenshot of Issue
Devin Rousso
Comment 2 2018-10-08 20:35:27 PDT
Devin Rousso
Comment 3 2018-10-08 20:35:44 PDT
Created attachment 351851 [details] [Image] After Patch is applied
Joseph Pecoraro
Comment 4 2018-10-09 00:43:32 PDT
Comment on attachment 351850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351850&action=review > Source/WebInspectorUI/ChangeLog:13 > + Hide the "Group by Node" checkbox until there is a node that can be grouped. Hiding a setting some of the time seems like a bad idea. This is a persistent setting, right? > Source/WebInspectorUI/ChangeLog:22 > + Apply a padding to all nodes when the `WI.Table` is grouped. I do like the idea of only adding padding when grouped. I think the screenshot makes the grouping look much clearer. I wish there was something we could do about the wasted space where most of the disclosure triangles would be. What if we just don't have a disclosure triangle (and don't allow collapsing). Does that look or feel weird?
EWS Watchlist
Comment 5 2018-10-09 04:41:13 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2018-10-09 04:41:24 PDT Comment hidden (obsolete)
Devin Rousso
Comment 7 2018-10-09 09:51:08 PDT
Comment on attachment 351850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351850&action=review >> Source/WebInspectorUI/ChangeLog:13 >> + Hide the "Group by Node" checkbox until there is a node that can be grouped. > > Hiding a setting some of the time seems like a bad idea. This is a persistent setting, right? It isn't visible until we are able to group by node for the first time. From that point on (even if you navigate the page), it'll stay visible. My thinking on this is that it would be weird to show a checkbox that doesn't appear to have any effect (e.g. for a page with no media elements), but I suppose we do this elsewhere too (still showing the pretty print icon for things that are already nicely formatted). I can remove. >> Source/WebInspectorUI/ChangeLog:22 >> + Apply a padding to all nodes when the `WI.Table` is grouped. > > I do like the idea of only adding padding when grouped. I think the screenshot makes the grouping look much clearer. I wish there was something we could do about the wasted space where most of the disclosure triangles would be. What if we just don't have a disclosure triangle (and don't allow collapsing). Does that look or feel weird? I feel like the disclosure triangle is the "indicator" of the fact that this item is a parent. It is aggravating to "waste" all this space, especially since most network entries won't be grouped, but we do this all the time (e.g. timelines). I will, however, do a mockup and see how it looks without the triangle.
Timothy Hatcher
Comment 8 2018-10-09 14:04:44 PDT
This looks better! I do think the indentation of the children needs to be more — the icon should align with the text. Right now it seems like a half indent. See other places in the Inspector to see what I mean.
Devin Rousso
Comment 9 2018-10-09 16:12:29 PDT
Created attachment 351922 [details] [Image] Screenshot of Resources (In reply to Timothy Hatcher from comment #8) > This looks better! I do think the indentation of the children needs to be > more — the icon should align with the text. Right now it seems like a half > indent. > > See other places in the Inspector to see what I mean. Per our conversation in person, I tried to match this as close as I could with our other `WI.TreeOutline`s.
Devin Rousso
Comment 10 2018-10-09 22:54:38 PDT
WebKit Commit Bot
Comment 11 2018-10-10 11:01:34 PDT
Comment on attachment 351947 [details] Patch Clearing flags on attachment: 351947 Committed r237006: <https://trac.webkit.org/changeset/237006>
WebKit Commit Bot
Comment 12 2018-10-10 11:01:35 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13 2018-10-10 11:02:47 PDT
Note You need to log in before you can comment on or make changes to this bug.