From bc448496d452efb41bbd5175afe5c6febfcd0398 Mon Sep 17 00:00:00 2001 From: Alessandro Perilli <9775949+alessandroperilli@users.noreply.github.com> Date: Fri, 26 Sep 2025 13:41:05 +0100 Subject: [PATCH] Show suite details in node UI --- nodes/nodes_contribution.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nodes/nodes_contribution.py b/nodes/nodes_contribution.py index 716bb92..d801f9d 100644 --- a/nodes/nodes_contribution.py +++ b/nodes/nodes_contribution.py @@ -115,9 +115,21 @@ class OCS_NodesContribution: sorted_lines = sorted( counts.items(), key=lambda item: (-item[1], item[0].lower()) ) - breakdown = "\n".join(f"{suite} - {count}" for suite, count in sorted_lines) + breakdown_lines = [f"{suite} - {count}" for suite, count in sorted_lines] + breakdown = "\n".join(breakdown_lines) - return {"result": (breakdown,), "ui": {"text": breakdown}} + details_lines = ["Loaded node classes:"] + for suite in sorted(suites): + members = sorted(suites[suite]) + details_lines.append( + f"{suite} ({len(members)} class{'es' if len(members) != 1 else ''})" + ) + for node_id in members: + details_lines.append(f" • {node_id}") + + ui_text = f"{breakdown}\n\n" + "\n".join(details_lines) + + return {"result": (breakdown,), "ui": {"text": ui_text}} NODE_CLASS_MAPPINGS = {