Skip to content

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Sep 4, 2025

Use PDF.js from Mozilla to render pdfs into canvas

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for heartex-docs failed. Why did it fail? →

Name Link
🔨 Latest commit a7ab657
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/68baf5435bfd560008a29730

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for label-studio-docs-new-theme failed. Why did it fail? →

Name Link
🔨 Latest commit a7ab657
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/68baf54377f49600076ecc03

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit a7ab657
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/68baf54301e7c800080a726f
😎 Deploy Preview https://deploy-preview-8344--label-studio-playground.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 project configuration.

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit a7ab657
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/68baf543cc0b5c000864c29a
😎 Deploy Preview https://deploy-preview-8344--label-studio-storybook.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 project configuration.

// Render a fallback message
const errorElem = document.createElement("div");
errorElem.textContent = "Failed to load PDF";
errorElem.style.color = "#d00";
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use css variables

@@ -103,7 +103,9 @@ const HtxPdf = inject("store")(
return () => {
isCancelled = true;
try {
loadingTask.destroy();
// @todo this seems like a correct cleanup, but most probably it's called more than once,
// @todo destroying properly loaded pdf
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an issue all tag's have, the entire tree could be remounted, a parent can get remounted, and the rerenders which occur happen in an odd way I find.

Copy link

codecov bot commented Sep 4, 2025

Codecov Report

❌ Patch coverage is 0% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.50%. Comparing base (52999f9) to head (a7ab657).
⚠️ Report is 7 commits behind head on develop.

Files with missing lines Patch % Lines
web/libs/editor/src/tags/object/Pdf.jsx 0.00% 44 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (52999f9) and HEAD (a7ab657). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (52999f9) HEAD (a7ab657)
pytests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8344      +/-   ##
===========================================
- Coverage    66.22%   60.50%   -5.72%     
===========================================
  Files          761      544     -217     
  Lines        56359    38277   -18082     
  Branches     10086    10094       +8     
===========================================
- Hits         37324    23160   -14164     
+ Misses       19032    15114    -3918     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 54.51% <0.00%> (-0.09%) ⬇️
lsf-integration 51.21% <0.00%> (-0.06%) ⬇️
lsf-unit 8.62% <0.00%> (-0.01%) ⬇️
pytests ?

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hlomzik
Copy link
Collaborator Author

hlomzik commented Sep 5, 2025

/git merge

Workflow run
Successfully merged: delete mode 100644 label_studio/core/static/drf-yasg/redoc/redoc.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants