TOC (book component) UI and statuses for chapter-processed books
This should cover the frontend dev and status changes for TOCs. Let me know if anything is unclear. See figma here
-
Add a button on the book manager that shows the status of the TOC
The button opens the modal below:
"Unpublished" status
-
When a chapter-processed book is created, apply "Unpublished" status to the toc component -
Show text on "Live" tab: "To create a table of contents page for the book, chapters must be published. This page is updated with the published table of contents page on Bookshelf only once overnight when new chapters are published." -
Download button is only active when the toc file has been created. -
The "Update published version" button is inactive
"Publishing failed" status
-
Show text on "Live" tab: "Not available. Resolve errors to generate the live view." -
The "Update published version" button is active
The errors tab shows
-
error messages received in kafka notifications -
error message when Agreements API check 1 fails (#800 (closed)) -- Not completed
"Published" status
-
Show on "Live" tab: the Live TOC from the URL sent in successful kafka notifications -
The errors tab shows error messages received in successful kafka notifications