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)
DevTools
Netmonitor
Tracking
(firefox55 verified)
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
Reporter | ||
Comment 1•8 years ago
|
||
This issue needs some understanding of netmonitor's structure, so its more suitable as the good-second-bug.
Updated•8 years ago
|
Flags: qe-verify?
Priority: P3 → P2
Updated•8 years ago
|
Flags: qe-verify? → qe-verify+
QA Contact: ciprian.georgiu
Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
mozreview-review |
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.
Updated•8 years ago
|
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Priority: P2 → P3
Whiteboard: [netmonitor] → [netmonitor-reserve]
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 8•8 years ago
|
||
@ntim: thanks for working on this!
Can you please rebase?
The dir structure changed a bit in bug 1350215
Honza
Flags: needinfo?(ntim.bugs)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(ntim.bugs)
Comment hidden (mozreview-request) |
Comment 12•8 years ago
|
||
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
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 15•8 years ago
|
||
The issue from comment #12 is fixed now, thanks!
Honza
Comment 16•8 years ago
|
||
mozreview-review |
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 17•8 years ago
|
||
mozreview-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+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 20•8 years ago
|
||
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2c08f896d669
Add stack trace panel. r=Honza
https://hg.mozilla.org/integration/autoland/rev/1379bfa0f921
Clean up network monitor CSS. r=Honza
Comment 21•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2c08f896d669
https://hg.mozilla.org/mozilla-central/rev/1379bfa0f921
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•8 years ago
|
Iteration: --- → 55.2 - Apr 3
Priority: P3 → P1
Assignee | ||
Updated•8 years ago
|
Keywords: dev-doc-needed
Comment 22•8 years ago
|
||
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.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•