MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
18 stars 5 forks source link

Calculate sizes when the PDF loads, not in onMount #812

Closed eyeseast closed 2 weeks ago

eyeseast commented 2 weeks ago

Fixes a regression where documents still processing wouldn't load. Now we can see them again.

github-actions[bot] commented 2 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.31% 8152 / 33523
🔵 Statements 24.31% 8152 / 33523
🔵 Functions 43.23% 195 / 451
🔵 Branches 61.95% 513 / 828
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/layouts/DocumentLayout.svelte 0% 0% 0% 0% 1-125
src/lib/components/viewer/PDF.svelte 0% 0% 0% 0% 1-791
src/lib/components/viewer/ViewerContext.svelte 0% 0% 0% 0% 1-217
src/routes/+layout.svelte 0% 0% 0% 0% 1-38
Generated in workflow #660 for commit 22a22b6 by the Vitest Coverage Report Action
netlify[bot] commented 2 weeks ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit 22a22b64ac9e483de1425cd40ce4f7bdf9c43adf
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/672a45b9371bf9000832442f
Deploy Preview https://deploy-preview-812.muckcloud.com
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 42
Accessibility: 85
Best Practices: 92
SEO: 83
PWA: -
View the detailed breakdown and full score reports

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