diff --git a/src/components/app-update-toast.tsx b/src/components/app-update-toast.tsx index b7f015c..21b14a3 100644 --- a/src/components/app-update-toast.tsx +++ b/src/components/app-update-toast.tsx @@ -65,11 +65,18 @@ export function AppUpdateToast({ await onUpdate(updateInfo); }; - const showProgress = + const showDownloadProgress = isUpdating && updateProgress?.stage === "downloading" && updateProgress.percentage !== undefined; + const showOtherStageProgress = + isUpdating && + updateProgress && + (updateProgress.stage === "extracting" || + updateProgress.stage === "installing" || + updateProgress.stage === "completed"); + return (
@@ -135,31 +142,41 @@ export function AppUpdateToast({
- {updateProgress.message} -
- {updateProgress.stage === "extracting" && ( -- Preparing update files... -
- )} - {updateProgress.stage === "installing" && ( -- Installing new version... -
- )} - {updateProgress.stage === "completed" && ( -- Update completed! Restarting application... -
- )} + {/* Other stage progress (with visual indicators) */} + {showOtherStageProgress && ( ++ {updateProgress.message} +
+ + {/* Progress indicator for non-downloading stages */} ++ Preparing update files... +
+ )} + {updateProgress.stage === "installing" && ( ++ Installing new version... +
+ )} + {updateProgress.stage === "completed" && ( ++ Update completed! Restarting application... +
+ )} ++ Powered by Camoufox +
+- {progress.percentage.toFixed(1)}% - {progress.speed && ` • ${progress.speed} MB/s`} - {progress.eta && ` • ${progress.eta} remaining`} -
-+ {progress.percentage.toFixed(1)}% + {progress.speed && ` • ${progress.speed} MB/s`} + {progress.eta && ` • ${progress.eta} remaining`} +
+