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

Should documents be viewable before processing finishes? #543

Open eyeseast opened 1 month ago

eyeseast commented 1 month ago

With PDF.js, we'll be able to view a document as soon as it's uploaded. This raises some questions:

eyeseast commented 1 month ago

Assets we might not have when the document is viewable:

What else?

We can actually generate thumbnails and page sizes directly from the PDF if needed.

allanlasser commented 1 month ago

My pitch would be a minimally-useful viewer while the document is in a processing state. Disabling options and links, such as:

An enhancement would be using native browser notifications to let people know when a document or upload finishes processing.

eyeseast commented 1 month ago

Thinking about this more, the parts we're not likely to have are mostly on S3: page images, text, text positions. I agree on making the document read-only until it's done processing. We can probably render notes if a document has them and is reprocessing.

I guess one question is whether there will be a point where we don't have a PDF file, and what to show in that state.