8000 Follow up PCF-561 Add copy run values to extended row by esanuandra · Pull Request #859 · mozilla/perfcompare · GitHub
[go: up one dir, main page]

Skip to content

Conversation

esanuandra
Copy link
Contributor
@esanuandra esanuandra commented Feb 12, 2025

This is a follow up PR for #844
It adds the Copy results button inside the extended row.

deploy test link

Screenshot 2025-02-12 at 17 07 19

Copy link
netlify bot commented Feb 12, 2025

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit 5672aa1
🔍 Latest deploy log https://app.netlify.com/sites/mozilla-perfcompare/deploys/67b757d2c942530008cd44d5
😎 Deploy Preview https://deploy-preview-859--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.56%. Comparing base (3b5d2ab) to head (5672aa1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #859      +/-   ##
==========================================
+ Coverage   93.47%   93.56%   +0.08%     
==========================================
  Files          94       94              
  Lines        2637     2641       +4     
  Branches      524      526       +2     
==========================================
+ Hits         2465     2471       +6     
+ Misses        153      152       -1     
+ Partials       19       18       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@esanuandra esanuandra changed the title Follow up Add copy run values to extended row Follow up PCF-561 Add copy run values to extended row Feb 12, 2025
@esanuandra esanuandra requested a review from julienw February 12, 2025 15:06
Copy link
Contributor
@julienw julienw left a comment

Choose a reason for hiding this comment

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

looks good to me, thanks!

expect(showLessButton).toBeInTheDocument();
});

it('should copy run values when "Copy values" is clicked', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for the test!

};

const onCopyValues = () => {
void navigator.clipboard.writeText(values.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not fully sure of what we should copy. I was initially thinking separated by spaces (like how it is displayed) would have been better, but trying it with google spreadsheet convinced me that commas are a better option. So it's good to me!

@julienw julienw merged commit d4bcba5 into mozilla:main Feb 21, 2025
10 checks passed
@kala-moz kala-moz mentioned this pull request Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0