diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index a4f18c870c..0e66cb799f 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -44,6 +44,7 @@ import AutoApproveMenu from "./AutoApproveMenu" import SystemPromptWarning from "./SystemPromptWarning" import ProfileViolationWarning from "./ProfileViolationWarning" import { CheckpointWarning } from "./CheckpointWarning" +import VersionIndicator from "../common/VersionIndicator" export interface ChatViewProps { isHidden: boolean @@ -1409,7 +1410,14 @@ const ChatViewComponent: React.ForwardRefRenderFunction )}
0 ? "mt-0" : ""} px-3.5 min-[370px]:px-10 pt-5 transition-all duration-300`}> + className={` w-full flex flex-col gap-4 m-auto ${isExpanded && tasks.length > 0 ? "mt-0" : ""} px-3.5 min-[370px]:px-10 pt-5 transition-all duration-300 relative`}> + { + // Handle version indicator click - could show announcement modal or version info + console.log("Version indicator clicked") + }} + className="absolute top-2 right-3 z-10" + /> {telemetrySetting === "unset" && } {/* Show the task history preview if expanded and tasks exist */} diff --git a/webview-ui/src/components/common/VersionIndicator.tsx b/webview-ui/src/components/common/VersionIndicator.tsx new file mode 100644 index 0000000000..faae2d69f8 --- /dev/null +++ b/webview-ui/src/components/common/VersionIndicator.tsx @@ -0,0 +1,19 @@ +import { Package } from "@roo/package" + +interface VersionIndicatorProps { + onClick?: () => void + className?: string +} + +const VersionIndicator = ({ onClick, className }: VersionIndicatorProps) => { + return ( +
+ v{Package.version} +
+ ) +} + +export default VersionIndicator