From 691b00a2b8891f68b5a418b7ed23a9b8aef2c66f Mon Sep 17 00:00:00 2001 From: Amit Haridas Date: Mon, 8 Jun 2026 06:40:51 +0530 Subject: [PATCH] feat(settings): add Updates section with channel radio and Check now --- .../components/modals/SettingsSheet.tsx | 5 +- .../components/modals/UpdatesSettings.tsx | 61 +++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 src/renderer/components/modals/UpdatesSettings.tsx diff --git a/src/renderer/components/modals/SettingsSheet.tsx b/src/renderer/components/modals/SettingsSheet.tsx index 439919d..de103e5 100644 --- a/src/renderer/components/modals/SettingsSheet.tsx +++ b/src/renderer/components/modals/SettingsSheet.tsx @@ -8,6 +8,7 @@ import { ThemeSettings } from './ThemeSettings'; import { ExportSettings } from './ExportSettings'; import { PluginsSettings } from './PluginsSettings'; import { AboutSettings } from './AboutSettings'; +import { UpdatesSettings } from './UpdatesSettings'; export function SettingsSheet() { const closeModal = useAppStore((s) => s.closeModal); @@ -21,11 +22,12 @@ export function SettingsSheet() { Editor, theme, and export preferences - + Editor Theme Export Plugins + Updates About
@@ -33,6 +35,7 @@ export function SettingsSheet() { +
diff --git a/src/renderer/components/modals/UpdatesSettings.tsx b/src/renderer/components/modals/UpdatesSettings.tsx new file mode 100644 index 0000000..15d6a57 --- /dev/null +++ b/src/renderer/components/modals/UpdatesSettings.tsx @@ -0,0 +1,61 @@ +import { useUpdaterStore } from '@/lib/updater-store'; +import { useSettingsStore } from '@/stores/settings-store'; +import { Button } from '@/components/ui/button'; + +export function UpdatesSettings() { + const updateChannel = useSettingsStore((s) => s.updateChannel); + const setSetting = useSettingsStore((s) => s.setSetting); + const autoCheck = useSettingsStore((s) => s.autoCheckUpdates); + const { check, state } = useUpdaterStore(); + + return ( +
+
+

Update channel

+
+ + +
+
+ +
+

Auto-check on launch

+ +
+ +
+

Manual check

+ +
+
+ ); +} \ No newline at end of file