Bug 235541 - Web Inspector: Console: move Preserve Log checkbox navigation item to a gear-with-contextmenu to save space (and match the Network Tab)
Summary: Web Inspector: Console: move Preserve Log checkbox navigation item to a gear-...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-24 14:19 PST by Devin Rousso
Modified: 2022-01-27 16:28 PST (History)
5 users (show)

See Also:


Attachments
[fast-cq] Patch (16.11 KB, patch)
2022-01-25 12:42 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] after Patch is applied (86.08 KB, image/png)
2022-01-25 12:43 PST, Devin Rousso
no flags Details
[fast-cq] Patch (15.13 KB, patch)
2022-01-27 13:38 PST, Devin Rousso
pangle: review+
Details | Formatted Diff | Diff
[fast-cq] Patch (15.13 KB, patch)
2022-01-27 14:16 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2022-01-24 14:19:45 PST
see bug 235538
Comment 1 Devin Rousso 2022-01-25 12:42:21 PST
Created attachment 449955 [details]
[fast-cq] Patch
Comment 2 Devin Rousso 2022-01-25 12:43:15 PST
Created attachment 449956 [details]
[Image] after Patch is applied
Comment 3 Patrick Angle 2022-01-25 13:39:48 PST
Comment on attachment 449955 [details]
[fast-cq] Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=449955&action=review

> Source/WebInspectorUI/ChangeLog:33
> +        Somehow this got overlooked when the constructor of `WI.ContentBrowser` was changed :(

Oops. Pretty sure that is my fault 🤦🏻‍♂️

> Source/WebInspectorUI/UserInterface/Views/LogContentView.js:103
> +        this._scopeBar = new WI.ScopeBar("log-scope-bar", scopeBarItems, scopeBarItems[0], shouldGroupNonExclusiveItems);

I'm not convinced turning the scope filter items into a dropdown is a good choice here. It is easily possible for multiple items to become selected currently. In fact, if I right click and inspect this page and go to the console tab, I see that by default both "Evaluations" and "Errors" are selected by default. At least for me, seeing "Errors" and "Warnings" at the same time is also common use case.
Comment 4 Devin Rousso 2022-01-26 16:43:20 PST
Comment on attachment 449955 [details]
[fast-cq] Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=449955&action=review

>> Source/WebInspectorUI/UserInterface/Views/LogContentView.js:103
>> +        this._scopeBar = new WI.ScopeBar("log-scope-bar", scopeBarItems, scopeBarItems[0], shouldGroupNonExclusiveItems);
> 
> I'm not convinced turning the scope filter items into a dropdown is a good choice here. It is easily possible for multiple items to become selected currently. In fact, if I right click and inspect this page and go to the console tab, I see that by default both "Evaluations" and "Errors" are selected by default. At least for me, seeing "Errors" and "Warnings" at the same time is also common use case.

Oh good point.  I totally forgot about this feature 😅

OK I'll pull this part out, but leave the rest of the changes (e.g. move to the left, add `Filter.svg`, etc.).

I may also investigate making `WI.MultipleScopeBarItem` actually support multiple items being selected at once (tho that might result in the displayed text just being something like "(multiple)").
Comment 5 Devin Rousso 2022-01-27 13:38:31 PST
Created attachment 450174 [details]
[fast-cq] Patch
Comment 6 Patrick Angle 2022-01-27 13:50:21 PST
Comment on attachment 450174 [details]
[fast-cq] Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450174&action=review

r=me

> Source/WebInspectorUI/ChangeLog:8
> +        Also collapse the type (and source) scope bar into a single button for more space, and align

Nit: Just the source scope bar now.
Comment 7 Devin Rousso 2022-01-27 14:16:41 PST
Created attachment 450176 [details]
[fast-cq] Patch
Comment 8 EWS 2022-01-27 14:19:40 PST
Committed r288702 (246500@main): <https://commits.webkit.org/246500@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 450176 [details].
Comment 9 Radar WebKit Bug Importer 2022-01-27 16:28:50 PST
<rdar://problem/88159552>