From 0b34be01b1d3a2ab4c03cb1d13627db2f5a483d3 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 14 Nov 2025 13:57:25 +0000 Subject: [PATCH] Fix duplicate HTML IDs causing protocol address auto-fill issues --- src/dashboard/templates.py | 10 +- static/test_protocol_address_debug.html | 139 ++++++++++++++++++ static/test_protocol_address_fix.html | 179 ++++++++++++++++++++++++ 3 files changed, 323 insertions(+), 5 deletions(-) create mode 100644 static/test_protocol_address_debug.html create mode 100644 static/test_protocol_address_fix.html diff --git a/src/dashboard/templates.py b/src/dashboard/templates.py index 3925be0..cd2e0d6 100644 --- a/src/dashboard/templates.py +++ b/src/dashboard/templates.py @@ -800,13 +800,13 @@ DASHBOARD_HTML = """ Data types will be loaded from tag metadata system
- - - + + +
- - + +
diff --git a/static/test_protocol_address_debug.html b/static/test_protocol_address_debug.html new file mode 100644 index 0000000..66d252f --- /dev/null +++ b/static/test_protocol_address_debug.html @@ -0,0 +1,139 @@ + + + + Protocol Address Debug Test + + + +

Protocol Address Auto-fill Debug Test

+ +
+

Test 1: Direct Function Call

+

Test if autoPopulateSignalForm function works directly:

+ +
+
+ +
+

Test 2: Simulate "Use This Signal" Button

+

Simulate clicking a "Use This Signal" button:

+ +
+
+ +
+

Test 3: Check Modal Elements

+

Check if modal form elements exist:

+ +
+
+ +
+

Test 4: Manual Modal Population

+

Manually populate modal fields:

+ +
+
+ + + + \ No newline at end of file diff --git a/static/test_protocol_address_fix.html b/static/test_protocol_address_fix.html new file mode 100644 index 0000000..5b82ae0 --- /dev/null +++ b/static/test_protocol_address_fix.html @@ -0,0 +1,179 @@ + + + + Protocol Address Fix Test + + + +

Protocol Address Auto-fill Fix Verification

+ +
+

Test: Check for Duplicate IDs

+

Verify that there are no duplicate HTML IDs that could cause JavaScript issues:

+ +
+
+ +
+

Test: Verify Modal Elements

+

Check if the signal modal elements exist with correct IDs:

+ + +
+ +
+

Test: Simulate Discovery Integration

+

Simulate the "Use This Signal" button functionality:

+ +
+
+ + + + \ No newline at end of file