import React, { useState, useEffect } from 'react'; import { motion } from 'framer-motion'; import { useSettings } from '~/lib/hooks/useSettings'; import { logStore } from '~/lib/stores/logs'; import { toast } from 'react-toastify'; import { Dialog, DialogRoot, DialogTitle, DialogDescription, DialogButton } from '~/components/ui/Dialog'; import { classNames } from '~/utils/classNames'; interface UpdateProgress { stage: 'fetch' | 'pull' | 'install' | 'build' | 'complete'; message: string; progress?: number; error?: string; details?: { changedFiles?: string[]; additions?: number; deletions?: number; commitMessages?: string[]; totalSize?: string; currentCommit?: string; remoteCommit?: string; }; } interface UpdateSettings { autoUpdate: boolean; notifyInApp: boolean; checkInterval: number; } const ProgressBar = ({ progress }: { progress: number }) => (
Check for and manage application updates
Automatically check and apply updates when available
Show notifications when updates are available
How often to check for updates