Add new status "loading preview"
As raised in #294 (closed)
Currently the "Converting" status covers two steps:
- converting the word file to xml
- loading the xml file to PMC to generate the preview.
It is confusing to have the status "converting" for this second step, especially since the xml file is available in the UI at the 2nd step.
Changes required
-
Add a new status "Loading preview" for the 2nd step above. -
Status Icon for "Loading preview" matches the icon for "Converting" -
On the files tab, change design of "Convert" button to "Load preview" as in design below -
Block book component file uploads (individual and from bulk upload modal) when book component status = "Loading preview" -
Block book component file uploads (individual and from bulk upload modal) when book component status = "In review" and file status = "Loading preview" -
Block supplementary file uploads when book component status = "Loading preview" -
Block supplementary file uploads when book component status = "In review" and file status = "Loading preview" -
On the preview tab, display text "Preview will display when file loads successfully" when book component status = "Loading preview"; and when book component status = "In review" and file status = "Loading preview" -
Do not block supplementary file uploads when book component status = "Converting" -
Do not block supplementary file uploads when book component status = "In review" and file status = "Converting" -
Use the same wording as point 7 above on the preview tab for status "converting" -
As already done for the "converting" status, a user should not be able to mark a chapter "ready to publish" or "publish" when status = "Loading preview". -
The button "show review" should be active for both states "converting" and "Loading preview" so the users can see chat history and make a comment. The decision buttons "request review", "revise" and "approve" should be inactive for both states because the user cannot see the content yet. -
Blocking moving the book component (via DND or "move" button) when status = "converting", because we first need the xml to know where place the content in Front/body/back -
Do not block moving the book component (via DND or "move" button) when status = "Loading Preview", because the book component should be placed in the correct section at this point.