From 97908e2ae6a08d8d56af87451b7df0e8d9bf1914 Mon Sep 17 00:00:00 2001 From: nfebe Date: Sun, 24 May 2026 19:12:38 +0100 Subject: [PATCH] feat(deployments): Add bind-mount creation from the file browser Browsing a deployment's files now offers a one-click way to mount any file or directory into a compose service. The dialog reuses the deployment's service list, defaults the container path to the host path, and surfaces the updated compose tab after the change so the result is visible in context. A file or directory already wired into a compose service shows a distinct indicator on its mount button, with a tooltip naming the services that already consume it. The mount targets are detected by parsing the deployment's compose for short-syntax bind entries. The file browser action row was getting visually heavy as features landed; row buttons are slightly tighter and the actions column reserves less horizontal space so the surrounding layout breathes. --- src/components/FileBrowser.vue | 184 ++++++++++++++++++++++++++++- src/services/api.ts | 19 +++ src/utils/compose.test.ts | 94 +++++++++++++++ src/utils/compose.ts | 108 +++++++++++++++++ src/views/DeploymentDetailView.vue | 62 ++++++++-- 5 files changed, 455 insertions(+), 12 deletions(-) create mode 100644 src/utils/compose.test.ts diff --git a/src/components/FileBrowser.vue b/src/components/FileBrowser.vue index ea8c873..e449da1 100644 --- a/src/components/FileBrowser.vue +++ b/src/components/FileBrowser.vue @@ -126,6 +126,14 @@ + @@ -170,6 +178,14 @@ + @@ -240,6 +256,52 @@ + +