viewer: journal text for asset.acquisition_linked; a test that every event type the store writes has plain-language journal text

The acquisition link was added after the viewer's asset work and showed its raw event name in recent activity. The new test reads the event types from the store's replay arms, so the next new event without text fails it (checked: it fails without this fix).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-10-15 12:35:39 -06:00
1 parent cd085108c1
commit 7f199737ef
3 files changed
+55 -9

No files matched your search

+4 -9
View File
@@ -27,15 +27,10 @@ pub struct JournalLine {
pub seq: u64,
/// UTC timestamp, RFC 3339. Recorded, never trusted for ordering.
pub ts: String,
/// Event type: `account.added`, `entry.created`, `entry.line_added`,
/// `entry.posted`, `entry.reversed`, `entry.line_class_set`,
/// `receipt.attached`, `receipt.linked`, `receipt.unlinked`,
/// `document.filed`, `attachment.withdrawn`,
/// `asset.registered`, `asset.depreciation_posted`, `asset.disposed`,
/// `period.created`, `period.closed`, `line.cleared`, `customer.added`,
/// `vendor.added`, `invoice.created`, `bill.created`,
/// `invoice.payment_received`, `bill.paid`, `fx.rate_set`,
/// `payroll.run`, `class.added`, `store.created`.
/// Event type, e.g. `account.added`, `entry.posted`, `asset.tagged`:
/// every type the store writes has a replay arm in
/// `replay_line_into_ledger` (an unknown type is refused as corrupt),
/// and journal text in the viewer (`ledger-gui` tests check both).
#[serde(rename = "type")]
pub line_type: String,
/// The full domain facts. Everything a replay needs.