feat(training): rich-text lessons with inline images and 25 MB manuals
CI / build (push) Has been cancelled

Admins were authoring plain-text lessons, which made illustrated tutorials
and reordering images impossible. Lesson bodies are now sanitized HTML from a
Tiptap editor with alignment, sizing, drag-reorder and alt text, and inline
images reuse the training_resources table so no migration is needed.
Attachments grow to 25 MB, PDFs stream inline, and SVG is rejected because it
can execute as a document. Legacy plain-text bodies are normalized on read.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-20 12:18:24 +00:00
parent e8759cdee8
commit cb5976edb2
18 changed files with 1799 additions and 114 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ POSTMARK_FROM=media@localhost
# Console transport directory (a named Docker volume in compose).
OUTBOX_DIR=/tmp/outbox
# Training attachments (metadata in Postgres, bytes on disk; max 5 MB each).
# Training attachments (metadata in Postgres, bytes on disk; max 25 MB each).
UPLOAD_DIR=/tmp/uploads
# NFS archive. Mount the export on the Docker host, then point