From 8f59e075d60007c4d4a60ada1a820a1ff474c5d5 Mon Sep 17 00:00:00 2001 From: Sebastian Gieseler Date: Wed, 21 Oct 2026 16:25:53 +0200 Subject: [PATCH] fix(ui): a shared lane's links open a forward to it Viewing a lane shared with this machine (ADR-0040), its services' and containers' links named `localhost:` of the lane's node, where nothing here listens. A click on one now finds the shared service on that port and opens the hub's forward to it (ADR-0035), as Open in the pool area does, the link's path kept. A port the lane does not share opens nothing and says so. Links of one's own stacks are followed as before. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 5 ++++ docs/pool.md | 4 ++- ui/src/components/ContainerRow.vue | 4 +-- ui/src/components/ServiceRow.vue | 2 +- ui/src/stores/pool.ts | 6 ++-- ui/src/stores/stack.ts | 29 ++++++++++++++++++ ui/src/stores/stores.test.ts | 44 ++++++++++++++++++++++++++++ ui/src/views/ContainerDetailView.vue | 2 +- ui/src/views/ServiceDetailView.vue | 2 +- 9 files changed, 89 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6371c6b..d5fc57ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -105,6 +105,11 @@ and listed with their assets on the ### Fixed +- A link to a service or container of a lane shared with you (its port, in + the list and on its page) opens it: a click opens the forward to it on + your machine, as **Open** in the pool area does, and keeps the link's + path. Before, it pointed at `localhost:` of the lane's node, where + nothing on your machine listens. - A lane's failed start on a node no longer stays on its start page after the lane or the stack stopped: stopping the lane, stopping the main tree (`devstack down`) or starting the lane here clears it, and the dashboard diff --git a/docs/pool.md b/docs/pool.md index 8c1951c8..094cd3b8 100644 --- a/docs/pool.md +++ b/docs/pool.md @@ -327,7 +327,9 @@ next one. They also **view** it ([ADR-0040](adr/0040-a-shared-lane-can-be-watched-like-ones-own.md), amended 2026-10-20): a click on it opens the same pages as one's own lane, -read only. They see its state, its services' and containers' logs, its +read only. A click on a service's or container's link there opens the +forward to it as `devstack open` does, the link's path kept. They see its +state, its services' and containers' logs, its events, its command runs and its usage, never its environment, and change nothing: no restart, no stop. Logs show what the services print: share a lane only where that is fine. The node asks the coordinator at least every diff --git a/ui/src/components/ContainerRow.vue b/ui/src/components/ContainerRow.vue index 59bc2855..af3b52f5 100644 --- a/ui/src/components/ContainerRow.vue +++ b/ui/src/components/ContainerRow.vue @@ -59,10 +59,10 @@ const extraUrls = computed(() => webUrls.value.filter((u) => !props.container!.p