From 4dc776dda40f30bf8a8ee4e2a96857c4ed68d2a8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Sep 2026 22:56:07 +0000 Subject: [PATCH] Remotes view: unified table display for connected and local remotes - Remotes and Local Remotes merged into a single grid/table layout; upstream connected remotes listed first, local remotes after - Expanding a remote row shows its functions as indented rows; any number of remotes can be expanded simultaneously - Each function row shows name and description, and expands into a detail section (10em min height) with JSON arguments on the left and call output on the right - Connected and local remotes are visually identical; local remotes additionally offer connect/disconnect and delete options plus a connected status - Disconnected local remotes show an editable function interface (args editor + JS body); when connected, functions become callable instead (only one mode shown at a time) - Local remote<->upstream connection matching persisted across view reloads via sessionStorage (browser-session scoped, matching connection lifetime), not across tab reloads - Local remote store and remote-call listener moved to module scope so they survive view reloads; stale matching flags are dropped when the socket connection is gone --- frontend/src/views/Remotes.vue | 930 +++++++++++++++++++-------------- 1 file changed, 532 insertions(+), 398 deletions(-) diff --git a/frontend/src/views/Remotes.vue b/frontend/src/views/Remotes.vue index 5e16596..60e5693 100644 --- a/frontend/src/views/Remotes.vue +++ b/frontend/src/views/Remotes.vue @@ -1,157 +1,25 @@ - + + @@ -267,225 +392,234 @@ function toggleFnExpanded(index, fIdx) {

Remotes

- - - -
-
-

Invoke: {{ activeFunction.name }}

-
- -
-
- - - - -
- -
-
- Result -
{{ JSON.stringify(callResult, null, 2) }}
-
-
- Error -
{{ callError }}
-
-
- Call will appear here -
-
-
-
- - - -
-
-

Remotes

- {{ remotes.length }} registered -
- -
No remotes connected.
- -
-
-
- {{ remote.name }} - - {{ remote.connected ? 'Connected' : 'Disconnected' }} -
- {{ expandedRemoteIds.has(remote.name) ? '▼' : '▶' }} + +
+
+
+
Remote
+
Status
+
Options
-
-
Functions (click to activate):
-
- -
-
-
-
- - - - -
-
-

Local Remotes

-
-
-
- -
-
- + +
+
+ {{ expandedRemotes.has(row.key) ? '▼' : '▶' }} +
+
+ - {{ remote.name }} - +
+ +
No remotes.
+ -
\ No newline at end of file +