HERMES-GIELIE/static
nesquena-hermes 98a81118a1 fix(#4353): render all PDF pages in a scrollable inline preview
The inline PDF preview rendered only page 1, so multi-page documents
looked clipped. loadPdfInline now renders every page (capped at MAX_PAGES=20
for memory) sequentially into a scrollable .pdf-preview-body, shows the page
count in the header, and appends a "Showing the first N of M pages" notice
(pdf_truncated, 13 locales) when the PDF exceeds the cap.

Robustness: renderPage(i) attaches each canvas only AFTER its render
promise resolves, and a per-page failure is caught and skipped
(`.then(()=>renderPage(i+1)).catch(()=>renderPage(i+1))`) so one corrupt
page can't halt the preview or surface an unhandled rejection. XSS-safe
(esc(fname), t() with numeric args).

Co-authored-by: Gouranga satapathy <29521030+gourangasatapathyvit@users.noreply.github.com>
2026-06-17 20:57:38 +00:00
..
vendor
apple-touch-icon.png
assistant_turn_anchors.js Add assistant turn anchor renderer snapshot adapter 2026-06-14 02:03:45 +08:00
boot.js Release v0.51.475 — ElevenLabs TTS engine (#3510) 2026-06-17 05:50:37 +00:00
commands.js fix(autocomplete): support slash commands after non-ASCII prefix and multiple slashes (#3924) 2026-06-14 19:57:17 +00:00
favicon-32.png
favicon-192.png
favicon-512.png
favicon-512.svg
favicon.ico
favicon.svg
i18n.js fix(#4353): render all PDF pages in a scrollable inline preview 2026-06-17 20:57:38 +00:00
icons.js feat(#4226): display symlinks in workspace file tree (#4228) 2026-06-16 23:24:15 +00:00
index.html feat(#2543): collect selected chat text as named context blocks 2026-06-17 20:15:02 +00:00
login.js
manifest.json
messages.js feat(#2543): collect selected chat text as named context blocks 2026-06-17 20:15:02 +00:00
onboarding.js
outline.js fix(outline): keep outline valid on the todos sidebar panel (Opus follow-up) 2026-06-10 23:55:05 +00:00
panels.js feat(#2941): add read-only LLM Wiki browser in the Insights panel 2026-06-17 19:47:45 +00:00
pwa-startup.js
sessions.js feat(#2543): collect selected chat text as named context blocks 2026-06-17 20:15:02 +00:00
style.css fix(#4353): render all PDF pages in a scrollable inline preview 2026-06-17 20:57:38 +00:00
sw.js fix: focus the existing chat tab when a notification is clicked instead of opening a new tab 2026-06-13 14:42:41 -07:00
terminal.js Release v0.51.297 — stage-3711 (terminal remote-backend guard #3711) (#3745) 2026-06-06 14:17:17 -07:00
ui.js fix(#4353): render all PDF pages in a scrollable inline preview 2026-06-17 20:57:38 +00:00
workspace.js feat(#2941): add read-only LLM Wiki browser in the Insights panel 2026-06-17 19:47:45 +00:00