Skip to content

Move more info from the tap table into the expanded row#1641

Merged
rmars merged 7 commits intomasterfrom
rmars/make-tap-presentable
Sep 14, 2018
Merged

Move more info from the tap table into the expanded row#1641
rmars merged 7 commits intomasterfrom
rmars/make-tap-presentable

Conversation

@rmars
Copy link

@rmars rmars commented Sep 13, 2018

Try to make the tap table easier to parse by moving some info into the expanded row.
You can also now click anywhere on the row to expand.

The mocks in #1629 have Authority and Path buried, but I figured they might be useful to see in the top level, so I added them there. I also added http and grpc status so the user can still get a sense of responseInit and responseEnd. Comments on column choice welcome.

screen shot 2018-09-13 at 3 50 52 pm
screen shot 2018-09-13 at 3 50 44 pm

Fixes #1629

@rmars rmars added the area/web label Sep 13, 2018
@rmars rmars self-assigned this Sep 13, 2018

& hr {
color: red;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Extra space

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oooops. also that color: red should not be in here 😂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! 😂 I didn't even realize that.

Copy link
Contributor

@dadjeibaah dadjeibaah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for making the change, had one nit but should be good to go after that 📦

Copy link
Member

@siggy siggy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! a couple tioli ui comments...

padding-right: 50px;

& .tap-info-section {
padding: 24px 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the expanded section feels a bit spaced out, what do you think about something like:
padding: 2px 0;

screen shot 2018-09-13 at 4 35 18 pm

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's true! I'll make it more compact. how about 4px 0 :P?


& hr {
color: red;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the hr elements don't quite extend to the width of the text. what do you think about something like:
padding: 0;

screen shot 2018-09-13 at 4 44 18 pm

i noticed the mocks have the hr's going all the way across, that looks nice too.

Copy link
Author

@rmars rmars Sep 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeahhh the reason I have that padding there is because of the + / - that we're using from the ant expandable table row, which causes this expanded section to be 50px from the left.
We could accordion all these rows, but for now I've just made the padding symmetric. We're gonna move off the ant tables soon so it won't matter then either!

@dadjeibaah
Copy link
Contributor

Actually, have one more comment, It seems like the authority text wraps when the text is too long. We probably could move the "Path" section over 1 or two grid lengths Something like:

<React.Fragment>
    <h3>Request Init</h3>
    <Row gutter={8} className="expand-section-header">
      <Col span={8}>Authority</Col>
      <Col span={8}>Path</Col>
      <Col span={2}>Scheme</Col>
      <Col span={2}>Method</Col>
    </Row>

@adleong
Copy link
Member

adleong commented Sep 14, 2018

What do you think of moving the TLS info into the expanded row as well?

Copy link
Contributor

@klingerf klingerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a HUGE improvement. I just had one comment about JS undefined errors, but otherwise looks good to me.

</Row>
<hr />
<Row gutter={8} className="tap-info-section">
{responseInitSection(d)}
Copy link
Contributor

@klingerf klingerf Sep 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this was a problem in the existing implementation or not, but I tried to expand a row for a request that had not finished yet, and I encountered the following JS error:

image

I think the right fix here is to only add the response init and response end rows if the responseInit and responseEnd objects are present.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oooh, good catch!

Copy link
Contributor

@klingerf klingerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️ This looks great! Thanks for adding the latency column back.

@rmars rmars merged commit 19d24eb into master Sep 14, 2018
@rmars rmars deleted the rmars/make-tap-presentable branch September 14, 2018 22:51
zachalbert added a commit to zachalbert/linkerd2 that referenced this pull request Sep 15, 2018
* master:
  Move more info from the tap table into the expanded row (linkerd#1641)
  `linkerd check` sends params on version check (linkerd#1642)
  Bikeshed the tap and top icons (linkerd#1637)
  Add link to tap each row in top table (linkerd#1643)
  Bump default check retry time to 5 minutes (linkerd#1645)
  Make wait=true a default option for check and dashboard (linkerd#1640)
  Add version check to Grafana dashboard (linkerd#1638)
  Add data plane check for metrics Prometheus (linkerd#1635)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants