From 5b11a6bad89ee5bb90b96e85f4514399edcf4709 Mon Sep 17 00:00:00 2001
From: Michel Roegl-Brunner
<73236783+michelroegl-brunner@users.noreply.github.com>
Date: Tue, 14 Oct 2025 16:22:38 +0200
Subject: [PATCH] refactor: optimize UI button layout and fix dependency loop
(#149)
- Add Open UI button next to IP:Port in installed scripts table
- Move Re-detect button to Actions dropdown for better space usage
- Fix dependency array loop in fetchContainerStatuses useCallback
- Hide buttons for stopped containers to prevent invalid actions
- Enhance auto-detect success message with LXC ID and hostname
- Improve font consistency by removing monospace from IP:Port text
- Optimize screen real estate with cleaner, more scannable layout
---
src/app/_components/InstalledScriptsTab.tsx | 31 ++++++++++++---------
src/server/api/routers/installedScripts.ts | 6 ++--
2 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/src/app/_components/InstalledScriptsTab.tsx b/src/app/_components/InstalledScriptsTab.tsx
index 8aca574..f53e04f 100644
--- a/src/app/_components/InstalledScriptsTab.tsx
+++ b/src/app/_components/InstalledScriptsTab.tsx
@@ -377,7 +377,7 @@ export function InstalledScriptsTab() {
containerStatusMutation.mutate({ serverIds });
}
}, 500);
- }, [containerStatusMutation]);
+ }, []);
// Run cleanup when component mounts and scripts are loaded (only once)
useEffect(() => {
@@ -1365,21 +1365,17 @@ export function InstalledScriptsTab() {
) : (
script.web_ui_ip ? (
-
-