Closed Bug 1350234 Opened 8 years ago Closed 8 years ago

Move stack trace tooltip to network details panel (sidebar panel)

Categories

(DevTools :: Netmonitor, enhancement, P1)

enhancement

Tracking

(firefox55 verified)

VERIFIED FIXED
Firefox 55
Iteration:
55.2 - Apr 3
Tracking Status
firefox55 --- verified

People

(Reporter: gasolin, Assigned: ntim, Mentored)

References

Details

(Keywords: dev-doc-needed, good-first-bug, Whiteboard: [netmonitor-reserve])

Attachments

(3 files)

stack trace are now work as tooltips, we'd like to move them as a new sidebar panel
This issue needs some understanding of netmonitor's structure, so its more suitable as the good-second-bug.
Mentor: gasolin
Keywords: good-first-bug
Priority: -- → P3
Whiteboard: [netmonitor]
Flags: qe-verify?
Priority: P3 → P2
Flags: qe-verify? → qe-verify+
QA Contact: ciprian.georgiu
Comment on attachment 8852482 [details] Bug 1350234 - Add stack trace panel. https://reviewboard.mozilla.org/r/124692/#review127212 Cool! we get rid of stack trace tooltip! I like that patch. There are some nits please address it before landing the patch. Thanks! ::: devtools/client/netmonitor/shared/components/stack-trace-panel.js:1 (Diff revision 1) > +const { > + createClass, > + createFactory, > + DOM, > + PropTypes, > +} = require("devtools/client/shared/vendor/react"); > +const { div, span } = DOM; > +const StackTrace = createFactory(require("devtools/client/shared/components/stack-trace")); nit: we have a loose convention about module import order here shared libaries -> project utils -> DOM alias -> commponents ```js const { createClass, createFactory, DOM, PropTypes, } = require("devtools/client/shared/vendor/react"); const { div, span } = DOM; // Components const StackTrace = createFactory(require("devtools/client/shared/components/stack-trace")); ``` ::: devtools/client/netmonitor/shared/components/stack-trace-panel.js:10 (Diff revision 1) > + PropTypes, > +} = require("devtools/client/shared/vendor/react"); > +const { div, span } = DOM; > +const StackTrace = createFactory(require("devtools/client/shared/components/stack-trace")); > + > +const StackTracePanel = createClass({ nit: this component looks like a simple presentational logic. We can get rid of createClass but use funtional component instead. See https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/components/network-monitor.js ::: devtools/client/netmonitor/shared/components/tabbox-panel.js:25 (Diff revision 1) > +const StackTracePanel = createFactory(require("./stack-trace-panel")); > const SecurityPanel = createFactory(require("./security-panel")); nit: Alphabetical order. it should be SecurityPanel = ... StackTracePanel = ... ::: devtools/client/netmonitor/shared/components/tabbox-panel.js:34 (Diff revision 1) > const HEADERS_TITLE = L10N.getStr("netmonitor.tab.headers"); > const COOKIES_TITLE = L10N.getStr("netmonitor.tab.cookies"); > const PARAMS_TITLE = L10N.getStr("netmonitor.tab.params"); > const RESPONSE_TITLE = L10N.getStr("netmonitor.tab.response"); > const TIMINGS_TITLE = L10N.getStr("netmonitor.tab.timings"); > +const STACK_TRACE_TITLE = L10N.getStr("netmonitor.tab.stack-trace"); like wise.
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Priority: P2 → P3
Whiteboard: [netmonitor] → [netmonitor-reserve]
@ntim: thanks for working on this! Can you please rebase? The dir structure changed a bit in bug 1350215 Honza
Flags: needinfo?(ntim.bugs)
Flags: needinfo?(ntim.bugs)
Attached image stack-trace.png
Great progress here! One comment: * Frame URL in the Stack panel gets trimmed even if there is enough space in the side bar. See the attached screenshot. Honza
The issue from comment #12 is fixed now, thanks! Honza
Comment on attachment 8852482 [details] Bug 1350234 - Add stack trace panel. https://reviewboard.mozilla.org/r/124692/#review128558 ::: devtools/client/locales/en-US/netmonitor.properties:458 (Diff revision 5) > # in the network details pane identifying the timings tab. > netmonitor.tab.timings=Timings > > +# LOCALIZATION NOTE (netmonitor.tab.stack-trace): This is the label displayed > +# in the network details pane identifying the stack-trace tab. > +netmonitor.tab.stack-trace=Stack Trace Please use camelCase so, it's consistent with the existing keys. netmonitor.tab.stack-trace => netmonitor.tab.stackTrace ::: devtools/client/netmonitor/src/components/tabbox-panel.js:35 (Diff revision 5) > const PARAMS_TITLE = L10N.getStr("netmonitor.tab.params"); > +const PREVIEW_TITLE = L10N.getStr("netmonitor.tab.preview"); > const RESPONSE_TITLE = L10N.getStr("netmonitor.tab.response"); > -const TIMINGS_TITLE = L10N.getStr("netmonitor.tab.timings"); > const SECURITY_TITLE = L10N.getStr("netmonitor.tab.security"); > -const PREVIEW_TITLE = L10N.getStr("netmonitor.tab.preview"); > +const STACK_TRACE_TITLE = L10N.getStr("netmonitor.tab.stack-trace"); Should be: netmonitor.tab.stackTrace
Attachment #8852482 - Flags: review?(odvarko) → review+
Comment on attachment 8852656 [details] Bug 1350234 - Clean up network monitor CSS. https://reviewboard.mozilla.org/r/124838/#review128564 ::: devtools/client/netmonitor/src/assets/styles/netmonitor.css:723 (Diff revision 5) > + width: 100%; > + overflow: auto; > + flex: 1; > +} > + > +.tree-container .treeTable, nit: remove whitespace
Attachment #8852656 - Flags: review?(odvarko) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Iteration: --- → 55.2 - Apr 3
Priority: P3 → P1
Keywords: dev-doc-needed
Blocks: 1354021
I verified this issue using latest Nightly 55.0a1 (2017-04-10) as fixed on Windows 10 x64, Ubuntu 16.04 x64 LTS and Mac OS X 10.11.6. Stack Trace tab is properly displayed in the Details view panel.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Blocks: 1294755
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: