Bug 153672

Summary: Web Inspector: Timelines UI redesign: Provide a way to configure which instruments to use
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Matt Baker <mattbaker>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 155348    
Bug Blocks:    
Attachments:
Description Flags
[Patch] Proposed Fix
none
[Patch] Proposed Fix none

Joseph Pecoraro
Reported 2016-01-29 14:18:34 PST
* SUMMARY Timelines UI redesign: Provide a way to configure which instruments to use.
Attachments
[Patch] Proposed Fix (47.15 KB, patch)
2016-03-20 21:31 PDT, Matt Baker
no flags
[Patch] Proposed Fix (47.54 KB, patch)
2016-03-21 10:59 PDT, Matt Baker
no flags
Radar WebKit Bug Importer
Comment 1 2016-01-29 14:18:53 PST
Timothy Hatcher
Comment 2 2016-03-10 16:32:55 PST
*** Bug 155335 has been marked as a duplicate of this bug. ***
Matt Baker
Comment 3 2016-03-20 21:31:03 PDT
Created attachment 274573 [details] [Patch] Proposed Fix
Timothy Hatcher
Comment 4 2016-03-20 22:00:22 PDT
Comment on attachment 274573 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=274573&action=review > Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:39 > + this._enabledInstrumentTypesSetting = new WebInspector.Setting("enabled-instrument-types", WebInspector.TimelineManager.defaultInstrumentTypes()); This default setting, or any picked instrument, could become stale if an instrument is no longer supported or supported in web but not JS contexts. We likely need to cross check the list later when the setting is read. (You might do this already.) > Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:56 > + static defaultInstrumentTypes() Maybe rename to defailtTimelineTypes. See comment below. > Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:66 > + WebInspector.TimelineRecord.Type.Network, We might want separate identifiers here, since one instrument could support multiple timelines. It also makes the getter confusing, since it is default timeline types, not instrument types. I know right now it is 1-1. > Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:77 > + static instrumentTypes() Rename to availableTimelinesTypes? > Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:135 > + return this._enabledInstrumentTypesSetting.value; This is where you might need to cross check the setting with the current supported types, and remove types that are not support now, ideally without changing the setting. > Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:60 > + this._editInstrumentsButton = new WebInspector.ActivateButtonNavigationItem("toggle-edit-instruments", "Edit Configuration", "Save Configuration"); Tooltips are not title case.
Timothy Hatcher
Comment 5 2016-03-20 22:00:32 PDT
Comment on attachment 274573 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=274573&action=review >> Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:39 >> + this._enabledInstrumentTypesSetting = new WebInspector.Setting("enabled-instrument-types", WebInspector.TimelineManager.defaultInstrumentTypes()); > > This default setting, or any picked instrument, could become stale if an instrument is no longer supported or supported in web but not JS contexts. We likely need to cross check the list later when the setting is read. (You might do this already.) This default setting, or any picked instrument, could become stale if an instrument is no longer supported or supported in web but not JS contexts. We likely need to cross check the list later when the setting is read. (You might do this already.) >> Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:56 >> + static defaultInstrumentTypes() > > Maybe rename to defailtTimelineTypes. See comment below. Maybe rename to defailtTimelineTypes. See comment below. >> Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:66 >> + WebInspector.TimelineRecord.Type.Network, > > We might want separate identifiers here, since one instrument could support multiple timelines. It also makes the getter confusing, since it is default timeline types, not instrument types. I know right now it is 1-1. We might want separate identifiers here, since one instrument could support multiple timelines. It also makes the getter confusing, since it is default timeline types, not instrument types. I know right now it is 1-1. >> Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:77 >> + static instrumentTypes() > > Rename to availableTimelinesTypes? Rename to availableTimelinesTypes? >> Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:135 >> + return this._enabledInstrumentTypesSetting.value; > > This is where you might need to cross check the setting with the current supported types, and remove types that are not support now, ideally without changing the setting. This is where you might need to cross check the setting with the current supported types, and remove types that are not support now, ideally without changing the setting. >> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:60 >> + this._editInstrumentsButton = new WebInspector.ActivateButtonNavigationItem("toggle-edit-instruments", "Edit Configuration", "Save Configuration"); > > Tooltips are not title case. Tooltips are not title case.
Matt Baker
Comment 6 2016-03-21 10:59:34 PDT
Created attachment 274603 [details] [Patch] Proposed Fix
WebKit Commit Bot
Comment 7 2016-03-22 10:59:54 PDT
Comment on attachment 274603 [details] [Patch] Proposed Fix Clearing flags on attachment: 274603 Committed r198537: <http://trac.webkit.org/changeset/198537>
WebKit Commit Bot
Comment 8 2016-03-22 11:00:00 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.