Skip to content
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

Use appropriate time unit in markers chart #2628

Merged
merged 3 commits into from Jul 8, 2020
Merged

Use appropriate time unit in markers chart #2628

merged 3 commits into from Jul 8, 2020

Conversation

@ajhpark
Copy link
Contributor

@ajhpark ajhpark commented Jul 5, 2020

Use new formatTimestamp function and update snapshots.
Fixes #2619

@codecov
Copy link

@codecov codecov bot commented Jul 5, 2020

Codecov Report

Merging #2628 into main will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2628      +/-   ##
==========================================
+ Coverage   86.41%   86.44%   +0.02%     
==========================================
  Files         218      218              
  Lines       17377    17377              
  Branches     4512     4512              
==========================================
+ Hits        15016    15021       +5     
+ Misses       2162     2158       -4     
+ Partials      199      198       -1     
Impacted Files Coverage Δ
src/components/app/MenuButtons/MetaInfo.js 85.71% <100.00%> (ø)
src/components/tooltip/Marker.js 87.28% <100.00%> (ø)
src/profile-logic/profile-metainfo.js 88.57% <100.00%> (ø)
src/utils/format-numbers.js 81.37% <0.00%> (+4.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a159b8...7202eda. Read the comment docs.

@@ -811,7 +812,7 @@ class MarkerTooltipContents extends React.PureComponent<Props> {
{/* we don't know the duration if the marker is incomplete */}
{!marker.incomplete
? marker.dur
? formatMilliseconds(marker.dur)
? formatTimestamp(marker.dur)

This comment has been minimized.

@julienw

julienw Jul 6, 2020
Contributor

Thanks!
I think we should make it slightly less precise by adding some parameters to the call.
What about using 3, 1? (means 3 significant digits, 1 fractional digit max)

This comment has been minimized.

@ajhpark

ajhpark Jul 6, 2020
Author Contributor

Done

@julienw
Copy link
Contributor

@julienw julienw commented Jul 7, 2020

This looks better to me. I'd like a double check from @padenot who filed the issue at first before landing, but this should be good.
Thanks so much!

@julienw
julienw approved these changes Jul 8, 2020
@julienw julienw merged commit def6d62 into firefox-devtools:main Jul 8, 2020
8 of 9 checks passed
8 of 9 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
ci/circleci: alex Your tests passed on CircleCI!
Details
ci/circleci: build-prod Your tests passed on CircleCI!
Details
ci/circleci: flow Your tests passed on CircleCI!
Details
ci/circleci: licence-check Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: tests Your tests passed on CircleCI!
Details
ci/circleci: yarn_lock Your tests passed on CircleCI!
Details
deploy/netlify Deploy preview ready!
Details
@ajhpark ajhpark deleted the ajhpark:markers_time_unit branch Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants