Merge branch 'ws-files-viewer'

# Conflicts:
#	app/tool/capture/README.md
This commit is contained in:
2026-11-07 01:45:03 +00:00
32 changed files with 1349 additions and 140 deletions
+20
View File
@@ -13,3 +13,23 @@ Server side:
absolute or `~`-prefixed and are resolved through the operator home directory; cleaned
paths and symlinks must stay inside that home subtree. Directories, special files and
escape paths are refused. Add `download=1` for attachment disposition.
## Viewing and downloads
Files now open in the shared artifact viewer (images, SVG icons in an inert
HTML frame, text/code, markdown, JSON, tables, HTML, audio and video). PDFs open
through the platform handler. Unknown files show metadata and host-native Open
externally/Download actions. Every file has separate Open and Download menu
items, including PDFs; folders have neither. Downloads reuse the artifact
save bridge on native platforms and attachment URLs on web. Viewer downloads
also use attachment URLs.
Image tiles decode at 56 logical pixels (maximum scale 4), show a loading
placeholder and error glyph, and evict decoded cache entries when scrolled out.
Sorting runs once per panel rebuild. Breadcrumbs navigate to ancestors; filters
stay synchronized with folder navigation, and filtered empty states differ from
empty folders. Sizes use binary units and mtimes use compact local timestamps.
The capture fixture uses `files=1`; see app/tool/capture/README.md for bundling
its static files. PDF/video fixture entries only show types/menus and do not
provide playable sample bytes.