From 3e9aba777770a7dfe9754b68132078cba5ba4ef9 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Thu, 21 Aug 2025 15:04:50 +0000 Subject: [PATCH] feat: add notification indicator to version number for new announcements --- webview-ui/src/components/chat/ChatView.tsx | 2 ++ webview-ui/src/components/common/VersionIndicator.tsx | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 3b77bbdb7d..435ca32042 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -117,6 +117,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction setShowAnnouncementModal(true)} className="absolute top-2 right-3 z-10" + showNotification={shouldShowAnnouncement} /> diff --git a/webview-ui/src/components/common/VersionIndicator.tsx b/webview-ui/src/components/common/VersionIndicator.tsx index 1776a2d39a..a91f3ec4c4 100644 --- a/webview-ui/src/components/common/VersionIndicator.tsx +++ b/webview-ui/src/components/common/VersionIndicator.tsx @@ -5,17 +5,24 @@ import { Package } from "@roo/package" interface VersionIndicatorProps { onClick: () => void className?: string + showNotification?: boolean } -const VersionIndicator: React.FC = ({ onClick, className = "" }) => { +const VersionIndicator: React.FC = ({ onClick, className = "", showNotification = false }) => { const { t } = useTranslation() return ( ) }