WebSocket frame list should use sent/received icon
Categories
(DevTools :: Netmonitor, enhancement, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: Honza, Assigned: fvsch)
References
(Blocks 1 open bug)
Details
Attachments
(12 files)
15.12 KB,
image/png
|
Details | |
30.33 KB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
236.24 KB,
image/png
|
Details | |
236.24 KB,
image/png
|
Details | |
148.26 KB,
image/png
|
Details | |
68.81 KB,
image/png
|
Details | |
90.63 KB,
image/png
|
Details | |
88.06 KB,
image/png
|
Details | |
42.65 KB,
image/png
|
Details | |
49.13 KB,
image/png
|
Details | |
39.76 KB,
image/png
|
Details |
WebSocket frame list is currently using a Type
column with Sent
and Received
values to indicate whether given frame has been sent or received.
We should use an icon (perhaps as part of the Payload column) and remove the Type column entirely. This will also help to save valuable horizontal space in the side panel.
Honza
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
@Florens, do we have some arrow icons we could use here?
Honza
Assignee | ||
Comment 2•6 years ago
|
||
I don't think we have them already, but it should be easy to make one.
Can you show me what the current UI looks like?
I can enable devtools.netmonitor.features.webSockets
but I'm not sure on which page I could test websockets.
Reporter | ||
Comment 3•6 years ago
|
||
This is how it looks now.
You need patch from bug 1559398 to try it on your machine (or wait till it's fixed, it should land soon)
I was thinking about:
- get rid of the Type column (to safe space)
- put the icon into the Payload column (at the left side)
Honza
Assignee | ||
Comment 4•6 years ago
|
||
Nicolas was suggesting putting the Time column first, maybe we could put the type icon there?
So it would read as "Sent at <time>" and "Received at <time>".
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
So instead of putting an icon in the Time column, or in the Data column like Chrome does, I figured it would be better to keep the "Type" column but make it less text-heavy and more visual.
I have a patch up that:
- Visually hides the header's label (we keep the label around for accessibility)
- Replaces the "received" and "sent" labels in each row with an icon (with the original text as alt text)
Assignee | ||
Comment 7•6 years ago
|
||
Here's how it looks.
Not sure about the colors. Chrome is using green for sent and orange for received, is that a convention that exists? We try to stay away from orange (it's reserved for brand stuff).
Assignee | ||
Comment 8•6 years ago
|
||
Light theme.
Assignee | ||
Comment 9•6 years ago
|
||
Some color tests.
Assignee | ||
Comment 10•6 years ago
|
||
Reordering columns as per :nchevobbe's suggestions, and setting some default widths for columns:
- Type (24px)
- Time (15%)
- Size (15%)
- Payload (auto width, ~27%)
- OpCode (10%)
- MaskBit (10%)
- FinBit (10%)
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Hi :fvsch ! The patch looks good and thanks a lot for working on this, appreciate it :)
I can't post review comments in the Phabricator patch as I don't have enough permissions for that so I'll be posting them here. Please refer to the review-comment-*.png
files.
For review-comment-4.png
, the link is here.
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Assignee | ||
Comment 16•6 years ago
|
||
:tanhengyeow, I think you can probably submit your comments on Phabricator reviews, but the Phabricator UI for that is a unclear. You have to go to the bottom of the page and submit the comment form even with an empty comment, in order to submit your comments on specific files and lines.
Regarding your comments:
-
and 3. I'm removing the
devtools-toolbar
class because table headers are not toolbars and we're working hard to fight styles intended for actual toolbars. Instead what we want are "toolbar-like" background and text colors, and thankfully for that we have design primitives defined as CSS variables:--theme-toolbar-color
and--theme-toolbar-background
. (I've also worked on some style changes for toolbars across panels in a different bug; that work is stalled right now, but having those classes in the Network tables was a problem.) -
Indeed I'm not using the
button-text-hidden
class, I ended up using a different selector so this was dead code. Good catch! -
Thanks for the heads up re. localization.
Comment 17•6 years ago
|
||
You have to go to the bottom of the page and submit the comment form even with an empty comment, in order to submit your comments on specific files and lines.
I tried that before but I was shown this error message. I'm guessing commit access level 3 is required (I'm at commit access level 1 now).
Updated•6 years ago
|
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 19•6 years ago
|
||
bugherder |
Description
•