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
15 stars 5 forks source link

Render PDF in annotation and redaction routes #564

Closed eyeseast closed 1 month ago

eyeseast commented 1 month ago

This sets us up to do redaction and add notes. We need the PDF on the page, plus pagination and zoom controls. Up to that point, both routes are the same, so this gets us that far.

github-actions[bot] commented 1 month ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 32.27% 3141 / 9733
🔵 Statements 32.27% 3141 / 9733
🔵 Functions 29.83% 54 / 181
🔵 Branches 55.51% 166 / 299
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/lib/api/documents.ts 83.29% 81.57% 85.71% 83.29% 33-61, 67-96, 118-119, 136-142, 146-147, 181-182, 243
src/routes/documents/[id]-[slug]/+page.svelte 0% 0% 0% 0% 1-184
src/routes/documents/[id]-[slug]/+page.ts 0% 0% 0% 0% 1-47
src/routes/documents/[id]-[slug]/annotate/+page.svelte 0% 0% 0% 0% 1-87
src/routes/documents/[id]-[slug]/annotate/+page.ts 0% 0% 0% 0% 1-10
src/routes/documents/[id]-[slug]/components/ViewerPaginator.svelte 0% 0% 0% 0% 1-48
src/routes/documents/[id]-[slug]/components/Zoom.svelte 0% 0% 0% 0% 1-128
src/routes/documents/[id]-[slug]/redact/+page.svelte 0% 0% 0% 0% 1-87
src/routes/documents/[id]-[slug]/redact/+page.ts 0% 0% 0% 0% 1-10
Generated in workflow #146
netlify[bot] commented 1 month ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit 9b03e0d6ada8bd89c9d3a4b9ce26dd66eb7dbb92
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/666086e36d21f10008feb649
Deploy Preview https://deploy-preview-564.muckcloud.com
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.

netlify[bot] commented 1 month ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit ef920ea61d98a67e864271e04e4aa2e44cc1b03b
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/6661e6d9f7c01b000802f307
Deploy Preview https://deploy-preview-564.muckcloud.com
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.