diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f9b0a48..0547fb7 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -454,7 +454,10 @@ function AppInner() { } /> } /> } /> - } /> + } + /> @@ -487,7 +490,10 @@ function AppInner() { } /> } /> } /> - } /> + } + /> diff --git a/frontend/src/pages/ServicesPage.tsx b/frontend/src/pages/ServicesPage.tsx index 2771257..057e5c3 100644 --- a/frontend/src/pages/ServicesPage.tsx +++ b/frontend/src/pages/ServicesPage.tsx @@ -57,7 +57,9 @@ function Field({
{children} - {helper ?

{helper}

: null} + {helper ? ( +

{helper}

+ ) : null}
); } @@ -71,13 +73,23 @@ function ServiceConfigFields({ config: Record; onChange: (config: Record) => void; }) { - const properties = (type.config_schema as { properties?: Record }).properties ?? {}; + const properties = + ( + type.config_schema as { + properties?: Record; + } + ).properties ?? {}; return (
{Object.entries(properties).map(([key, schema]) => { const isNumber = schema.type === "integer" || schema.type === "number"; return ( - + onChange({ ...secrets, [field.key]: e.target.value })} + onChange={(e) => + onChange({ ...secrets, [field.key]: e.target.value }) + } /> ))} @@ -193,7 +207,9 @@ function CreateServiceDialog({
) : ( <> -

{selectedType?.description}

+

+ {selectedType?.description} +

setDraft({ ...draft, enabled: checked })} + onCheckedChange={(checked) => + setDraft({ ...draft, enabled: checked }) + } /> @@ -258,7 +276,9 @@ export function ServicesPage() { }, [services]); const typeName = (t: string) => - types.find((x) => x.service_type === t)?.name ?? getServiceBinding(t)?.name ?? t; + types.find((x) => x.service_type === t)?.name ?? + getServiceBinding(t)?.name ?? + t; return (
@@ -275,14 +295,17 @@ export function ServicesPage() { {services.length === 0 ? ( - No services yet. Add a Grafana, Prometheus, Jellyfin, Nextcloud, or SSH task runner. + No services yet. Add a Grafana, Prometheus, Jellyfin, Nextcloud, + or SSH task runner. ) : (
{grouped.map(([serviceType, instances]) => (
-
{typeName(serviceType)}
+
+ {typeName(serviceType)} +
{instances.map((s) => (
{s.name} {s.service_type} - {!s.enabled ? disabled : null} + {!s.enabled ? ( + disabled + ) : null} {Object.entries(s.secrets_set).some(([, v]) => v) ? ( secrets set ) : null} @@ -303,7 +328,9 @@ export function ServicesPage() { @@ -325,7 +352,10 @@ export function ServicesPage() { )} - setCreateOpen(false)} /> + setCreateOpen(false)} + />