Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle failure to fetch a document in the DocViewer #871

Open
pmarsh-scottlogic opened this issue Mar 21, 2024 · 0 comments
Open

Handle failure to fetch a document in the DocViewer #871

pmarsh-scottlogic opened this issue Mar 21, 2024 · 0 comments
Labels
frontend Requires work on the frontend triage New tickets to be checked by the maintainers

Comments

@pmarsh-scottlogic
Copy link
Contributor

Suppose you open the <DocumentViewBox>, and the backend decides to misbehave and not return documents. We have already handled the case where we cannot load the documentMetas #712. But what if we have already loaded the documentMetas and then the backend fails? Well, then we are presented with a blank doc viewer. We should put some kind of error message there.

To reproduce:

  • Run the frontend and backend
  • In sandbox, click "view documents" to open the document vieweer
  • shut down the backend
  • try loading up the next document

Image

Image

You might need to get into the guts of the library component <DocViewer> from '@cyntler/react-doc-viewer'

@pmarsh-scottlogic pmarsh-scottlogic added enhancement New feature or request triage New tickets to be checked by the maintainers frontend Requires work on the frontend and removed enhancement New feature or request labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Requires work on the frontend triage New tickets to be checked by the maintainers
Projects
None yet
Development

No branches or pull requests

1 participant