mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
The AI section of the document detail sheet collapsed whenever auto-read was on and nothing was pending review, without checking whether the document actually has a content index. A document the automatic pass never reached (uploaded before the preference, or the pass did not complete) then had NO visible way to be read; turning auto-read off was the only workaround. Collapse only once the document is read (or when indexing is unavailable on the transport, where no action could be offered anyway). An unread document keeps the Read with AI action, introduced by a short honest note in all six locales; the suggest and summarise extras stay hidden because the auto-read promise still covers them. The three states stay distinct: unread shows the note plus the action, an in-flight read shows the reading label, a read document collapses the block. Refs #777