Skip to content

Commit 49de946

Browse files
authored
Merge pull request #454 from RooVetGit/announcement_fix
Fix announcement
2 parents 7c91098 + 323af09 commit 49de946

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.changeset/brave-dolphins-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix announcement

webview-ui/src/components/chat/Announcement.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface AnnouncementProps {
1212
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.
1313
*/
1414
const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
15-
// const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0
15+
const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0
1616
return (
1717
<div
1818
style={{
@@ -29,11 +29,13 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
2929
style={{ position: "absolute", top: "8px", right: "8px" }}>
3030
<span className="codicon codicon-close"></span>
3131
</VSCodeButton>
32-
<h2 style={{ margin: "0 0 8px" }}>🎉{" "}Introducing Roo Code 4.0</h2>
32+
<h2 style={{ margin: "0 0 8px" }}>
33+
🎉{" "}Introducing Roo Code {minorVersion}
34+
</h2>
3335

3436
<p style={{ margin: "5px 0px" }}>
35-
Our biggest update yet is here - we're officially changing our name from "Roo Cline" to "Roo Code"!
36-
After growing beyond 50,000 installations, we're ready to chart our own course. Our heartfelt thanks to
37+
Our biggest update yet is here - we're officially changing our name from Roo Cline to Roo Code! After
38+
growing beyond 50,000 installations, we're ready to chart our own course. Our heartfelt thanks to
3739
everyone in the Cline community who helped us reach this milestone.
3840
</p>
3941

0 commit comments

Comments
 (0)