{# dwr-fid-03 — the DEGRADED reading pane. Shown in place of the sections list when a document has no dic_sections row. Measured on the live PG board 2026-09-08: 39 of 55 documents are in this state, and they are NOT one population — 19 have text recoverable from rag_chunks, 9 name chunks that have since been deleted, and 11 were never chunked. Three different fixes, so three different panes. ANCHORS. Every chunk carries `id="{{ c.anchor_id }}"`, so #chunk- is deep-linkable and survives a re-render. That is this pane's coordinate space, and it is NOT the review one: anchored comments and suggestions index offsets into a section's content, and this document has no section. The limits band above says so rather than rendering a comment box that would silently drop what a reviewer typed. #} {% include "document_intelligence/_reading_limits.html" %} {% if reading_pane and reading_pane.renders_text %}
Reading view — reassembled text {{ reading_pane.chunk_count }} chunk{{ '' if reading_pane.chunk_count == 1 else 's' }} {%- if reading_pane.chunks_truncated %} shown, {{ reading_pane.chunks_truncated }} not rendered{% endif %}
{% for c in reading_pane.chunks %}
#{{ c.index }} {% if c.page %}page {{ c.page }}{% endif %} {% if c.section %}{{ c.section }}{% endif %}
{{ c.content }}
{% endfor %}
{% else %} {# No prose to render. The limits band above has already said WHICH of the three reasons applies — chunks_missing, no_text or unmeasurable — so this says only what to do next, and never "this document is empty". #}
There is no text for this page to show, for the reason stated above. Nothing here says the document is empty. Re-ingest it from its original, or generate a draft, to give this page something to render.
{% endif %}