Skip to content

Add PDF support in MediaBlock using an iframe #1129

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

Merged
merged 1 commit into from
Apr 18, 2025
Merged

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Apr 17, 2025

This was way easier than I expected just using an iframe (rather than having to bundle e.g., PDF.js and the like). Will be useful for e.g., #658

@ml-evs ml-evs added enhancement New feature or request datablock An issue pertaining to a specific datablock labels Apr 17, 2025
Copy link

codecov bot commented Apr 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.30%. Comparing base (e5c09d9) to head (19b7783).
Report is 103 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1129   +/-   ##
=======================================
  Coverage   71.30%   71.30%           
=======================================
  Files          63       63           
  Lines        4144     4144           
=======================================
  Hits         2955     2955           
  Misses       1189     1189           
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/blocks/common.py 62.35% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ml-evs ml-evs changed the title Add PDF support in MediaBlock.vue using an iframe Add PDF support in MediaBlock using an iframe Apr 17, 2025
Copy link

cypress bot commented Apr 17, 2025

datalab    Run #3126

Run Properties:  status check passed Passed #3126  •  git commit dddfcca75b ℹ️: Merge badffd2f84dea0e07862ef7bf9e1a16fce4503aa into 39a8a70f14165423d24fe4f48e02...
Project datalab
Branch Review ml-evs/pdf-media-block
Run status status check passed Passed #3126
Run duration 11m 10s
Commit git commit dddfcca75b ℹ️: Merge badffd2f84dea0e07862ef7bf9e1a16fce4503aa into 39a8a70f14165423d24fe4f48e02...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 477
View all changes introduced in this branch ↗︎

@ml-evs ml-evs force-pushed the ml-evs/pdf-media-block branch from 95edb57 to 0ad20cd Compare April 17, 2025 14:06
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

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

works perfectly 👍

@ml-evs ml-evs force-pushed the ml-evs/pdf-media-block branch from 0ad20cd to badffd2 Compare April 17, 2025 15:59
@ml-evs ml-evs force-pushed the ml-evs/pdf-media-block branch from badffd2 to 19b7783 Compare April 18, 2025 08:48
@ml-evs ml-evs enabled auto-merge (squash) April 18, 2025 08:57
@ml-evs ml-evs merged commit 6e57b6a into main Apr 18, 2025
17 checks passed
@ml-evs ml-evs deleted the ml-evs/pdf-media-block branch April 18, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datablock An issue pertaining to a specific datablock enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants