https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36698 --- Comment #14 from Lisette Scheer <lisette@bywatersolutions.com> --- Created attachment 194900 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194900&action=edit Bug 36698: Render diff column as a human-readable table in the log viewer Previously the diff column in the log viewer displayed raw Struct::Diff JSON (e.g. {"D":{"superlibrarian":{"N":1,"O":0}}}), which was not useful to end users. This follow-up adds a JavaScript renderer (renderStructDiff) to viewlog.js that parses the Struct::Diff JSON and presents it as a compact Field / Before / After table, reusing the existing <del>/<ins> colour styling already present for the jsdiff compare feature. Nested diffs (e.g. granular subpermissions) are flattened using dot-separated key names. Non-Struct::Diff content falls back gracefully to a <pre> block so that entries from other modules are not affected. The change benefits all modules that currently populate the diff column: HOLDS (MODIFY/SUSPEND/RESUME/CANCEL/FILL), CATALOGUING (MODIFY), APIKEYS (MODIFY/REVOKE/ACTIVATE), and MEMBERS (MODIFY for permissions). Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.