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

fix: Copy did not work from embedded iframes #1528

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Sep 20, 2023

  • embedded iframes require the 'clipboard-write' permission to copy in Chrome. Added note to the README
  • Display an error correctly if the copy doesn't succeed, and added unit test
  • Fixed context menu as well - default menu handler did not return an array as it should've
  • Tested in Firefox and Chrome on Linux
  • Fixes Copy does not work from iframe embedded grids #1527

- embedded iframes require the 'clipboard-write' permission to copy in Chrome. Added note to the README
- Display an error correctly if the copy doesn't succeed, and added unit test
- Fixed context menu as well - default menu handler did not return an array as it should've
@mofojed mofojed requested a review from mattrunyon September 20, 2023 16:58
@mofojed mofojed self-assigned this Sep 20, 2023
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage: 92.30% and no project coverage change.

Comparison is base (d796f83) 46.42% compared to head (fa98545) 46.43%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1528   +/-   ##
=======================================
  Coverage   46.42%   46.43%           
=======================================
  Files         558      556    -2     
  Lines       35714    35715    +1     
  Branches     8916     8916           
=======================================
+ Hits        16582    16584    +2     
+ Misses      19082    19081    -1     
  Partials       50       50           
Flag Coverage Δ
unit 46.43% <92.30%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
packages/iris-grid/src/IrisGrid.tsx 26.96% <0.00%> (ø)
packages/iris-grid/src/IrisGridCopyHandler.tsx 83.22% <96.00%> (+0.42%) ⬆️

... and 3 files with indirect coverage changes

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

mofojed and others added 2 commits September 22, 2023 17:21
Co-authored-by: Matthew Runyon <mattrunyonstuff@gmail.com>
Co-authored-by: Matthew Runyon <mattrunyonstuff@gmail.com>
@mofojed mofojed requested a review from mattrunyon September 25, 2023 13:00
@mofojed mofojed merged commit 3549a33 into deephaven:main Sep 25, 2023
@mofojed mofojed deleted the 1527-copy-embedded-grid branch September 25, 2023 19:34
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy does not work from iframe embedded grids
2 participants