feat(history): show before/after content in change history (PMS-204) #112
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-204-history-content"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
SPA half of PMS-204: the Change History now shows the actual before to after content of each edit, not just the field names.
Depends on mokosh-server PR #156 (the
changesarray on history entries + the asset diff).Changes
old → newvalues from the newchangesarray.status_id) collapse to the summary line instead of printing a raw UUID.asset_audit_log.changescolumn; the SPA parses it as an array of{field, old, new}for edits while preserving the existing{event}object shape used by credential/config reveal rows.Result
A description edit now reads, e.g.:
Acceptance criteria
🤖 Generated with Claude Code
The Change History feeds listed the action, changed field names, actor, and timestamp but not the actual content of the edit. Render the per-field "old -> new" values returned in the new `changes` array under each entry on the ticket, project/task, and asset detail pages. Values are formatted readably: "(empty)" for null/blank, long text truncated, and reference-id fields (UUIDs) collapse to the summary line rather than printing a raw UUID. For assets the audit row's `changes` column is parsed (array of {field, old, new} for edits; the existing {event} object shape for reveal ops is preserved). Depends on mokosh-server #156. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>