Bug 153672 - Web Inspector: Timelines UI redesign: Provide a way to configure which instruments to use
Summary: Web Inspector: Timelines UI redesign: Provide a way to configure which instru...
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: Matt Baker
URL:
Keywords: InRadar
: 155335 (view as bug list)
Depends on: 155348
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-29 14:18 PST by Joseph Pecoraro
Modified: 2016-03-22 11:00 PDT (History)
8 users (show)

See Also:


Attachments
[Patch] Proposed Fix (47.15 KB, patch)
2016-03-20 21:31 PDT, Matt Baker
no flags Details | Formatted Diff | Diff
[Patch] Proposed Fix (47.54 KB, patch)
2016-03-21 10:59 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-01-29 14:18:34 PST
* SUMMARY
Timelines UI redesign: Provide a way to configure which instruments to use.
Comment 1 Radar WebKit Bug Importer 2016-01-29 14:18:53 PST
<rdar://problem/24417575>
Comment 2 Timothy Hatcher 2016-03-10 16:32:55 PST
*** Bug 155335 has been marked as a duplicate of this bug. ***
Comment 3 Matt Baker 2016-03-20 21:31:03 PDT
Created attachment 274573 [details]
[Patch] Proposed Fix
Comment 4 Timothy Hatcher 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.
Comment 5 Timothy Hatcher 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.
Comment 6 Matt Baker 2016-03-21 10:59:34 PDT
Created attachment 274603 [details]
[Patch] Proposed Fix
Comment 7 WebKit Commit Bot 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>
Comment 8 WebKit Commit Bot 2016-03-22 11:00:00 PDT
All reviewed patches have been landed.  Closing bug.