From b5096735ef0343c08e5b44adf6da46657a2d90b8 Mon Sep 17 00:00:00 2001 From: Stijnus <72551117+Stijnus@users.noreply.github.com> Date: Mon, 3 Feb 2025 01:40:54 +0100 Subject: [PATCH] Update fix more enhanced UI and more details what is fixed, ect --- .../@settings/tabs/update/UpdateTab.tsx | 237 ++++++++++++++---- app/routes/api.update.ts | 197 ++++++++++++++- 2 files changed, 383 insertions(+), 51 deletions(-) diff --git a/app/components/@settings/tabs/update/UpdateTab.tsx b/app/components/@settings/tabs/update/UpdateTab.tsx index a279af47..53c05d0f 100644 --- a/app/components/@settings/tabs/update/UpdateTab.tsx +++ b/app/components/@settings/tabs/update/UpdateTab.tsx @@ -5,6 +5,7 @@ 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'; +import { Markdown } from '~/components/chat/Markdown'; interface UpdateProgress { stage: 'fetch' | 'pull' | 'install' | 'build' | 'complete'; @@ -20,6 +21,8 @@ interface UpdateProgress { currentCommit?: string; remoteCommit?: string; updateReady?: boolean; + changelog?: string; + compareUrl?: string; }; } @@ -50,15 +53,52 @@ const UpdateProgressDisplay = ({ progress }: { progress: UpdateProgress }) => ( {progress.details && (
- Updates are fetched from: stackblitz-labs/bolt.diy ( - {isLatestBranch ? 'main' : 'stable'} branch) -
- {updateProgress?.details?.currentCommit && updateProgress?.details?.remoteCommit && ( -- Current version: {updateProgress.details.currentCommit} - โ - Latest version: {updateProgress.details.remoteCommit} -
- )} -+ Updates are fetched from: stackblitz-labs/bolt.diy ( + {isLatestBranch ? 'main' : 'stable'} branch) +
++ Current version: {updateProgress.details.currentCommit} + โ + Latest version: {updateProgress.details.remoteCommit} +
+Changelog
+Changes in this Update:
+Commit Messages:
-Changed Files:
-- Total size: {updateProgress.details.totalSize} -
- )} - {updateProgress?.details?.additions !== undefined && updateProgress?.details?.deletions !== undefined && ( -- Changes: +{updateProgress.details.additions}{' '} - -{updateProgress.details.deletions} -
+