Title: [253800] trunk/Source/WebInspectorUI
Revision
253800
Author
[email protected]
Date
2019-12-19 16:32:43 -0800 (Thu, 19 Dec 2019)

Log Message

Web Inspector: Console: the clear console button is hidden at smaller widths
https://bugs.webkit.org/show_bug.cgi?id=205438

Reviewed by Brian Burg.

Ever since r242604, we no longer "need" to show the text filter bar or message type scope
bar since new messages will show a warning banner that there's an active filter. Instead, we
should prefer showing the navigation items that control functionality that cannot be reached
anywhere else (visually), such as clearing the console or evaluating as a user gesture.

* UserInterface/Views/LogContentView.js:
(WI.LogContentView):
Make the text find banner and type scope bar both low priority, the preserve log and
evaluate as user gesture toggles normal priority, and the clear log high priority.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (253799 => 253800)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-12-20 00:28:57 UTC (rev 253799)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-12-20 00:32:43 UTC (rev 253800)
@@ -1,5 +1,22 @@
 2019-12-19  Devin Rousso  <[email protected]>
 
+        Web Inspector: Console: the clear console button is hidden at smaller widths
+        https://bugs.webkit.org/show_bug.cgi?id=205438
+
+        Reviewed by Brian Burg.
+
+        Ever since r242604, we no longer "need" to show the text filter bar or message type scope
+        bar since new messages will show a warning banner that there's an active filter. Instead, we
+        should prefer showing the navigation items that control functionality that cannot be reached
+        anywhere else (visually), such as clearing the console or evaluating as a user gesture.
+
+        * UserInterface/Views/LogContentView.js:
+        (WI.LogContentView):
+        Make the text find banner and type scope bar both low priority, the preserve log and
+        evaluate as user gesture toggles normal priority, and the clear log high priority.
+
+2019-12-19  Devin Rousso  <[email protected]>
+
         Web Inspector: Audit: exiting edit mode with the same selection as before entering edit mode doesn't reselect
         https://bugs.webkit.org/show_bug.cgi?id=205435
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js (253799 => 253800)


--- trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js	2019-12-20 00:28:57 UTC (rev 253799)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js	2019-12-20 00:32:43 UTC (rev 253800)
@@ -62,7 +62,7 @@
 
         const fixed = true;
         this._findBanner = new WI.FindBanner(this, "console-find-banner", fixed);
-        this._findBanner.visibilityPriority = WI.NavigationItem.VisibilityPriority.High;
+        this._findBanner.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low;
         this._findBanner.targetElement = this.element;
 
         this._currentSearchQuery = "";
@@ -71,7 +71,6 @@
         this._selectedSearchMatchIsValid = false;
 
         this._preserveLogNavigationItem = new WI.CheckboxNavigationItem("preserve-log", WI.UIString("Preserve Log"), !WI.settings.clearLogOnNavigate.value);
-        this._preserveLogNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low;
         this._preserveLogNavigationItem.tooltip = WI.UIString("Do not clear the console on new page loads");
         this._preserveLogNavigationItem.addEventListener(WI.CheckboxNavigationItem.Event.CheckedDidChange, () => {
             WI.settings.clearLogOnNavigate.value = !WI.settings.clearLogOnNavigate.value;
@@ -79,7 +78,6 @@
         WI.settings.clearLogOnNavigate.addEventListener(WI.Setting.Event.Changed, this._handleClearLogOnNavigateSettingChanged, this);
 
         this._emulateInUserGestureNavigationItem = new WI.CheckboxNavigationItem("emulate-in-user-gesture", WI.UIString("Emulate User Gesture"), WI.settings.emulateInUserGesture.value);
-        this._emulateInUserGestureNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low;
         this._emulateInUserGestureNavigationItem.tooltip = WI.UIString("Run console commands as if inside a user gesture");
         this._emulateInUserGestureNavigationItem.addEventListener(WI.CheckboxNavigationItem.Event.CheckedDidChange, () => {
             WI.settings.emulateInUserGesture.value = !WI.settings.emulateInUserGesture.value;
@@ -98,7 +96,7 @@
             new WI.ScopeBarItem(WI.LogContentView.Scopes.Debugs, WI.UIString("Debugs"), {className: "debugs", hidden: true}),
         ];
         this._scopeBar = new WI.ScopeBar("log-scope-bar", scopeBarItems, scopeBarItems[0]);
-        this._scopeBar.visibilityPriority = WI.NavigationItem.VisibilityPriority.High;
+        this._scopeBar.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low;
         this._scopeBar.addEventListener(WI.ScopeBar.Event.SelectionChanged, this._scopeBarSelectionDidChange, this);
 
         this._hasNonDefaultLogChannelMessage = false;
@@ -118,6 +116,7 @@
         this._garbageCollectNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._garbageCollect, this);
 
         this._clearLogNavigationItem = new WI.ButtonNavigationItem("clear-log", WI.UIString("Clear log (%s or %s)").format(WI.clearKeyboardShortcut.displayName, this._logViewController.messagesAlternateClearKeyboardShortcut.displayName), "Images/NavigationItemTrash.svg", 15, 15);
+        this._clearLogNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.High;
         this._clearLogNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._clearLog, this);
 
         this._showConsoleTabNavigationItem = new WI.ButtonNavigationItem("show-tab", WI.UIString("Show Console tab"), "Images/SplitToggleUp.svg", 16, 16);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to