-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show seconds in trace start time on the trace page #430
Show seconds in trace start time on the trace page #430
Conversation
Signed-off-by: Joe Farro <[email protected]>
renderer: (trace: Trace) => formatDatetime(trace.startTime), | ||
renderer: (trace: Trace) => { | ||
const dateStr = formatDatetime(trace.startTime); | ||
const match = dateStr.match(/^(.+)(:\d\d\.\d+)$/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would only lower the contrast for sub-seconds, not for seconds
<span className="TracePageHeader--overviewItem--valueDetail">{match[2]}</span> | ||
</span> | ||
) : ( | ||
dateStr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also use <span>
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's better to leave it off if it's not serving a purpose.
Codecov Report
@@ Coverage Diff @@
## master #430 +/- ##
==========================================
+ Coverage 91.67% 91.67% +<.01%
==========================================
Files 176 176
Lines 4010 4012 +2
Branches 928 957 +29
==========================================
+ Hits 3676 3678 +2
+ Misses 296 292 -4
- Partials 38 42 +4
Continue to review full report at Codecov.
|
Show seconds in trace start time on the trace page Signed-off-by: vvvprabhakar <[email protected]>
Which problem is this PR solving?
Trace start time, on the trace page, is not granularity enough.
Short description of the changes
Show the seconds and sub-seconds of the trace start time in the trace page header.
The seconds and sub-seconds are presented with reduced contrast:
The seconds and sub-seconds are shown at full contrast when the datetime value is hovered: