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

Users be able to generated PDF in the DCS repo - unpublished resources #998

Open
12 tasks
richmahn opened this issue Jul 14, 2021 · 0 comments
Open
12 tasks

Comments

@richmahn
Copy link
Member

richmahn commented Jul 14, 2021

As a user, I want to be able to download any available PDFs for a repo from the door43.org preview page.

The functionality and UX is as follows:

UX:

  • Revert preview page back to show "Conversion in progress" status when HTML not yet generated
  • HTML generated on commit and release (tag) from DCS (PDF only on release, see issue #)
  • PDF on request (button on preview page Download menu)
    • Fix mouse cursor on Download PDF item (currently a text edit icon)
    • When clicked, Grayed out and unclickable (remove event)
    • Indicate PDF being generated (hourglass next/behind "PDF")
    • Hover-over PDF shows title, PDF being generate
    • Notification box on top of page to report status of all downloadables

Procedure:

  • Check if build already in progress for that commit
  • On build use build_log.json for HTML status, and build_log_pdf.json for the PDF build status
  • If there already is a build_log_pdf.json file when the PDF button is clicked, we immediately serve the PDF or notify the user there were errors
  • If no build_log_pdf.json file yet, Javascript in the Door43.org preview page remembers that the user requested a PDF (use cookie?) and to scan to see if a pdf_build_log.json file exists. Once it exists, errors are displayed in red notification box, or link to PDF in green notification box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant