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

[Implement] Create document preview component #1327

Open
vsgoulart opened this issue Dec 5, 2024 · 3 comments
Open

[Implement] Create document preview component #1327

vsgoulart opened this issue Dec 5, 2024 · 3 comments
Assignees
Labels
needs review Review pending

Comments

@vsgoulart
Copy link
Contributor

vsgoulart commented Dec 5, 2024

Epic https://github.com/camunda/product-hub/issues/2592, part of the Document handling https://github.com/camunda/product-hub/issues/2555
Design mocks: link

What should we do?

Following up on #1239 would like to also add the possibility to preview and download files in a form

  • Create a new file preview component according to the mocks
    • This new component will have the following configurations on the properties panel: Label, Document reference and optionally configure the Endpoint
      • Label: a title shown on the top of the list documents
      • Document reference: the variable in the context which form-js will use to render the files
      • Endpoint: the key in the context which will have the endpoint URL which will be used to fetch each file. By default, it is set to the Camunda API endpoint.
    • Each file should be downloadable
    • PDFs and images should be previewable for any other format we will show the filename

Why should we do it?

So users can consume files uploaded in other forms or services

@vsgoulart vsgoulart self-assigned this Dec 6, 2024
@vsgoulart vsgoulart changed the title [Implement] Create file viewer component [Implement] Create document preview component Dec 6, 2024
@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Dec 6, 2024
@volodymyr-melnykc
Copy link

@marcosgvieira
Copy link

@vsgoulart I believe this one is only missing documentation, correct?

@vsgoulart
Copy link
Contributor Author

@marcosgvieira The PR is open: camunda/camunda-docs#4773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Review pending
Projects
None yet
Development

No branches or pull requests

3 participants