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

Reprocess, edit, redact a document #568

Closed eyeseast closed 1 week ago

eyeseast commented 3 weeks ago

Running locally, this is very fast, to the point where I'm not sure we need a "document is processing" view, especially since we can render the PDF while images and text are still processing.

Dependencies: This PR also upgrades us to Node 20 and adds a dependency on core-js to polyfill Promise.withResolvers. Please update your environment accordingly.

This PR also includes the document editing form now (#571).

Screenshot 2024-06-10 at 6 05 46 PM

github-actions[bot] commented 3 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 30.44% 3304 / 10852
🔵 Statements 30.44% 3304 / 10852
🔵 Functions 30.76% 60 / 195
🔵 Branches 56.23% 185 / 329
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/lib/api/documents.ts 86.42% 84.74% 92.3% 86.42% 43-71, 77-106, 128-129, 146-152, 156-157, 191-192, 302-303, 306-307, 367-369
src/lib/components/common/Action.svelte 0% 0% 0% 0% 1-55
src/lib/components/common/Button.svelte 100% 75% 100% 100%
src/lib/components/documents/Note.svelte 0% 0% 0% 0% 1-337
src/lib/components/documents/PDF.svelte 0% 0% 0% 0% 1-100
src/lib/components/documents/PDFPage.svelte 0% 0% 0% 0% 1-410
src/lib/components/documents/RedactionPane.svelte 0% 0% 0% 0% 1-144
src/lib/components/forms/ConfirmRedaction.svelte 0% 0% 0% 0% 1-90
src/lib/components/forms/DocumentUpload.svelte 100% 27.27% 0% 100%
src/lib/components/forms/Edit.svelte 0% 0% 0% 0% 1-85
src/lib/components/forms/Reprocess.svelte 0% 0% 0% 0% 1-173
src/lib/components/inputs/Field.svelte 0% 0% 0% 0% 1-53
src/lib/components/inputs/Select.svelte 100% 100% 100% 100%
src/lib/components/inputs/Text.svelte 100% 100% 100% 100%
src/lib/components/inputs/TextArea.svelte 0% 0% 0% 0% 1-46
src/lib/components/layouts/MainLayout.svelte 0% 0% 0% 0% 1-263
src/lib/components/layouts/Modal.svelte 0% 0% 0% 0% 1-113
src/lib/components/layouts/stories/Dialog.demo.svelte 0% 0% 0% 0% 1-30
src/routes/+page.server.ts 0% 0% 0% 0% 1-7
src/routes/app/+layout.ts 0% 0% 0% 0% 1-21
src/routes/app/+page.ts 0% 0% 0% 0% 1-51
src/routes/documents/[id]-[slug]/+layout.svelte 0% 0% 0% 0% 1-87
src/routes/documents/[id]-[slug]/+layout.ts 0% 0% 0% 0% 1-46
src/routes/documents/[id]-[slug]/+page.server.ts 0% 0% 0% 0% 1-72
src/routes/documents/[id]-[slug]/+page.svelte 0% 0% 0% 0% 1-203
src/routes/documents/[id]-[slug]/+page.ts 0% 0% 0% 0% 1-51
src/routes/documents/[id]-[slug]/annotate/+page.svelte 0% 0% 0% 0% 1-88
src/routes/documents/[id]-[slug]/components/Zoom.svelte 0% 0% 0% 0% 1-137
src/routes/documents/[id]-[slug]/redact/+page.server.ts 0% 0% 0% 0% 1-7
src/routes/documents/[id]-[slug]/redact/+page.svelte 0% 0% 0% 0% 1-131
src/routes/documents/[id]-[slug]/redact/+page.ts 0% 0% 0% 0% 1-11
src/routes/documents/[id]-[slug]/sidebar/Actions.svelte 0% 0% 0% 0% 1-133
src/routes/documents/[id]-[slug]/sidebar/DocumentMetadata.svelte 0% 0% 0% 0% 1-88
Generated in workflow #168
netlify[bot] commented 3 weeks ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit 0ccf55ca4efc34c98172f353aca5f890cbea3e8b
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/6679cd1ec147fc0008354839
Deploy Preview https://deploy-preview-568.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.