Assuming that the flow in T394130 is built an functional, the following improvements need to be made.
This task deals with adding a dialog box once the OCR results for the initial pages are ready so that appropriate confirmation can be obtained from the user before writing the transcribed text back to the text layer.
Details and specifics
- There should be a dialog box with the content area divided into two halves: one half showing the image of the page and the other half containing the transcribed text as obtained from the API response.
- Ideally, previews should be shown for at least the first 5 pages of the book
- Once the user clicks “Approve”, the OCRed text should be inserted into the text layer of each page of the book
- Have a banner at the top of the approve dialog box that says Proceed with the action only if you know what you are doing as it affects multiple pages of the book.
Possible OOUI components