From 3b074e6565a4b75b04560d01f9bdfe99d703126f Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Tue, 21 Oct 2025 00:53:42 +0530 Subject: [PATCH] style(cli): adding loading animation when updating version (#8285) --- extensions/cli/src/ui/UpdateNotification.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/extensions/cli/src/ui/UpdateNotification.tsx b/extensions/cli/src/ui/UpdateNotification.tsx index 833422692..a5c71bcbc 100644 --- a/extensions/cli/src/ui/UpdateNotification.tsx +++ b/extensions/cli/src/ui/UpdateNotification.tsx @@ -1,4 +1,4 @@ -import { Text } from "ink"; +import { Box, Text } from "ink"; import React, { useMemo } from "react"; import { useServices } from "../hooks/useService.js"; @@ -9,6 +9,7 @@ import { } from "../services/types.js"; import { useTerminalSize } from "./hooks/useTerminalSize.js"; +import { LoadingAnimation } from "./LoadingAnimation.js"; interface UpdateNotificationProps { isRemoteMode?: boolean; @@ -48,6 +49,15 @@ const UpdateNotification: React.FC = ({ return ◉ Remote Mode; } + if (services.update?.status === UpdateStatus.UPDATING) { + return ( + + + {`${text}`} + + ); + } + return {`◉ ${text}`}; };