From 25515a5635ce3f20687f51c5cd98649bbda626b2 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Mon, 8 Jun 2026 15:40:37 -0500 Subject: [PATCH] Move Nostr settings sync into Advanced section Relocate the AI-settings sync UI from a top-level card into the Advanced expandable section, restyled to match the other advanced subsections. Co-Authored-By: Claude Opus 4.8 (1M context) --- package-lock.json | 29 ++++++++- src/pages/AISettings.tsx | 126 +++++++++++++++++++-------------------- 2 files changed, 89 insertions(+), 66 deletions(-) diff --git a/package-lock.json b/package-lock.json index b3cb05b5..eb037af5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "shakespeare.diy", - "version": "9.13.2", + "version": "9.14.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "shakespeare.diy", - "version": "9.13.2", + "version": "9.14.0", "license": "AGPL-3.0-or-later", "dependencies": { "@capacitor/app": "^8.1.0", @@ -5052,6 +5052,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5065,6 +5066,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5078,6 +5080,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5091,6 +5094,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5104,6 +5108,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5117,6 +5122,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5130,6 +5136,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5143,6 +5150,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5156,6 +5164,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5169,6 +5178,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5182,6 +5192,7 @@ "cpu": [ "loong64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5195,6 +5206,7 @@ "cpu": [ "loong64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5208,6 +5220,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5221,6 +5234,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5234,6 +5248,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5247,6 +5262,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5260,6 +5276,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5273,6 +5290,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5286,6 +5304,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5299,6 +5318,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5312,6 +5332,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5325,6 +5346,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5338,6 +5360,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5351,6 +5374,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5364,6 +5388,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ diff --git a/src/pages/AISettings.tsx b/src/pages/AISettings.tsx index 82f3c267..58073e57 100644 --- a/src/pages/AISettings.tsx +++ b/src/pages/AISettings.tsx @@ -2,7 +2,6 @@ import { useState, useMemo, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { Bot, ChevronDown, RotateCcw, FileText, Edit, X, Cloud, CloudUpload, Download, Loader2 } from 'lucide-react'; import { Button } from '@/components/ui/button'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Switch } from '@/components/ui/switch'; import { Label } from '@/components/ui/label'; import { Textarea } from '@/components/ui/textarea'; @@ -192,69 +191,6 @@ export function AISettings() { ) : ( <> - {/* Nostr Sync */} - {user && ( - - - - - {t('aiSettingsSync')} - - - -
-
- -

- {sync.canSync - ? t('autoSyncAiSettingsDescription') - : t('syncUnsupportedDescription')} -

-
- -
-
- - -
-

- {sync.lastSyncedAt - ? t('lastSynced', { time: new Date(sync.lastSyncedAt * 1000).toLocaleString() }) - : t('neverSynced')} -

-
-
- )} - {/* Configured Providers */} {settings.providers.length > 0 && (
@@ -467,6 +403,68 @@ export function AISettings() {
+ + {/* Nostr Sync */} + {user && ( + <> + +
+
+
+ +

{t('aiSettingsSync')}

+
+

+ {sync.canSync + ? t('autoSyncAiSettingsDescription') + : t('syncUnsupportedDescription')} +

+
+
+ + +
+
+ + +
+

+ {sync.lastSyncedAt + ? t('lastSynced', { time: new Date(sync.lastSyncedAt * 1000).toLocaleString() }) + : t('neverSynced')} +

+
+ + )} )}