From 73acab8bbede7a78a4a1e123b471a9208786533e Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:10:26 -0400 Subject: [PATCH] Prepare for release --- src/core/webview/ClineProvider.ts | 2 +- .../src/components/chat/Announcement.tsx | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 20fb041..478669d 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -69,7 +69,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { private view?: vscode.WebviewView | vscode.WebviewPanel private cline?: Cline private workspaceTracker?: WorkspaceTracker - private latestAnnouncementId = "oct-8-2024" // update to some unique identifier when we add a new announcement + private latestAnnouncementId = "oct-9-2024" // update to some unique identifier when we add a new announcement constructor(readonly context: vscode.ExtensionContext, private readonly outputChannel: vscode.OutputChannel) { this.outputChannel.appendLine("ClineProvider instantiated") diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx index b659ec2..92b1432 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -12,6 +12,7 @@ interface AnnouncementProps { You must update the latestAnnouncementId in ClineProvider for new announcements to show to users. This new id will be compared with whats in state for the 'last announcement shown', and if it's different then the announcement will render. As soon as an announcement is shown, the id will be updated in state. This ensures that announcements are not shown more than once, even if the user doesn't close it themselves. */ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { + const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0 return (
{

- 🎉{" "}New in v{version} + 🎉{" "}New in v{minorVersion}

New name! Meet Cline, an AI assistant that can use your CLI aNd{" "} @@ -37,18 +38,18 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {

{/**/}

- More details about the changes + benchmarks{" "} - - here. - + {/* + See a demo of the changes here. + */} I'm excited for you to try this update, and would love to hear how you like it in our Discord. Come say hi!{" "}