https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36698
--- Comment #4 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 194752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194752&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). -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
