1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-10-09 12:55:00 +02:00
archivr/crates/archivr-server/static
archivr-qa e8bb03e08f
feat(frontend): preview text-capture entries (.md / .txt)
Text captures land as `.md` (Markdown) or `.txt` (plain) blobs, but
PreviewPanel only dispatched on video/audio/image/pdf/html extensions,
so opening a text entry hit the 'No preview available' fallback with
the raw artifact path exposed.

- New `TextPreview` component fetches the primary artifact as text,
  renders it in a monospace `<pre>` with word-wrap, and shows the
  entry title on top and the MIME as a small trailing tag. Handles
  loading/error states.
- `PreviewPanel` gains a `TEXT_EXTS` set + a branch that dispatches
  to `TextPreview` for `md` / `markdown` / `txt`.
- CSS is padded and centered to ~780px so a text note reads like a
  document rather than an edge-to-edge terminal dump.

v1 intentionally does NOT parse Markdown: keeping frontend deps at
react+react-dom only. Bump to a real Markdown renderer if we start
capturing Markdown-authored notes.
2026-08-23 19:02:46 +02:00
..
assets feat(frontend): preview text-capture entries (.md / .txt) 2026-08-23 19:02:46 +02:00
favicon.ico chore: add brand identity, style guide, and favicon (#35) 2026-07-25 15:31:25 +02:00
favicon.svg chore: add brand identity, style guide, and favicon (#35) 2026-07-25 15:31:25 +02:00
index.html feat(frontend): preview text-capture entries (.md / .txt) 2026-08-23 19:02:46 +02:00