From d8b6cf80e6b36ecb72556db92847c7194adfffc0 Mon Sep 17 00:00:00 2001 From: Rob B Date: Sat, 26 Oct 2024 21:05:09 -0400 Subject: [PATCH] UX improvements to Manage Servers UI. - Add headers to the subsections - Fix which subsections are scrollable - "no servers added yet" when no servers in manage existing servers - Move error message to top of picker section and make it always visible regardless of scroll position --- README.md | 2 + .../components/modals/ServerManager.svelte | 126 ++++++++++-------- 2 files changed, 71 insertions(+), 57 deletions(-) diff --git a/README.md b/README.md index f2300b04..979c2607 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ After running `wails dev`, open `http://localhost:34115/` in your browser of cho ## Code Signing Policy +
@@ -144,3 +145,4 @@ After running `wails dev`, open `http://localhost:34115/` in your browser of cho
+ diff --git a/frontend/src/lib/components/modals/ServerManager.svelte b/frontend/src/lib/components/modals/ServerManager.svelte index 709f2b43..4d66d991 100644 --- a/frontend/src/lib/components/modals/ServerManager.svelte +++ b/frontend/src/lib/components/modals/ServerManager.svelte @@ -190,7 +190,7 @@
-
+
-
+
+ +
+
- {#each $remoteServers as remoteServer} - - - - + + + - - - - {/each} + {:else} + + {/if} + + {/if} + + + + + {/each} + {:else} +

+ {/if}
{$installsMetadata[remoteServer]?.info?.launcher}{redactRemoteURL(remoteServer)} - {#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.VALID} - {$installsMetadata[remoteServer]?.info?.type} - {:else} - - + {#if $remoteServers.length > 0} + {#each $remoteServers as remoteServer} +
{$installsMetadata[remoteServer]?.info?.launcher}{redactRemoteURL(remoteServer)} + {#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.VALID} + {$installsMetadata[remoteServer]?.info?.type} + {:else} + + + {#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.LOADING} + + {:else if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.INVALID} + + {:else} + + {/if} + + +
{#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.LOADING} - + {:else if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.INVALID} - - {:else} - - {/if} - - -
- {#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.LOADING} - - {:else if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.INVALID} - - {:else} - - {/if} -
- {/if} -
- {#if $installsMetadata[remoteServer]?.info?.version} - CL{$installsMetadata[remoteServer].info?.version} - {/if} - - -
+ {#if $installsMetadata[remoteServer]?.info?.version} + CL{$installsMetadata[remoteServer].info?.version} + {/if} + + +
-
+
+
+ +
+

{err}

+
+