feat(postcard): sample values, file hashes, index sync and the draft editor

- sample.<path> header keys and a parse-tree walker that fills every other
  variable with a visible [path] placeholder, nested fields and range
  targets included
- every file entry carries the sha256 of its CRLF-normalized text; the
  catalog lists its files (Templates, Layouts, Partials) for admin code
- SyncIndex upserts one index row per file and never touches the override
  columns of a customized row; ResetOverride returns a row to its file
- Editor validates, previews and test-sends a template, layout or partial
  draft through the render path of Send and reports field and rule
- pact.RowStateCustomized and pact.RowStateOutdated

Plan 35-01, task 4.
This commit is contained in:
Jakub Zych
2026-11-13 10:57:05 +01:00
parent 5df1ec27cf
commit 495319ee21
11 changed files with 2128 additions and 42 deletions

View File

@@ -0,0 +1,12 @@
subject = "A sample message"
description = "The message a mail layout is previewed around"
==
# A sample heading
This is how a message looks in this layout: a paragraph with **bold text** and [a link](https://example.com).
{{ partial "button" "url" "https://example.com" "body" "A button" }}
{{ partial "panel" "body" "A panel holds a note that should stand out." }}
Thanks for reading.