diff --git a/.env.example b/.env.example index 322a8b5..0ddb255 100644 --- a/.env.example +++ b/.env.example @@ -71,8 +71,6 @@ MCP_SERVICE_KEY=svc_changeme # ZIGBEE_BASE_TOPIC=zigbee2mqtt # ZIGBEE_MQTT_TLS=false # true for TLS brokers (typically port 8883) # ZIGBEE_MQTT_TLS_INSECURE=false # skip cert verify (self-signed only; requires TLS) -# ZIGBEE_SYNC_ENABLED=false # turn scheduled auto-sync on -# ZIGBEE_SYNC_INTERVAL=3600 # seconds between syncs (min 300) # Z-Wave JS UI (zwavejs2mqtt) auto-sync — same MQTT secret/env rules as Zigbee. # ZWAVE_MQTT_HOST=192.168.1.20 @@ -83,5 +81,3 @@ MCP_SERVICE_KEY=svc_changeme # ZWAVE_GATEWAY_NAME=zwavejs2mqtt # ZWAVE_MQTT_TLS=false # true for TLS brokers (typically port 8883) # ZWAVE_MQTT_TLS_INSECURE=false # skip cert verify (self-signed only; requires TLS) -# ZWAVE_SYNC_ENABLED=false # turn scheduled auto-sync on -# ZWAVE_SYNC_INTERVAL=3600 # seconds between syncs (min 300) diff --git a/frontend/src/components/modals/SettingsModal.tsx b/frontend/src/components/modals/SettingsModal.tsx index 448f3b9..fa16651 100644 --- a/frontend/src/components/modals/SettingsModal.tsx +++ b/frontend/src/components/modals/SettingsModal.tsx @@ -249,12 +249,14 @@ export function SettingsModal({ open, onClose }: SettingsModalProps) { return ( !v && onClose()}> - + Settings -
+
+ {/* Left column */} +
{/* Status checker */} {!STANDALONE && (
@@ -306,6 +308,90 @@ export function SettingsModal({ open, onClose }: SettingsModalProps) {
)} + {/* Canvas */} +
+ Canvas + + + + + +
+ +
+ updateAlignment({ threshold: Number(e.target.value) })} + className="flex-1 cursor-pointer accent-[#00d4ff]" + aria-label="Alignment snap threshold" + /> + {alignment.threshold}px +
+

+ Distance at which dragged nodes snap to neighbours. Hold Alt while dragging to disable. +

+
+
+
+ + {/* Right column */} +
+ {/* Zigbee auto-sync */} + {!STANDALONE && zbConfig && ( + + )} + + {/* Z-Wave auto-sync */} + {!STANDALONE && zwConfig && ( + + )} + {/* Proxmox auto-sync */} {!STANDALONE && pmConfig && (
@@ -368,86 +454,6 @@ export function SettingsModal({ open, onClose }: SettingsModalProps) { )}
)} - - {/* Zigbee auto-sync */} - {!STANDALONE && zbConfig && ( - - )} - - {/* Z-Wave auto-sync */} - {!STANDALONE && zwConfig && ( - - )} - - {/* Canvas */} -
- Canvas - - - - - -
- -
- updateAlignment({ threshold: Number(e.target.value) })} - className="flex-1 cursor-pointer accent-[#00d4ff]" - aria-label="Alignment snap threshold" - /> - {alignment.threshold}px -
-

- Distance at which dragged nodes snap to neighbours. Hold Alt while dragging to disable. -

-