From 603ccfbd5fe96f0b83aaf3d5118aded2a39992fb Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 16 Jul 2026 13:50:15 +0200 Subject: Condense the action log into a scannable table Several minor improvements to the action log presentation: * Now a table with date and human readable presentation as rows is displayed * If no changes in a title were detected, the old version is omitted * The "inferred" flag is demoted to the end of the line * You can zoom in on the node's history directly from a log line * byline for the first publish action is preserved * Revisions are directly linked to when a new one i published --- test/models/helpers/node_actions_helper_test.rb | 32 +++++++++++++++++++++---- test/models/node_action_test.rb | 16 +++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/models/helpers/node_actions_helper_test.rb b/test/models/helpers/node_actions_helper_test.rb index 93bbdf6..5244c19 100644 --- a/test/models/helpers/node_actions_helper_test.rb +++ b/test/models/helpers/node_actions_helper_test.rb @@ -21,12 +21,13 @@ class NodeActionsHelperTest < ActionView::TestCase "human_readable_node_name" => "Subject" }.merge(metadata)) end - test "publish renders the title pair" do + test "publish renders the revision sentence, not the titles" do out = action_summary(entry("publish", { "via" => "draft", "title" => { "from" => "Old", "to" => "New" } })) assert_includes out, "quentin" - assert_includes out, "Old" + assert_includes out, "new revision" + assert_not_includes out, "Old" end test "first publish uses its own sentence" do @@ -68,10 +69,8 @@ class NodeActionsHelperTest < ActionView::TestCase test "metadata values are escaped" do out = action_summary(entry("publish", - { "human_readable_node_name" => "bold", - "title" => { "from" => "", "to" => "x" } })) + { "human_readable_node_name" => "bold" })) - assert_not_includes out, "